mirror of https://github.com/vapor/docs.git
Add dark mode support (#855)
This commit is contained in:
parent
871eab9b96
commit
1d9b0d49a2
18
mkdocs.yml
18
mkdocs.yml
|
|
@ -21,8 +21,22 @@ theme:
|
||||||
font: false
|
font: false
|
||||||
|
|
||||||
palette:
|
palette:
|
||||||
primary: black
|
# Palette toggle for light mode
|
||||||
accent: blue
|
- media: "(prefers-color-scheme: light)"
|
||||||
|
primary: black
|
||||||
|
accent: blue
|
||||||
|
scheme: default
|
||||||
|
toggle:
|
||||||
|
icon: material/brightness-4
|
||||||
|
name: Switch to dark mode
|
||||||
|
# Palette toggle for dark mode
|
||||||
|
- media: "(prefers-color-scheme: dark)"
|
||||||
|
primary: black
|
||||||
|
accent: blue
|
||||||
|
scheme: slate
|
||||||
|
toggle:
|
||||||
|
icon: material/brightness-7
|
||||||
|
name: Switch to light mode
|
||||||
|
|
||||||
logo: assets/logo.png
|
logo: assets/logo.png
|
||||||
favicon: assets/favicon.png
|
favicon: assets/favicon.png
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue