Skip to content

Commit 7cce31d

Browse files
committed
docs: update to remove -mode from css classes
1 parent 8f28514 commit 7cce31d

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed

docs/content/1.getting-started/1.index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Dark and light mode with auto detection made easy with Nuxt 🌗
99

1010
## Features
1111

12-
- Add `.${color}-mode` class to `<html>` for easy CSS theming
12+
- Add a configurable `.${color}` class to `<html>` for easy CSS theming
1313
- Force a page to a specific color mode (perfect for incremental development)
1414
- Works with client-side and universal rendering
1515
- Works out of the box with [@nuxtjs/tailwindcss](https://github.com/nuxt-modules/tailwindcss)

docs/content/1.getting-started/2.installation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@ export default defineNuxtConfig({
2727
})
2828
```
2929

30-
You are ready to start theming your CSS with `.dark-mode` and `.light-mode` classes ✨
30+
You are ready to start using color mode in your app with `.dark` and `.light` classes ✨

docs/content/2.usage/1.basic.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,17 @@ body {
3838
background-color: #fff;
3939
color: rgba(0,0,0,0.8);
4040
}
41-
.dark-mode body {
41+
.dark body {
4242
background-color: #091a28;
4343
color: #ebf4f1;
4444
}
45-
.sepia-mode body {
45+
.sepia body {
4646
background-color: #f1e7d0;
4747
color: #433422;
4848
}
4949
</style>
5050
```
51+
52+
::callout
53+
You can configure the `colorMode.classSuffix` option in your `nuxt.config.ts` to modify these class names. See the [configuration](/usage/configuration) section for more details.
54+
::

docs/content/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ orientation: horizontal
1717
Dark and light mode with [auto detection]{.text-primary}
1818

1919
#description
20-
Plug-and-play color mode module for Nuxt with auto detection made easy. Add `.dark-mode` and `.light-mode` classes to your CSS for easy theming.
20+
Plug-and-play color mode module for Nuxt with auto detection made easy. Easily theme your app with `.dark` and `.light` classes.
2121

2222
#links
2323
:::u-button
@@ -59,7 +59,7 @@ Get the most of your app with :br [powerful features]{.text-primary}
5959
Easy CSS Theming
6060

6161
#description
62-
Add `.dark-mode` and `.light-mode` classes to your CSS for effortless theming.
62+
Add `.dark` and `.light` classes to your CSS for effortless theming.
6363
:::
6464

6565
:::u-page-card

0 commit comments

Comments
 (0)