diff --git a/mkdocs.yml b/mkdocs.yml index fbfed6a..9f6ba7d 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -8,13 +8,19 @@ theme: font: text: Roboto palette: - - scheme: default + - media: "(prefers-color-scheme)" + toggle: + icon: material/brightness-auto + name: Switch to light mode + - media: "(prefers-color-scheme: light)" + scheme: default primary: indigo accent: indigo toggle: icon: material/toggle-switch name: Switch to dark mode - - scheme: slate + - media: "(prefers-color-scheme: dark)" + scheme: slate primary: indigo accent: indigo toggle: