Skip to content

Commit 7fae5d7

Browse files
authored
Enable dark mode switch on docs (#3977)
1 parent a516fa4 commit 7fae5d7

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

mkdocs.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,16 @@ theme:
2727
- navigation.top
2828
- navigation.expand
2929
palette:
30-
primary: custom
30+
- scheme: default
31+
primary: custom
32+
toggle:
33+
icon: material/brightness-7
34+
name: Switch to dark mode
35+
- scheme: slate
36+
primary: custom
37+
toggle:
38+
icon: material/brightness-4
39+
name: Switch to light mode
3140
custom_dir: site-src/overrides
3241
edit_uri: edit/main/site-src/
3342
plugins:

0 commit comments

Comments
 (0)