Skip to content

Commit

Permalink
feat(doc): add light/dark mode to documentation🧾 (#78)
Browse files Browse the repository at this point in the history
* feat(doc): add light/dark mode to documentation

* feat(doc): cleanup
  • Loading branch information
KarelZe authored Jan 13, 2024
1 parent c4392ba commit 9d7dc11
Showing 1 changed file with 24 additions and 2 deletions.
26 changes: 24 additions & 2 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,31 @@ theme:
logo: img/logo.png
favicon: img/favicon.ico
name: material
darkMode: true
palette:
primary: black
accent: indigo
# Palette toggle for automatic mode
- media: "(prefers-color-scheme)"
toggle:
icon: material/brightness-auto
name: Switch to light mode
primary: black
accent: indigo
# Palette toggle for light mode
- media: "(prefers-color-scheme: light)"
scheme: default
toggle:
icon: material/brightness-7
name: Switch to dark mode
primary: black
accent: indigo
# Palette toggle for dark mode
- media: "(prefers-color-scheme: dark)"
scheme: slate
toggle:
icon: material/brightness-4
name: Switch to system preference
primary: black
accent: indigo
icon:
repo: fontawesome/brands/github
edit: material/pencil
Expand Down

0 comments on commit 9d7dc11

Please sign in to comment.