From 90266f587db39794fdf07bd9a01d26c7e86e2fc7 Mon Sep 17 00:00:00 2001 From: yanweidong Date: Tue, 21 Jul 2026 12:55:02 +0800 Subject: [PATCH] fix(web): preserve primary token in dark theme --- apps/web_v1/scripts/structure-check.mjs | 3 +++ apps/web_v1/src/App.css | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/web_v1/scripts/structure-check.mjs b/apps/web_v1/scripts/structure-check.mjs index 30e03b6..9256619 100644 --- a/apps/web_v1/scripts/structure-check.mjs +++ b/apps/web_v1/scripts/structure-check.mjs @@ -66,6 +66,9 @@ if (existsSync('public/senlinai-icon.svg')) { if (icon.includes('role=') || icon.includes('aria-labelledby=')) failures.push('brand SVG must not expose presentation ARIA') } const appStyles = readFileSync('src/App.css', 'utf8') +if (/\.theme-dark\s*\{[^}]*--color-primary\s*:/s.test(appStyles)) { + failures.push('theme-dark must not override the #165DFF primary token') +} if (!appStyles.includes('.brand-icon {')) failures.push('brand-icon must have an explicit base size') if (!appStyles.includes('.brand-lockup.large .brand-icon')) failures.push('login brand icon must have an explicit size') if (!appStyles.includes('.rail-brand {')) failures.push('rail brand button must have explicit layout') diff --git a/apps/web_v1/src/App.css b/apps/web_v1/src/App.css index 109cdff..8804efe 100644 --- a/apps/web_v1/src/App.css +++ b/apps/web_v1/src/App.css @@ -12,7 +12,6 @@ --color-text: #cccccc; --color-muted: #858585; --color-soft-blue: rgba(0, 122, 204, 0.22); - --color-primary: #007acc; --color-status: #007acc; }