Skip to content

Commit 81408fc

Browse files
committed
Add dark theme
Button added on the navigation bar for theme toggle while keeping the primary color for the theme as black
1 parent 6aa8b4c commit 81408fc

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

mkdocs.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,19 @@ theme:
1313
- navigation.instant
1414
- navigation.top
1515
palette:
16-
primary: black
16+
# Palette toggle for light mode
17+
- scheme: black
18+
primary: black
19+
toggle:
20+
icon: material/brightness-7
21+
name: Switch to dark mode
22+
23+
# Palette toggle for dark mode
24+
- scheme: slate
25+
primary: black
26+
toggle:
27+
icon: material/brightness-4
28+
name: Switch to light mode
1729

1830
markdown_extensions:
1931
- meta

0 commit comments

Comments
 (0)