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
1 changed files with 4 additions and 2 deletions

View File

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