Skip to content

Commit

Permalink
build: add mkdocs-material auto dark mode
Browse files Browse the repository at this point in the history
  • Loading branch information
phil65 committed Oct 25, 2024
1 parent 0ba8d03 commit f0d0477
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ theme:
icon:
logo: material/graph-outline
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
Expand All @@ -25,7 +31,7 @@ theme:
primary: red
toggle:
icon: material/brightness-4
name: Switch to light mode
name: Switch to system preference
features:
- announce.dismiss
- content.action.edit
Expand Down

0 comments on commit f0d0477

Please sign in to comment.