Skip to content

Commit

Permalink
automatic theme changing
Browse files Browse the repository at this point in the history
  • Loading branch information
jmkd3v committed Feb 15, 2024
1 parent fd49768 commit 95d24a0
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,26 @@ theme:
repo: fontawesome/brands/github

palette:
- media: "(prefers-color-scheme)"
toggle:
icon: material/brightness-auto
name: Switch to light theme

- media: "(prefers-color-scheme: light)"
scheme: default
primary: white
accent: blue
toggle:
icon: material/brightness-7
name: Switch to dark mode
name: Switch to dark theme

- media: "(prefers-color-scheme: dark)"
scheme: slate
primary: black
accent: blue
toggle:
icon: material/brightness-3
name: Switch to light mode
name: Switch to automatic theme

features:
- content.code.annotate
Expand Down

0 comments on commit 95d24a0

Please sign in to comment.