From 53b4b985a31ba4c8d1233edaad13a86c893f7665 Mon Sep 17 00:00:00 2001 From: Sigurd Spieckermann Date: Wed, 20 Dec 2023 10:14:10 +0100 Subject: [PATCH] docs: enable automatic light/dark mode --- mkdocs.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mkdocs.yml b/mkdocs.yml index 9d91ad0a3..e6d6ef994 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -33,6 +33,10 @@ theme: - navigation.top - navigation.tracking palette: + - media: "(prefers-color-scheme)" + toggle: + icon: material/brightness-auto + name: Switch to light mode - media: "(prefers-color-scheme: light)" scheme: default primary: deep orange @@ -46,7 +50,7 @@ theme: accent: orange toggle: icon: material/weather-night - name: Switch to light mode + name: Switch to system preference extra_css: - css/mkdocstrings.css