From e99ddfa19aa0e9ff278886c90b58346b0aa7bb64 Mon Sep 17 00:00:00 2001 From: Paul Friederichsen Date: Tue, 15 Feb 2022 05:44:38 -0600 Subject: [PATCH] Add dark theme for docs --- mkdocs.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/mkdocs.yml b/mkdocs.yml index 3e82c422..5f971892 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -62,7 +62,20 @@ nav: theme: name: material palette: - primary: blue grey + - media: "(prefers-color-scheme: light)" + scheme: default + primary: blue grey + accent: blue + toggle: + icon: material/toggle-switch-off-outline + name: Switch to dark mode + - media: "(prefers-color-scheme: dark)" + scheme: slate + primary: black + accent: blue + toggle: + icon: material/toggle-switch + name: Switch to light mode logo: assets/hydrus-white.svg favicon: assets/hydrus-black.svg font: false