iter(g26): verify 增加令牌引用校验并统一令牌来源

This commit is contained in:
HIsheR
2026-10-26 11:36:33 +08:00
parent d961d570b5
commit 6ad0765e4b
5 changed files with 70 additions and 39 deletions
+11 -8
View File
@@ -1195,19 +1195,22 @@ node packages/tools/cli/bin/ua.js <index|list|info <name>|docs|tokens|style|veri
- --ua-color-surface: #f6f7f9(暗色 #1a1c22)
- --ua-color-text: #1c1e21(暗色 #e7e9ec)
- --ua-color-text-muted: #6b7280(暗色 #888780)
- --ua-color-border: rgba(0, 0, 0, 0.15)(暗色 rgba(255, 255, 255, 0.15))
- --ua-color-accent: #185fa5(暗色 #378add)
- --ua-color-danger: #a32d2d
- --ua-color-success: #0f6e56
### radius
- --ua-color-accent-contrast: #ffffff(暗色 #042c53)
- --ua-color-danger: #a32d2d(暗色 #d96a6a)
- --ua-color-success: #0f6e56(暗色 #4fc39e)
- --ua-color-warning: #9a6b1f(暗色 #d9a94f)
- --ua-radius-sm: 4px
- --ua-radius-md: 8px
- --ua-radius-lg: 12px
### space
- --ua-space-1: 4px
- --ua-space-2: 8px
- --ua-space-3: 12px
- --ua-space-4: 16px
- --ua-space-table-cell: var(--ua-space-2) var(--ua-space-3)
- --ua-font-size-sm: 12px
- --ua-font-size-md: 13px
- --ua-font-size-lg: 14px
皮肤包只允许消费这些变量:写死 #hex 会被 verify 拦截,拼错变量名会被令牌引用校验拦截。