Skip to content

Commit

Permalink
add auto/light/dark mode mkdocs.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
s-light authored Aug 26, 2024
1 parent 69b2ac3 commit 8096cce
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions docs/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,25 @@ site_description: 'Python on whales docs'

theme:
name: material
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/weather-night
name: Switch to dark mode
# Palette toggle for dark mode
- media: "(prefers-color-scheme: dark)"
scheme: slate
toggle:
icon: material/weather-sunny
name: Switch to system preference


markdown_extensions:
- pymdownx.snippets:
Expand Down

0 comments on commit 8096cce

Please sign in to comment.