docs: 补充设计原则、设计系统与界面自检规则
This commit is contained in:
@@ -9,6 +9,8 @@
|
||||
--surface-strong: #ffffff;
|
||||
--text-primary: #1b2a23;
|
||||
--text-secondary: #4b6156;
|
||||
/* 占位文字:比次要文字再轻一档,但仍要过 AA(白底 4.6:1) */
|
||||
--text-placeholder: #69796f;
|
||||
--border-soft: #d6e6dc;
|
||||
--shadow-soft: 0 14px 30px rgba(19, 61, 45, 0.09);
|
||||
--shadow-strong: 0 20px 45px rgba(19, 61, 45, 0.16);
|
||||
@@ -17,11 +19,16 @@
|
||||
--accent-warning: #e6a23c;
|
||||
--accent-warning-soft: #fff8e1;
|
||||
--accent-warning-strong: #b8860b;
|
||||
/* 浅黄底上的正文色:#b8860b 仅 3.06:1,达不到 WCAG AA;
|
||||
提醒块内的文字统一用这个(5.17:1),strong 只用于描边等非文字场合 */
|
||||
--accent-warning-text: #856404;
|
||||
/* 成功/命中语义的浅底与深字(统计卡片、标签共用) */
|
||||
--accent-success-soft: #e8f5e9;
|
||||
--accent-success-softer: #f1f8e9;
|
||||
--accent-success-strong: #2e7d32;
|
||||
--accent-success-text: #856404;
|
||||
/* 实底强调色上的文字:不要在各组件里写 #fff 字面量 */
|
||||
--text-on-accent: #ffffff;
|
||||
}
|
||||
|
||||
*,
|
||||
@@ -78,6 +85,12 @@ body {
|
||||
--el-color-success-light-8: #bcd9cc;
|
||||
--el-color-success-light-9: #eef9f3;
|
||||
--el-color-success-dark-2: var(--green-800);
|
||||
|
||||
/* EP 默认的次要文字 #909399(白底 3.08:1)与占位文字 #a8abb2(白底 2.30:1)
|
||||
都达不到 WCAG AA。空态说明、表单 placeholder 这些会承载必要信息的文字
|
||||
统一改成我们登记的辅助色与占位色。 */
|
||||
--el-text-color-secondary: var(--text-secondary);
|
||||
--el-text-color-placeholder: var(--text-placeholder);
|
||||
}
|
||||
|
||||
#app {
|
||||
|
||||
Reference in New Issue
Block a user