From 9c4c017eac2e81908d2ae7d8d777e143a13a1772 Mon Sep 17 00:00:00 2001 From: pwuersch <49908921+pwuersch@users.noreply.github.com> Date: Sat, 22 Nov 2025 18:52:12 +0100 Subject: [PATCH] docs: Enable automatic theme switching Signed-off-by: pwuersch <49908921+pwuersch@users.noreply.github.com> --- mkdocs.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/mkdocs.yml b/mkdocs.yml index a55f45f7..c6d98a7b 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -41,15 +41,21 @@ theme: - toc.follow # - toc.integrate 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: white toggle: icon: material/brightness-7 name: Switch to dark mode - - scheme: slate + - media: "(prefers-color-scheme: dark)" + scheme: slate toggle: icon: material/brightness-4 - name: Switch to light mode + name: Switch to system preference font: text: Roboto code: Roboto Mono