fix(mp): T40 UI 设计系统合规审计修复 — 60 页面全覆盖

- 新增 $white 语义变量 + --tk-font-display Token
- 44 处 #fff → $white,2 处 background: #fff → $card
- 14 处 border-radius 硬编码统一为 $r-xs/$r-lg/$r
- 3 处 TSX inline 颜色提取为 SCSS 类(exchange/orders/action-inbox)
- ErrorBoundary 重构:6 个 inline style → SCSS 类 + Design Token
- 2 处离调色板颜色修正(#0284C7→$tx2, #94A3B8→$tx3)
- 2 处静默 catch 块添加状态清理(article/health)
- 趋势页补 Loading/EmptyState;咨询页 GuestGuard 统一
- 4 处 #FFFFFF → $white(mixins/index/exchange/variables)
This commit is contained in:
iven
2026-05-13 23:26:00 +08:00
parent 02082ccc61
commit 93c77c5857
49 changed files with 317 additions and 143 deletions

View File

@@ -55,7 +55,7 @@
height: $btn-primary-h;
border-radius: $r;
background: $pri;
color: #FFFFFF;
color: $white;
font-size: var(--tk-font-body-lg);
font-weight: 600;
border: none;

View File

@@ -7,7 +7,8 @@
// 正常模式 Token
// ═══════════════════════════════════════
page {
// ─── 字号10 级,覆盖 92.5% 场景)───
// ─── 字号11 级,覆盖 92.5% 场景)───
--tk-font-display: 72px; // 大型装饰数值(积分余额、空状态图标)
--tk-font-hero: 48px; // 装饰图标、空状态字符
--tk-font-h1: 26px; // 页面/区块标题
--tk-font-h2: 24px; // 副标题、日期、菜单组
@@ -31,6 +32,7 @@ page {
// 标题 ×1.15 / 正文 ×1.35 / 辅助 ×1.55
// ═══════════════════════════════════════
.elder-mode {
--tk-font-display: 80px;
--tk-font-hero: 56px;
--tk-font-h1: 30px;
--tk-font-h2: 28px;

View File

@@ -10,6 +10,7 @@ $acc: #5B7A5E; // 鼠尾草绿 (success)
$acc-l: #E8F0E8; // 成功浅
$bg: #F5F0EB; // 主背景 (warm cream)
$card: #FFFFFF; // 卡片白
$white: #FFFFFF; // 纯白(文字/图标在彩色底上)
$surface-alt: #EDE8E2; // 辅助底
$tx: #2D2A26; // 主文字 (warm black)
$tx2: #5A554F; // 次文字 (warm gray) — AA 正文对比度 ~5.5:1