Adding light / dark mode themes switch.
This commit is contained in:
parent
525259c16b
commit
a925b9c9c3
19
mkdocs.yml
19
mkdocs.yml
|
@ -4,6 +4,25 @@ repo_url: https://github.com/psx-spx/psx-spx.github.io/
|
|||
|
||||
theme:
|
||||
name: material
|
||||
palette:
|
||||
|
||||
# Light mode
|
||||
- media: "(prefers-color-scheme: light)"
|
||||
scheme: default
|
||||
primary: indigo
|
||||
accent: indigo
|
||||
toggle:
|
||||
icon: material/toggle-switch-off-outline
|
||||
name: Switch to dark mode
|
||||
|
||||
# Dark mode
|
||||
- media: "(prefers-color-scheme: dark)"
|
||||
scheme: slate
|
||||
primary: blue
|
||||
accent: blue
|
||||
toggle:
|
||||
icon: material/toggle-switch
|
||||
name: Switch to light mode
|
||||
|
||||
plugins:
|
||||
- search
|
||||
|
|
Loading…
Reference in New Issue