Skip to content

A community-supported supercharged document management system: scan, index and archive all your documents

Documentation: support use system preferences for light/dark mode (#7586)

tooomme34d48d913d8
diff --git a/mkdocs.yml b/mkdocs.yml
index 546fc4fbf..fcaedaaee 100644
--- a/mkdocs.yml
+++ b/mkdocs.yml
@@ -6,6 +6,12 @@ theme:
text: Roboto
code: Roboto Mono
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
@@ -18,7 +24,7 @@ theme:
scheme: slate
toggle:
icon: material/brightness-4
- name: Switch to light mode
+ name: Switch to system preference
features:
- navigation.tabs
- navigation.top