Skip to content

Commit

Permalink
暗色模式
Browse files Browse the repository at this point in the history
  • Loading branch information
Muska-Ami committed Jun 22, 2024
1 parent 2d4211a commit 07b43c1
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,26 @@ theme:
name: material
highlightjs: true
palette:
primary: green
accent: light green
- media: "(prefers-color-scheme)"
primary: green
accent: light green
toggle:
icon: material/brightness-auto
name: 跟随系统
- media: "(prefers-color-scheme: light)"
primary: green
accent: light green
scheme: default
toggle:
icon: material/brightness-7
name: 暗色模式
- media: "(prefers-color-scheme: dark)"
primary: green
accent: light green
scheme: slate
toggle:
icon: material/brightness-4
name: 暗色模式
favicon: https://spcraft.1l1.icu/favicon.ico
logo: https://spcraft.1l1.icu/favicon.ico
icon:
Expand Down

0 comments on commit 07b43c1

Please sign in to comment.