Skip to content

Commit

Permalink
docs: add auto prefers-color-scheme (#786)
Browse files Browse the repository at this point in the history
  • Loading branch information
mkniewallner committed Aug 4, 2024
1 parent 4a70786 commit 2b8deaf
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ theme:
- content.code.copy
- navigation.footer
palette:
- media: "(prefers-color-scheme)"
toggle:
icon: material/brightness-auto
name: Switch to light mode
- media: "(prefers-color-scheme: light)"
scheme: default
primary: cyan
Expand All @@ -37,7 +41,7 @@ theme:
accent: deep orange
toggle:
icon: material/brightness-4
name: Switch to light mode
name: Switch to system preferences
icon:
repo: fontawesome/brands/github

Expand Down

0 comments on commit 2b8deaf

Please sign in to comment.