From: r3g_5z Date: Sat, 10 Dec 2022 03:49:25 +0000 (-0500) Subject: Add dark and light theme mode to docs, detection, and button X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=fbfffccc1d7ede96b4d72523ed813b7f4c365bf3;p=akkoma Add dark and light theme mode to docs, detection, and button my eyes hurt Signed-off-by: r3g_5z --- diff --git a/docs/mkdocs.yml b/docs/mkdocs.yml index b554d3df3..655abdd69 100644 --- a/docs/mkdocs.yml +++ b/docs/mkdocs.yml @@ -12,8 +12,21 @@ theme: - navigation.instant - navigation.sections palette: - primary: 'deep purple' - accent: 'blue grey' + - media: "(prefers-color-scheme: light)" + scheme: default + toggle: + icon: material/brightness-7 + name: Switch to dark mode + primary: 'deep purple' + accent: 'blue grey' + + - media: "(prefers-color-scheme: dark)" + scheme: slate + toggle: + icon: material/brightness-4 + name: Switch to light mode + primary: 'deep purple' + accent: 'blue grey' extra_css: - css/extra.css