From f3b1a13d203096a8470303a4abaa9d7a3039d25c Mon Sep 17 00:00:00 2001 From: Zeheng Li Date: Fri, 12 Apr 2024 14:39:35 -0600 Subject: [PATCH] clean up --- mkdocs.yml | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/mkdocs.yml b/mkdocs.yml index 7f34016b..a3548d03 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -8,15 +8,21 @@ theme: font: text: Roboto 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: orange accent: green toggle: icon: material/toggle-switch name: Switch to dark mode - - scheme: slate - primary: green - accent: orange + - media: "(prefers-color-scheme: dark)" + scheme: slate + primary: amber + accent: light green toggle: icon: material/toggle-switch-off-outline name: Switch to light mode @@ -54,5 +60,5 @@ markdown_extensions: - pymdownx.superfences - pymdownx.tilde - pymdownx.emoji: - emoji_index: !!python/name:materialx.emoji.twemoji - emoji_generator: !!python/name:materialx.emoji.to_svg + emoji_index: !!python/name:material.extensions.emoji.twemoji + emoji_generator: !!python/name:material.extensions.emoji.to_svg