diff --git a/mkdocs.template.yml b/mkdocs.template.yml index a917a25dad..171578868d 100644 --- a/mkdocs.template.yml +++ b/mkdocs.template.yml @@ -14,16 +14,22 @@ theme: - navigation.top - content.code.copy palette: + # Note: Using the system theme works with the insiders version + # https://squidfunk.github.io/mkdocs-material/setup/changing-the-colors/#automatic-light-dark-mode + - media: "(prefers-color-scheme)" + toggle: + icon: material/brightness-auto + name: Switch to light mode - media: "(prefers-color-scheme: light)" scheme: astral-light toggle: - icon: material/weather-sunny + icon: material/brightness-7 name: Switch to dark mode - media: "(prefers-color-scheme: dark)" scheme: astral-dark toggle: - icon: material/weather-night - name: Switch to light mode + icon: material/brightness-4 + name: Switch to system preference custom_dir: docs/.overrides repo_url: https://github.com/astral-sh/ruff repo_name: ruff