feat(web): 接入和信企业 Design System 并统一控制台主色
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
b071c2a7a4
commit
ae67fefc80
9 files changed
+168
-17
No files matched your search
+47
-8
@@ -1,12 +1,51 @@
|
||||
/**
|
||||
* web/design/tokens.css
|
||||
* 用途:Watchman 控制台 L1 Design Tokens(颜色、字阶、圆角);可执行真源。
|
||||
* 依赖:无;由 apps/console/src/styles.css 引入,再由 element-theme.css 映射到 --el-*。
|
||||
* 逻辑:对齐 D:\FDE\SP\design-system\DESIGN.md(和信企业默认皮肤);换肤只改本文件。
|
||||
* 决策:主色 #0284c7 见 docs/decisions.md D41(覆盖公司 visual-ux 文档基线紫蓝)。
|
||||
*/
|
||||
:root {
|
||||
--color-primary: #5e6ad2;
|
||||
--text-primary: #1f2328;
|
||||
--text-secondary: #59636e;
|
||||
--text-muted: #8b949e;
|
||||
/* Surfaces */
|
||||
--bg-page: #f8fafc;
|
||||
--bg-surface: #ffffff;
|
||||
--bg-surface-soft: #f6f8fa;
|
||||
--border-default: #d0d7de;
|
||||
--border-subtle: #eaeef2;
|
||||
--bg-surface-soft: #f8fafc;
|
||||
--bg-surface-strong: #f1f5f9;
|
||||
|
||||
/* Brand */
|
||||
--color-primary: #0284c7;
|
||||
--color-primary-soft: #e0f2fe;
|
||||
|
||||
/* Text */
|
||||
--text-primary: #0f172a;
|
||||
--text-secondary: #334155;
|
||||
--text-muted: #64748b;
|
||||
|
||||
/* Borders */
|
||||
--border-default: #e2e8f0;
|
||||
--border-subtle: #f1f5f9;
|
||||
|
||||
/* Radius & type */
|
||||
--radius-control: 8px;
|
||||
--font-size-base: 13.5px;
|
||||
--radius-surface: 16px;
|
||||
--font-size-base: 14px;
|
||||
}
|
||||
|
||||
html.dark {
|
||||
color-scheme: dark;
|
||||
|
||||
--bg-page: #020617;
|
||||
--bg-surface: #0b1220;
|
||||
--bg-surface-soft: #0f172a;
|
||||
--bg-surface-strong: #1e293b;
|
||||
|
||||
--color-primary: #38bdf8;
|
||||
--color-primary-soft: rgba(14, 165, 233, 0.18);
|
||||
|
||||
--text-primary: #f8fafc;
|
||||
--text-secondary: #cbd5e1;
|
||||
--text-muted: #94a3b8;
|
||||
|
||||
--border-default: #334155;
|
||||
--border-subtle: #1e293b;
|
||||
}
|
||||
Reference in new issue
Block a user