documentation: Improve theme

This commit is contained in:
世界 2024-10-12 08:57:24 +08:00
parent 82ab68b542
commit 3ede29fb6d
No known key found for this signature in database
GPG key ID: CD109927C34A63C4

View file

@ -11,18 +11,22 @@ theme:
logo: assets/icon.svg logo: assets/icon.svg
favicon: assets/icon.svg favicon: assets/icon.svg
palette: palette:
- media: "(prefers-color-scheme)"
toggle:
icon: material/link
name: Switch to light mode
- media: "(prefers-color-scheme: light)" - media: "(prefers-color-scheme: light)"
scheme: default scheme: default
primary: white primary: white
toggle: toggle:
icon: material/brightness-7 icon: material/toggle-switch
name: Switch to dark mode name: Switch to dark mode
- media: "(prefers-color-scheme: dark)" - media: "(prefers-color-scheme: dark)"
scheme: slate scheme: slate
primary: black primary: black
toggle: toggle:
icon: material/brightness-4 icon: material/toggle-switch-off
name: Switch to light mode name: Switch to system preference
features: features:
# - navigation.instant # - navigation.instant
- navigation.tracking - navigation.tracking