Skip to content

Commit

Permalink
Use automatic detect prefer color scheme
Browse files Browse the repository at this point in the history
  • Loading branch information
pflooky committed Jun 14, 2024
1 parent 479e7d9 commit 31a45a2
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 @@ -2,16 +2,23 @@ site_name: insta-infra
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
- scheme: default
- media: "(prefers-color-scheme: light)"
scheme: default
toggle:
icon: material/brightness-7
name: Switch to dark mode
# Palette toggle for dark mode
- scheme: slate
- media: "(prefers-color-scheme: dark)"
scheme: slate
toggle:
icon: material/brightness-4
name: Switch to light mode
name: Switch to system preference
nav:
- Home: index.md
- Getting Started: getting-started.md
Expand Down

0 comments on commit 31a45a2

Please sign in to comment.