Skip to content

Commit 529ab36

Browse files
mkdocs: add automatic light/dark mode
Support operating systems that automatically switch between light and dark appearances https://squidfunk.github.io/mkdocs-material/setup/changing-the-colors/#automatic-light-dark-mode
1 parent 2f735c6 commit 529ab36

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
## Added
66
- install: remove -Sdescribe (deprecated), use --version
77
- cli: add run repl as an explicit section
8+
- mkdocs: add automatic light/dark mode
89

910
# 2025-05-16
1011
## Added

mkdocs.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ theme:
3131
- navigation.top
3232
- navigation.tracking # Update URL with sub-heading anchor names
3333
palette:
34+
# Palette toggle for automatic mode
35+
- media: "(prefers-color-scheme)"
36+
toggle:
37+
icon: material/brightness-auto
38+
name: Switch to light mode
3439
# Palette toggle for light mode
3540
- media: "(prefers-color-scheme: light)"
3641
scheme: default

0 commit comments

Comments
 (0)