Skip to content

Commit

Permalink
docs: enable automatic light/dark mode
Browse files Browse the repository at this point in the history
  • Loading branch information
sisp committed Dec 20, 2023
1 parent a8c716b commit 53b4b98
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ theme:
- navigation.top
- navigation.tracking
palette:
- media: "(prefers-color-scheme)"
toggle:
icon: material/brightness-auto
name: Switch to light mode
- media: "(prefers-color-scheme: light)"
scheme: default
primary: deep orange
Expand All @@ -46,7 +50,7 @@ theme:
accent: orange
toggle:
icon: material/weather-night
name: Switch to light mode
name: Switch to system preference

extra_css:
- css/mkdocstrings.css
Expand Down

0 comments on commit 53b4b98

Please sign in to comment.