Skip to content

Commit

Permalink
enable dark mode toggle
Browse files Browse the repository at this point in the history
  • Loading branch information
deven367 committed Aug 6, 2024
1 parent e5bf2ff commit a0516db
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,25 @@ theme:
- quick-links
- navigation
- search
- toc
- toc

palette:
# Palette toggle for automatic mode
- media: "(prefers-color-scheme)"
toggle:
icon: material/brightness-auto
name: Switch to light mode

# Palette toggle for light mode
- media: "(prefers-color-scheme: light)"
scheme: default
toggle:
icon: material/brightness-7
name: Switch to dark mode

# Palette toggle for dark mode
- media: "(prefers-color-scheme: dark)"
scheme: slate
toggle:
icon: material/brightness-4
name: Switch to system preference

0 comments on commit a0516db

Please sign in to comment.