forked from DigiLive/mushroom-strategy
Refactor MKDocs configuration
The theme now follows the dark/light mode of the browser.
This commit is contained in:
10
mkdocs.yml
10
mkdocs.yml
@ -13,18 +13,24 @@ theme:
|
|||||||
icon:
|
icon:
|
||||||
logo: material/mushroom
|
logo: material/mushroom
|
||||||
palette:
|
palette:
|
||||||
- scheme: default
|
- media: "(prefers-color-scheme: light)"
|
||||||
|
scheme: default
|
||||||
primary: blue
|
primary: blue
|
||||||
accent: light blue
|
accent: light blue
|
||||||
toggle:
|
toggle:
|
||||||
icon: material/brightness-7
|
icon: material/brightness-7
|
||||||
name: Switch to dark mode
|
name: Switch to dark mode
|
||||||
- scheme: slate
|
- media: "(prefers-color-scheme: dark)"
|
||||||
|
scheme: slate
|
||||||
primary: blue
|
primary: blue
|
||||||
accent: light blue
|
accent: light blue
|
||||||
toggle:
|
toggle:
|
||||||
icon: material/brightness-4
|
icon: material/brightness-4
|
||||||
name: Switch to light mode
|
name: Switch to light mode
|
||||||
|
- media: "(prefers-color-scheme)" # This covers both light and dark system preferences
|
||||||
|
toggle:
|
||||||
|
icon: material/brightness-auto # Icon for automatic mode
|
||||||
|
name: Switch to light/dark mode (auto)
|
||||||
features:
|
features:
|
||||||
- navigation.tabs
|
- navigation.tabs
|
||||||
- navigation.sections
|
- navigation.sections
|
||||||
|
Reference in New Issue
Block a user