From b36d4cc088a49af56026aa2dd2e85d6bfb181bd1 Mon Sep 17 00:00:00 2001 From: mauwii Date: Wed, 14 Sep 2022 02:06:39 +0200 Subject: [PATCH] add dark theme --- mkdocs.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/mkdocs.yml b/mkdocs.yml index db0f40887b..13d247282a 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -13,6 +13,20 @@ copyright: Copyright © 2022 Lincoln D. Stein # Configuration theme: name: material + palette: + - media: '(prefers-color-scheme: light)' + primary: blue + scheme: default + toggle: + icon: material/lightbulb + name: Switch to dark mode + - media: '(prefers-color-scheme: dark)' + primary: dark-blue + accent: white + scheme: slate + toggle: + icon: material/lightbulb-outline + name: Switch to light mode # Extensions markdown_extensions: