Skip to content

Commit d05c854

Browse files
chadmedConan-Kudo
authored andcommitted
theme: add dark mode
Signed-off-by: James Calligeros <[email protected]>
1 parent 327fdc1 commit d05c854

1 file changed

Lines changed: 23 additions & 2 deletions

File tree

mkdocs.yml

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,29 @@ theme:
4141
logo: assets/logo.png
4242
favicon: assets/favicon.png
4343
palette:
44-
primary: custom
45-
accent: custom
44+
- media: "(prefers-color-scheme)"
45+
primary: custom
46+
accent: custom
47+
toggle:
48+
icon: material/brightness-auto
49+
name: Switch to light mode
50+
51+
- media: "(prefers-color-scheme: light)"
52+
primary: custom
53+
accent: custom
54+
scheme: default
55+
toggle:
56+
icon: material/brightness-7
57+
name: Switch to dark mode
58+
59+
- media: "(prefers-color-scheme: dark)"
60+
primary: custom
61+
accent: custom
62+
scheme: slate
63+
toggle:
64+
icon: material/brightness-4
65+
name: Switch to system preference
66+
4667
features:
4768
- navigation.expand
4869
- navigation.instant

0 commit comments

Comments
 (0)