iter(g182): 暗色阴影与焦点环适配
This commit is contained in:
@@ -1015,6 +1015,10 @@ function checkDarkTokens(issues) {
|
||||
if (!n.startsWith('--ua-color-')) continue; // 卫语句:只有颜色需要暗色重定值,间距/字号/圆角通用
|
||||
if (!darkSet.has(n)) issues.push(`tokens: 颜色令牌 ${n} 缺 [data-theme='dark'] 覆盖(暗色下会沿用亮色值)`);
|
||||
}
|
||||
for (const n of rootNames) {
|
||||
if (!/^--ua-(shadow|focus)/.test(n)) continue; // 卫语句:阴影与焦点环在暗底上必须重定值(黑投影要加黑、色环要补对比)
|
||||
if (!darkSet.has(n)) issues.push(`tokens: 令牌 ${n} 缺 [data-theme='dark'] 覆盖(暗底上沿用亮色值会丢层级/焦点对比)`);
|
||||
}
|
||||
for (const n of darkNames) if (!rootSet.has(n)) issues.push(`tokens: 暗色块里的 ${n} 未在 :root 定义(改名后忘了同步)`);
|
||||
}
|
||||
/*** llms-full.txt 同步校验:内联重渲染 Agent 文档(时间戳归一化)与落盘产物比对,防 manifest 改后忘跑 docs ***/
|
||||
|
||||
Reference in New Issue
Block a user