mirror of
https://gitea.invidious.io/iv-org/documentation.git
synced 2024-08-15 00:53:34 +00:00
Add a button to switch between light and dark theme
This commit is contained in:
parent
c50cc9c555
commit
fd38eb83d3
1 changed files with 17 additions and 2 deletions
19
mkdocs.yml
19
mkdocs.yml
|
@ -42,8 +42,23 @@ nav:
|
|||
theme:
|
||||
name: material
|
||||
font: false
|
||||
palette:
|
||||
primary: black
|
||||
|
||||
palette:
|
||||
# Light mode
|
||||
- media: "(prefers-color-scheme: light)"
|
||||
scheme: default
|
||||
primary: black
|
||||
toggle:
|
||||
icon: material/brightness-7
|
||||
name: Switch to dark mode
|
||||
# Dark mode
|
||||
- media: "(prefers-color-scheme: dark)"
|
||||
scheme: slate
|
||||
primary: black
|
||||
toggle:
|
||||
icon: material/brightness-4
|
||||
name: Switch to light mode
|
||||
|
||||
logo: images/invidious.png # https://squidfunk.github.io/mkdocs-material/setup/changing-the-logo-and-icons/#logo
|
||||
favicon: images/favicon.ico # https://squidfunk.github.io/mkdocs-material/setup/changing-the-logo-and-icons/#favicon
|
||||
features:
|
||||
|
|
Loading…
Reference in a new issue