Skip to content

Commit

Permalink
Add automatic light / dark mode
Browse files Browse the repository at this point in the history
  • Loading branch information
boldsuck committed Dec 10, 2024
1 parent 2a5ca1f commit cbed11c
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,29 @@ theme:
favicon: 'resources/img/favicon.ico'
features:
- navigation.instant
- navigation.tracking
- navigation.sections
- toc.follow
- navigation.top
- navigation.tabs
- navigation.tabs.sticky
- search.suggest
- navigation.top
- navigation.tracking
- search.highlight
- search.suggest
- toc.follow
palette:
- scheme: youtube # Palette toggle for light mode
# 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: youtube
toggle:
icon: material/weather-night
name: Switch to dark mode
- scheme: slate # Palette toggle for dark mode
# Palette toggle for dark mode
- media: "(prefers-color-scheme: dark)"
scheme: slate
toggle:
icon: material/weather-sunny
name: Switch to light mode
Expand Down

0 comments on commit cbed11c

Please sign in to comment.