Skip to content

Commit

Permalink
Automatic light / dark mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Samk13 committed Jun 18, 2024
1 parent 4bbf389 commit a4c88be
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ theme:
name: "material"
custom_dir: "theme/"
palette:
- scheme: default
# Palette toggle for light mode
- media: "(prefers-color-scheme: light)"
scheme: default
primary: custom
accent: custom
extra_css:
Expand All @@ -22,7 +24,8 @@ theme:
icon: material/brightness-7
name: Switch to dark mode
# Palette toggle for dark mode
- scheme: slate
- media: "(prefers-color-scheme: dark)"
scheme: slate
primary: black
accent: orange
toggle:
Expand Down

0 comments on commit a4c88be

Please sign in to comment.