Skip to content

Commit

Permalink
Add dark mode toggle to documentation (#3726)
Browse files Browse the repository at this point in the history
  • Loading branch information
falbrechtskirchinger authored Sep 15, 2022
1 parent 58bd97e commit 15ca78a
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions docs/mkdocs/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,21 @@ theme:
name: material
language: en
palette:
primary: indigo
accent: indigo
- media: '(prefers-color-scheme: light)'
scheme: default
primary: indigo
accent: indigo
toggle:
icon: material/brightness-7
name: Switch to dark mode
- media: '(prefers-color-scheme: dark)'
scheme: slate
primary: indigo
accent: indigo
toggle:
icon: material/brightness-4
name: Switch to light mode

font:
text: Roboto
code: JetBrains Mono
Expand Down

0 comments on commit 15ca78a

Please sign in to comment.