Files
watchman/web/design/tokens.css
T

52 lines
1.3 KiB
CSS

/**
* 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 {
/* Surfaces */
--bg-page: #f8fafc;
--bg-surface: #ffffff;
--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;
--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;
}