Skip to content

Commit

Permalink
docs: toggle light/dark mode
Browse files Browse the repository at this point in the history
  • Loading branch information
jef authored Aug 31, 2021
1 parent d19d05c commit 1e76d5a
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,16 @@ theme:
language: en
name: material
palette:
scheme: default
primary: indigo
accent: indigo
- media: "(prefers-color-scheme: light)"
scheme: default
toggle:
icon: material/weather-night
name: Switch to dark mode
- media: "(prefers-color-scheme: dark)"
scheme: slate
toggle:
icon: material/weather-sunny
name: Switch to light mode

# Plugins
plugins:
Expand Down

0 comments on commit 1e76d5a

Please sign in to comment.