Skip to content

Commit

Permalink
use system preference for light/dark mode
Browse files Browse the repository at this point in the history
  • Loading branch information
sellth committed Mar 9, 2024
1 parent e93279e commit 5025f43
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions bih-cluster/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,14 @@ theme:
custom_dir: overrides
palette:
# Palette toggle for light mode
- scheme: default
- media: "(prefers-color-scheme: light)"
scheme: default
toggle:
icon: material/lightbulb
name: Switch to dark mode
# Palette toggle for dark mode
- scheme: slate
- media: "(prefers-color-scheme: dark)"
scheme: slate
toggle:
icon: material/lightbulb-outline
name: Switch to light mode
Expand Down

0 comments on commit 5025f43

Please sign in to comment.