From baf14897aac4a7152a4fb73755163285eb814e97 Mon Sep 17 00:00:00 2001 From: Sakurasan <26715255+Sakurasan@users.noreply.github.com> Date: Tue, 29 Sep 2026 02:55:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B3=A8=E9=87=8A=E5=90=8C=E6=AD=A5=EF=BC=9A?= =?UTF-8?q?=E7=9A=AE=E8=82=A4=E7=B2=BE=E7=AE=80=E5=90=8E=20data-theme=20?= =?UTF-8?q?=E8=AF=B4=E6=98=8E=E6=94=B9=E4=B8=BA=20paper/ink?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/site.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/site.js b/frontend/src/site.js index 558944d..e97ef4e 100644 --- a/frontend/src/site.js +++ b/frontend/src/site.js @@ -101,7 +101,7 @@ export const site = reactive({ loaded: false }) -// data-theme → 前台皮肤。classic: paper/sage/rose/ink;vivid: vivid/vivid-dark +// data-theme → 前台皮肤。classic: paper/ink(亮端固定纸感);vivid: vivid/vivid-dark // data-admin-theme → 后台明暗(light / dark),跟 site.themeMode 同步 // data-ui → 整站 UI 版本(classic / vivid) // @@ -129,7 +129,7 @@ function applyTheme(animate = false) { setTimeout(() => el.classList.remove('theme-anim'), 300) } const isDark = site.themeMode === 'dark' || (site.themeMode === 'auto' && systemPrefersDark()) - // vivid 自带亮/暗两套调色板,不复用 paper/sage/rose —— 否则两套 token 会互相打架。 + // vivid 自带亮/暗两套调色板,不复用 classic 的纸感/墨色 —— 否则两套 token 会互相打架。 const vivid = !adminScope && site.ui_id === 'vivid' const theme = vivid ? (isDark ? 'vivid-dark' : 'vivid')