From d2ef1198f5f39d37a1a72dce73a21bc5748f856a Mon Sep 17 00:00:00 2001
From: Yoki <74389358+iamyoki@users.noreply.github.com>
Date: Tue, 17 Aug 2021 13:15:20 +0800
Subject: [PATCH] docs: improve theme switch experience (#31816)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* feat: 优化暗色主题模式下刷新白屏且延迟切换的问题,优化主题路由自动切换逻辑
* feat: 添加系统主题color-scheme, 在暗色模式下滚动条等系统控件也变为暗色主题
* feat: remove logic about localstorage theme, query theme from url search
---
site/theme/static/template.html | 66 +++++++++++++++++++++
site/theme/template/Content/MainContent.jsx | 2 +
2 files changed, 68 insertions(+)
diff --git a/site/theme/static/template.html b/site/theme/static/template.html
index ed7d9a89cf..f274ab1cb4 100644
--- a/site/theme/static/template.html
+++ b/site/theme/static/template.html
@@ -21,6 +21,72 @@
+
+