Skip to content

Commit 9bfa3c7

Browse files
committed
Enable support for automatic light / dark mode.
1 parent ff0246e commit 9bfa3c7

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

mkdocs.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,22 @@ theme:
1313
icon:
1414
repo: fontawesome/brands/git-alt
1515
palette:
16+
- media: "(prefers-color-scheme)"
17+
toggle:
18+
icon: material/brightness-auto
19+
name: Switch to light mode
1620
- scheme: default
1721
media: "(prefers-color-scheme: light)"
1822
toggle:
19-
icon: material/lightbulb
20-
name: Switch to the dark theme
23+
icon: material/brightness-7
24+
name: Switch to dark mode
2125
- scheme: slate
2226
media: "(prefers-color-scheme: dark)"
2327
primary: deep purple
2428
accent: purple
2529
toggle:
26-
icon: material/lightbulb-outline
27-
name: Switch to the light theme
30+
icon: material/brightness-4
31+
name: Switch to system preference
2832
features:
2933
- content.code.copy
3034
- navigation.instant

0 commit comments

Comments
 (0)