mirror of
https://github.com/poseidon/typhoon
synced 2025-04-09 17:19:09 +02:00
docs: Add support for dark mode and auto mode
* Add a mkdocs-material palette switcher to switch between light and dark modes, or automatically set the mode based on system preference
This commit is contained in:
parent
e1072283c5
commit
b9f21b1db6
23
mkdocs.yml
23
mkdocs.yml
@ -15,8 +15,27 @@ theme:
|
||||
icon:
|
||||
repo: fontawesome/brands/github-alt
|
||||
palette:
|
||||
primary: blue
|
||||
accent: pink
|
||||
# Automatic mode
|
||||
- media: "(prefers-color-scheme)"
|
||||
toggle:
|
||||
icon: material/brightness-auto
|
||||
name: Switch to light mode
|
||||
# Light
|
||||
- scheme: default
|
||||
primary: blue
|
||||
accent: pink
|
||||
media: "(prefers-color-scheme: light)"
|
||||
toggle:
|
||||
name: Switch to dark mode
|
||||
icon: material/weather-night
|
||||
# Dark
|
||||
- scheme: slate
|
||||
primary: blue
|
||||
accent: pink
|
||||
media: "(prefers-color-scheme: dark)"
|
||||
toggle:
|
||||
name: Switch to system preference
|
||||
icon: material/weather-sunny
|
||||
font:
|
||||
text: 'Roboto Slab'
|
||||
code: 'Roboto Mono'
|
||||
|
Loading…
Reference in New Issue
Block a user