Add dark mode toggle to documentation (#3726)

This commit is contained in:
Florian Albrechtskirchinger 2022-09-15 22:02:54 +02:00 committed by GitHub
parent 58bd97e2b1
commit 15ca78a886
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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