Skip to content

Commit 9643209

Browse files
committed
docs: autoselect initial color-scheme
1 parent 243937c commit 9643209

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

mkdocs.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,12 @@ theme:
1313
favicon: stack-24.svg
1414
palette:
1515
- scheme: default
16+
media: "(prefers-color-scheme: light)"
1617
toggle:
1718
icon: material/weather-sunny
1819
name: Switch to dark mode
1920
- scheme: slate
21+
media: "(prefers-color-scheme: dark)"
2022
toggle:
2123
icon: material/weather-night
2224
name: Switch to light mode

0 commit comments

Comments
 (0)