feat(theme): 中性色转暖落地(含 -rgb 孪生通道),挂上孪生一致性闸

P1:globals.css 68 处中性色转暖,深通道按「保 L、色相→33°、S≤0.14」算;P4 弱文字分三档
(装饰线 #C3BDB1/非文本信息 #8A8377/正文级 #6E675D);P3 三个深底红收敛为 #E9455F(对暖墨
#141210 实测 4.88:1)。14 处彩性蓝按裁决故意不动。P2:public/fonts/ 放思源宋体可变子集 388.1KB
(cmap 回读 0 缺字)+两份 OFL 1.1 正文,--font-serif 队首插入 Novalon Serif SC,系统兜底全保留。

落库时查出并修一条真缺陷:43 条 -rgb 三元组有 22 条从未迁移(:root 11+深色块 11,色相仍 H210-217),
而 Tailwind 有 29 个颜色键经 rgb(var(--X-rgb)) 消费 ⇒ 渲染主通道还是冷的;当时 check:contrast 44/44
全绿(读 hex)、视觉套件 0 张重写 ⇒ 两道闸一起假绿。按「孪生等于同块 hex」对齐 22 条并新增常驻闸
npm run check:token-twins(0 条判红/不等判红/孤儿判红),复测 43/43 一致。
This commit is contained in:
zhangxiang committed 2026-10-16 19:23:25 +08:00
1 parent 723a3d0c20
commit dd8ee80b97
7 files changed
+134 -87

No files matched your search

+1
View File
@@ -49,6 +49,7 @@
"check:contrast": "tsx scripts/utils/check-color-contrast.ts",
"check:headings": "tsx scripts/utils/check-heading-hierarchy.ts",
"check:brand-token": "tsx scripts/utils/check-brand-text-token.ts",
"check:token-twins": "node scripts/check-token-twins.mjs",
"check:motion": "tsx scripts/utils/check-motion-constraints.ts",
"check:motion:test": "jest --roots '<rootDir>/scripts/utils/__tests__'",
"check:a11y": "npm run check:contrast && npm run check:headings && npm run check:brand-token",