diff --git a/mkdocs.yml b/mkdocs.yml index 8dfd21bd5c..98d4639b71 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -21,7 +21,21 @@ theme: - navigation.top - navigation.expand palette: - primary: custom + - media: "(prefers-color-scheme: light)" + scheme: default + primary: custom + toggle: + icon: material/brightness-7 + name: Switch to dark mode + - media: (prefers-color-scheme) + toggle: + icon: material/brightness-auto + name: Switch to light mode + - media: "(prefers-color-scheme: dark)" + scheme: slate + toggle: + icon: material/brightness-4 + name: Switch to system preference custom_dir: site-src/overrides edit_uri: edit/main/site-src/ plugins: