From 9b7deb524634f20fe5e6dcc8f097d5c2195ce7cd Mon Sep 17 00:00:00 2001 From: printfer <16911871+printfer@users.noreply.github.com> Date: Sun, 14 Jan 2024 01:05:01 -0400 Subject: [PATCH] Enhanced light/dark mode support in mkdocs configuration --- mkdocs.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mkdocs.yml b/mkdocs.yml index 9547a580..e786cfde 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -11,12 +11,14 @@ theme: logo: assets/icon.svg favicon: assets/icon.svg palette: - - scheme: default + - 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 primary: black toggle: icon: material/brightness-4