Skip to content

Commit

Permalink
docs: add dark mode toggle
Browse files Browse the repository at this point in the history
  • Loading branch information
skhrg committed Nov 15, 2024
1 parent 9cd73ce commit 415d5cc
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion mkdocs.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,25 @@
site_name: LAT_Alignment
site_url: https://simonsobs.github.io/LAT_Alignment/
theme: material
theme:
name: material
palette:
# 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
plugins:
- search
- mkdocs-homepage-copier
Expand Down

0 comments on commit 415d5cc

Please sign in to comment.