Skip to content

Commit

Permalink
[MAINT] implement dark mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Remi-Gau authored May 11, 2024
1 parent 6b2ee7f commit 589ba86
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 @@ -9,9 +9,27 @@ theme:
language: "en"
favicon: img/favicon.png
logo: img/favicon_on_white.png
icon:
repo: fontawesome/brands/github
edit: material/pencil
palette:
primary: "dark blue"
accent: "light blue"
# Palette toggle for automatic mode
- media: (prefers-color-scheme)
toggle:
icon: material/brightness-auto
name: Switch to light mode
# Palette toggle for light mode
- media: "(prefers-color-scheme: light)"
scheme: default
toggle:
icon: material/brightness-7
name: Switch to dark mode
# Palette toggle for dark mode
- media: "(prefers-color-scheme: dark)"
scheme: slate
toggle:
icon: material/brightness-4
name: Switch to system preference

# Pages
nav:
Expand Down

0 comments on commit 589ba86

Please sign in to comment.