Skip to content

Commit

Permalink
Add dark mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Peng-Yu Chen committed Jul 5, 2022
1 parent a412d44 commit ac64ead
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,22 @@ theme:
custom_dir: custom
favicon: assets/favicon.png
palette:
primary: teal
accent: blue
# Light mode
- media: '(prefers-color-scheme: light)'
scheme: default
primary: teal
accent: blue
toggle:
icon: material/weather-night
name: Switch to dark mode
# Dark mode
- media: '(prefers-color-scheme: dark)'
scheme: slate
primary: cyan
accent: amber
toggle:
icon: material/weather-sunny
name: Switch to light mode
font:
text: Roboto
code: Roboto Mono
Expand Down

0 comments on commit ac64ead

Please sign in to comment.