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
favicon: assets/icon.svg
palette:
- media: "(prefers-color-scheme)"
toggle:
icon: material/link
name: Switch to light mode
- media: "(prefers-color-scheme: light)"
scheme: default
primary: white
toggle:
icon: material/brightness-7
icon: material/toggle-switch
name: Switch to dark mode
- media: "(prefers-color-scheme: dark)"
scheme: slate
primary: black
toggle:
icon: material/brightness-4
name: Switch to light mode
icon: material/toggle-switch-off
name: Switch to system preference
features:
# - navigation.instant
- navigation.tracking