Documentation: support use system preferences for light/dark mode (#7586)

This commit is contained in:
tooomm 2024-08-31 23:36:29 +02:00 committed by GitHub
parent 982eeb0d24
commit e34d48d913
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -6,6 +6,12 @@ theme:
text: Roboto
code: Roboto Mono
palette:
# Palette toggle for automatic mode
- media: "(prefers-color-scheme)"
toggle:
icon: material/brightness-auto
name: Switch to light mode
# Palette toggle for light mode
- media: "(prefers-color-scheme: light)"
scheme: default
@ -18,7 +24,7 @@ theme:
scheme: slate
toggle:
icon: material/brightness-4
name: Switch to light mode
name: Switch to system preference
features:
- navigation.tabs
- navigation.top