Enhanced light/dark mode support in mkdocs configuration

This commit is contained in:
printfer 2024-01-14 01:05:01 -04:00 committed by 世界
parent a850a73e1a
commit 9b7deb5246
No known key found for this signature in database
GPG key ID: CD109927C34A63C4

View file

@ -11,12 +11,14 @@ theme:
logo: assets/icon.svg logo: assets/icon.svg
favicon: assets/icon.svg favicon: assets/icon.svg
palette: palette:
- scheme: default - media: "(prefers-color-scheme: light)"
scheme: default
primary: white primary: white
toggle: toggle:
icon: material/brightness-7 icon: material/brightness-7
name: Switch to dark mode name: Switch to dark mode
- scheme: slate - media: "(prefers-color-scheme: dark)"
scheme: slate
primary: black primary: black
toggle: toggle:
icon: material/brightness-4 icon: material/brightness-4