Skip to content

Commit

Permalink
feat(theming): update dark mode guide with new dark theme files and p…
Browse files Browse the repository at this point in the history
…laygrounds (#3384)
  • Loading branch information
brandyscarney authored Jan 23, 2024
1 parent 388c0e1 commit 50546f5
Show file tree
Hide file tree
Showing 62 changed files with 1,666 additions and 1,053 deletions.
4 changes: 2 additions & 2 deletions docs/theming/css-variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ When using the Ionic CLI to start an Angular project, the `src/theme/variables.s
}

/* Set text color of the entire app for iOS only */
.ios {
:root.ios {
--ion-text-color: #000;
}

/* Set text color of the entire app for Material Design only */
.md {
:root.md {
--ion-text-color: #222;
}
```
Expand Down
627 changes: 508 additions & 119 deletions docs/theming/dark-mode.md

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions static/code/stackblitz/v8/angular/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"dependencies": {
"@ionic/angular": "7.6.2-dev.11704998705.1e1f9850",
"@ionic/core": "7.6.2-dev.11704998705.1e1f9850",
"@ionic/angular": "7.6.2-dev.11705355381.14b22962",
"@ionic/core": "7.6.2-dev.11705355381.14b22962",
"@angular/platform-browser-dynamic": "17.0.4"
}
}
2 changes: 1 addition & 1 deletion static/code/stackblitz/v8/angular/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
/**
* Ionic Dark Theme
* -----------------------------------------------------
* For more info, please see:
* For more information, please see:
* https://ionicframework.com/docs/theming/dark-mode
*/

Expand Down
4 changes: 2 additions & 2 deletions static/code/stackblitz/v8/html/index.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<html>

<head>
<link rel="stylesheet" type="text/css" href="https://cdn.skypack.dev/@ionic/[email protected].11704998705.1e1f9850/css/core.css" />
<link rel="stylesheet" type="text/css" href="https://cdn.skypack.dev/@ionic/[email protected].11704998705.1e1f9850/css/ionic.bundle.css" />
<link rel="stylesheet" type="text/css" href="https://cdn.skypack.dev/@ionic/[email protected].11705355381.14b22962/css/core.css" />
<link rel="stylesheet" type="text/css" href="https://cdn.skypack.dev/@ionic/[email protected].11705355381.14b22962/css/ionic.bundle.css" />
</head>

<body>
Expand Down
2 changes: 1 addition & 1 deletion static/code/stackblitz/v8/html/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import '@ionic/core/css/display.css';
/**
* Ionic Dark Theme
* -----------------------------------------------------
* For more info, please see:
* For more information, please see:
* https://ionicframework.com/docs/theming/dark-mode
*/

Expand Down
4 changes: 2 additions & 2 deletions static/code/stackblitz/v8/html/index.withContent.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<html>

<head>
<link rel="stylesheet" type="text/css" href="https://cdn.skypack.dev/@ionic/[email protected].11704998705.1e1f9850/css/core.css" />
<link rel="stylesheet" type="text/css" href="https://cdn.skypack.dev/@ionic/[email protected].11704998705.1e1f9850/css/ionic.bundle.css" />
<link rel="stylesheet" type="text/css" href="https://cdn.skypack.dev/@ionic/[email protected].11705355381.14b22962/css/core.css" />
<link rel="stylesheet" type="text/css" href="https://cdn.skypack.dev/@ionic/[email protected].11705355381.14b22962/css/ionic.bundle.css" />
</head>

<body>
Expand Down
2 changes: 1 addition & 1 deletion static/code/stackblitz/v8/html/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"dependencies": {
"@ionic/core": "7.6.2-dev.11704998705.1e1f9850"
"@ionic/core": "7.6.2-dev.11705355381.14b22962"
}
}
2 changes: 1 addition & 1 deletion static/code/stackblitz/v8/react/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import '@ionic/react/css/display.css';
/**
* Ionic Dark Theme
* -----------------------------------------------------
* For more info, please see:
* For more information, please see:
* https://ionicframework.com/docs/theming/dark-mode
*/

Expand Down
2 changes: 1 addition & 1 deletion static/code/stackblitz/v8/react/app.withContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import '@ionic/react/css/display.css';
/**
* Ionic Dark Theme
* -----------------------------------------------------
* For more info, please see:
* For more information, please see:
* https://ionicframework.com/docs/theming/dark-mode
*/

Expand Down
36 changes: 18 additions & 18 deletions static/code/stackblitz/v8/react/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions static/code/stackblitz/v8/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"@ionic/react": "7.6.2-dev.11704998705.1e1f9850",
"@ionic/react-router": "7.6.2-dev.11704998705.1e1f9850",
"@ionic/react": "7.6.2-dev.11705355381.14b22962",
"@ionic/react-router": "7.6.2-dev.11705355381.14b22962",
"@types/node": "^20.0.0",
"@types/react": "^18.0.9",
"@types/react-dom": "^18.0.4",
Expand Down
2 changes: 1 addition & 1 deletion static/code/stackblitz/v8/vue/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import '@ionic/vue/css/display.css';
/**
* Ionic Dark Theme
* -----------------------------------------------------
* For more info, please see:
* For more information, please see:
* https://ionicframework.com/docs/theming/dark-mode
*/

Expand Down
36 changes: 18 additions & 18 deletions static/code/stackblitz/v8/vue/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions static/code/stackblitz/v8/vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
"preview": "vite preview"
},
"dependencies": {
"@ionic/vue": "7.6.2-dev.11704998705.1e1f9850",
"@ionic/vue-router": "7.6.2-dev.11704998705.1e1f9850",
"@ionic/vue": "7.6.2-dev.11705355381.14b22962",
"@ionic/vue-router": "7.6.2-dev.11705355381.14b22962",
"vue": "^3.2.25",
"vue-router": "4.2.5"
},
Expand Down
Loading

0 comments on commit 50546f5

Please sign in to comment.