Skip to content

Commit

Permalink
Add auto color scheme
Browse files Browse the repository at this point in the history
  • Loading branch information
MartenBE committed Sep 9, 2024
1 parent 7cf0040 commit 8e1da38
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,20 @@ theme:
code: Inconsolata
logo: https://hogenttin.github.io/cdn/logo/HOGENT_Neg.png
palette:
# Palette toggle for light mode
- scheme: default
- media: "(prefers-color-scheme)"
toggle:
icon: material/brightness-auto
name: Switch to light mode
- 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
markdown_extensions:
- footnotes
- pymdownx.arithmatex:
Expand Down

0 comments on commit 8e1da38

Please sign in to comment.