Skip to content

Commit

Permalink
Implemented Auto Dark Mode
Browse files Browse the repository at this point in the history
  • Loading branch information
DerLinkman committed Dec 7, 2023
1 parent ea2bf8e commit 9aee0e2
Showing 1 changed file with 19 additions and 8 deletions.
27 changes: 19 additions & 8 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,25 @@ theme:
custom_dir: overrides
font: false
palette:
- scheme: default
toggle:
icon: material/weather-night
name: Switch to dark mode
- scheme: slate
toggle:
icon: material/weather-sunny
name: Switch to 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: 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

logo: assets/images/logo.svg
favicon: assets/images/favicon.png
features:
Expand Down

0 comments on commit 9aee0e2

Please sign in to comment.