Skip to content

Commit 0d7a13d

Browse files
Add docs of lightdark
1 parent 0cfd2fe commit 0d7a13d

1 file changed

Lines changed: 14 additions & 9 deletions

File tree

source/docs/theme-settings/index.md

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -53,20 +53,25 @@ scheme: Gemini
5353

5454
{% darkmode_preview %}
5555

56-
You can enable Dark Mode by setting `darkmode` to `true` in {% label primary@NexT config file %}.
56+
Theme NexT automatically shows Dark Mode if the OS preferred theme is dark. The `prefers-color-scheme` CSS media feature is used to bring Dark Mode to all 4 schemes above. It's supported by most modern OS and browsers.
57+
58+
{% caniuse prefers-color-scheme @ current,past_1,past_2,past_3,past_4,past_5 %}
59+
60+
You can disable Dark Mode by setting `darkmode` to `false` in {% label primary@NexT config file %}.
5761

5862
```yml NexT config file
59-
darkmode: true
63+
darkmode: false
6064
```
6165

62-
The `prefers-color-scheme` CSS media feature is used to bring Dark Mode to all 4 schemes above, make sure your browser supports it.
66+
Besides, NexT uses `lightdark` setting to provide more options for Dark Mode.
6367

64-
{% caniuse prefers-color-scheme @ current,past_1,past_2,past_3,past_4,past_5 %}
65-
66-
Theme NexT automatically shows Dark Mode if the OS preferred theme is dark. It's supported by macOS Mojave, iOS 13 and Android 10 or later. Relevant docs:
67-
[How to use Dark Mode on your Mac](https://support.apple.com/en-us/HT208976)
68-
[Use Dark Mode on your iPhone, iPad, or iPod touch](https://support.apple.com/en-us/HT210332)
69-
[Dark theme | Android Developers](https://developer.android.com/guide/topics/ui/look-and-feel/darktheme)
68+
```yml NexT config file
69+
# Light-Dark Mode
70+
lightdark:
71+
enable: false
72+
# Add @supports (color: light-dark(red, red)) check
73+
check_supports: true
74+
```
7075

7176
#### Configuring Favicon
7277

0 commit comments

Comments
 (0)