agentcss 0.0.0-stage → 0.11.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (274) hide show
  1. package/01-tokens/README.md +236 -0
  2. package/01-tokens/behavior/dismissable.js +132 -0
  3. package/01-tokens/behavior/emit.js +76 -0
  4. package/01-tokens/behavior/focus-return.js +81 -0
  5. package/01-tokens/behavior/roving.js +152 -0
  6. package/01-tokens/behavior/typeahead.js +124 -0
  7. package/01-tokens/focus-ring-demo.html +133 -0
  8. package/01-tokens/focus-ring.css +102 -0
  9. package/01-tokens/page.css +244 -0
  10. package/01-tokens/polyfill.js +116 -0
  11. package/01-tokens/responsive-demo.html +171 -0
  12. package/01-tokens/scrollbar-demo.html +194 -0
  13. package/01-tokens/scrollbar.css +179 -0
  14. package/01-tokens/theme-toggle.js +103 -0
  15. package/01-tokens/tokens.css +972 -0
  16. package/01-tokens/typography.css +156 -0
  17. package/02-primitives/badge/README.md +71 -0
  18. package/02-primitives/badge/badge.css +141 -0
  19. package/02-primitives/badge/demo.html +101 -0
  20. package/02-primitives/button/README.md +99 -0
  21. package/02-primitives/button/button.css +353 -0
  22. package/02-primitives/button/demo.html +200 -0
  23. package/02-primitives/card/README.md +145 -0
  24. package/02-primitives/card/card.css +246 -0
  25. package/02-primitives/card/demo.html +170 -0
  26. package/02-primitives/choice/README.md +161 -0
  27. package/02-primitives/choice/choice.css +395 -0
  28. package/02-primitives/choice/demo.html +277 -0
  29. package/02-primitives/combobox/README.md +79 -0
  30. package/02-primitives/combobox/combobox.css +223 -0
  31. package/02-primitives/combobox/combobox.js +485 -0
  32. package/02-primitives/combobox/demo.html +109 -0
  33. package/02-primitives/date-range/README.md +100 -0
  34. package/02-primitives/date-range/date-range.css +206 -0
  35. package/02-primitives/date-range/date-range.js +301 -0
  36. package/02-primitives/date-range/demo.html +104 -0
  37. package/02-primitives/input/README.md +170 -0
  38. package/02-primitives/input/demo.html +246 -0
  39. package/02-primitives/input/input.css +239 -0
  40. package/02-primitives/popover/README.md +80 -0
  41. package/02-primitives/popover/demo.html +150 -0
  42. package/02-primitives/popover/popover.css +187 -0
  43. package/02-primitives/popover/popover.js +331 -0
  44. package/02-primitives/progress/README.md +82 -0
  45. package/02-primitives/progress/demo.html +154 -0
  46. package/02-primitives/progress/progress.css +172 -0
  47. package/02-primitives/select/README.md +95 -0
  48. package/02-primitives/select/demo.html +121 -0
  49. package/02-primitives/select/select.css +151 -0
  50. package/02-primitives/select/select.js +549 -0
  51. package/02-primitives/separator/README.md +63 -0
  52. package/02-primitives/separator/demo.html +84 -0
  53. package/02-primitives/separator/separator.css +73 -0
  54. package/02-primitives/skeleton/README.md +69 -0
  55. package/02-primitives/skeleton/demo.html +110 -0
  56. package/02-primitives/skeleton/skeleton.css +96 -0
  57. package/02-primitives/switch/README.md +65 -0
  58. package/02-primitives/switch/demo.html +115 -0
  59. package/02-primitives/switch/switch.css +370 -0
  60. package/03-patterns/accordion/README.md +121 -0
  61. package/03-patterns/accordion/accordion.css +453 -0
  62. package/03-patterns/accordion/accordion.js +369 -0
  63. package/03-patterns/accordion/demo.html +223 -0
  64. package/03-patterns/content/README.md +103 -0
  65. package/03-patterns/content/content.css +286 -0
  66. package/03-patterns/content/demo.html +88 -0
  67. package/03-patterns/drawer/README.md +79 -0
  68. package/03-patterns/drawer/demo.html +101 -0
  69. package/03-patterns/drawer/drawer.css +129 -0
  70. package/03-patterns/drawer/drawer.js +258 -0
  71. package/03-patterns/dropdown/README.md +78 -0
  72. package/03-patterns/dropdown/demo.html +101 -0
  73. package/03-patterns/dropdown/dropdown.css +135 -0
  74. package/03-patterns/dropdown/dropdown.js +451 -0
  75. package/03-patterns/form-validation/README.md +147 -0
  76. package/03-patterns/form-validation/demo.html +280 -0
  77. package/03-patterns/form-validation/form-validation.css +263 -0
  78. package/03-patterns/list/README.md +150 -0
  79. package/03-patterns/list/demo.html +225 -0
  80. package/03-patterns/list/flip.js +201 -0
  81. package/03-patterns/list/list.css +162 -0
  82. package/03-patterns/nav/README.md +225 -0
  83. package/03-patterns/nav/demo.html +131 -0
  84. package/03-patterns/nav/nav.css +314 -0
  85. package/03-patterns/nav/nav.js +430 -0
  86. package/03-patterns/nav/toc.js +111 -0
  87. package/03-patterns/overlay/README.md +196 -0
  88. package/03-patterns/overlay/demo.html +241 -0
  89. package/03-patterns/overlay/overlay.css +319 -0
  90. package/03-patterns/overlay/overlay.js +563 -0
  91. package/03-patterns/pagination/README.md +114 -0
  92. package/03-patterns/pagination/demo.html +165 -0
  93. package/03-patterns/pagination/pagination.css +195 -0
  94. package/03-patterns/pagination/pagination.js +395 -0
  95. package/03-patterns/reveal/README.md +91 -0
  96. package/03-patterns/reveal/demo.html +106 -0
  97. package/03-patterns/reveal/reveal.css +93 -0
  98. package/03-patterns/reveal/reveal.js +172 -0
  99. package/03-patterns/states/README.md +141 -0
  100. package/03-patterns/states/demo.html +240 -0
  101. package/03-patterns/states/states.css +252 -0
  102. package/03-patterns/tabs/README.md +84 -0
  103. package/03-patterns/tabs/demo.html +139 -0
  104. package/03-patterns/tabs/tabs.css +172 -0
  105. package/03-patterns/tabs/tabs.js +307 -0
  106. package/03-patterns/tooltip/README.md +96 -0
  107. package/03-patterns/tooltip/demo.html +78 -0
  108. package/03-patterns/tooltip/tooltip.css +89 -0
  109. package/03-patterns/tooltip/tooltip.js +288 -0
  110. package/03-patterns/tree/README.md +94 -0
  111. package/03-patterns/tree/demo.html +138 -0
  112. package/03-patterns/tree/tree.css +113 -0
  113. package/03-patterns/tree/tree.js +456 -0
  114. package/04-recipes/analysis-report/README.md +80 -0
  115. package/04-recipes/analysis-report/analysis-report.css +187 -0
  116. package/04-recipes/analysis-report/demo.html +274 -0
  117. package/04-recipes/data-showcase/README.md +45 -0
  118. package/04-recipes/data-showcase/demo.html +247 -0
  119. package/04-recipes/detail-page/README.md +93 -0
  120. package/04-recipes/detail-page/demo.html +55 -0
  121. package/04-recipes/detail-page/detail-page.css +190 -0
  122. package/04-recipes/detail-page/full.html +60 -0
  123. package/04-recipes/detail-page/null.html +60 -0
  124. package/04-recipes/detail-page/partial.html +60 -0
  125. package/04-recipes/detail-page/verify-skeleton.py +19 -0
  126. package/04-recipes/longform/README.md +93 -0
  127. package/04-recipes/longform/agc-memory.svg +4 -0
  128. package/04-recipes/longform/content.html +610 -0
  129. package/04-recipes/longform/content.md +51 -0
  130. package/04-recipes/longform/longform.html +627 -0
  131. package/04-recipes/report/README.md +176 -0
  132. package/04-recipes/report/demo.html +355 -0
  133. package/04-recipes/report/report.css +364 -0
  134. package/04-recipes/table/README.md +103 -0
  135. package/04-recipes/table/demo.html +455 -0
  136. package/04-recipes/table/table.css +372 -0
  137. package/04-recipes/tierA-tokens.css +189 -0
  138. package/09-assets/README.md +74 -0
  139. package/09-assets/bar/README.md +94 -0
  140. package/09-assets/bar/bar.css +166 -0
  141. package/09-assets/bar/bar.js +320 -0
  142. package/09-assets/bar/demo.html +176 -0
  143. package/09-assets/echarts-adapter/demo.html +192 -0
  144. package/09-assets/echarts-adapter/echarts-adapter.js +277 -0
  145. package/09-assets/model-viewer/README.md +155 -0
  146. package/09-assets/model-viewer/demo.html +105 -0
  147. package/09-assets/model-viewer/model-viewer.css +143 -0
  148. package/09-assets/model-viewer/model-viewer.js +423 -0
  149. package/09-assets/scientific-plot/README.md +94 -0
  150. package/09-assets/scientific-plot/demo.html +252 -0
  151. package/09-assets/scientific-plot/scientific-plot.css +141 -0
  152. package/09-assets/scientific-plot/scientific-plot.js +610 -0
  153. package/09-assets/sparkline/README.md +153 -0
  154. package/09-assets/sparkline/demo.html +163 -0
  155. package/09-assets/sparkline/sparkline.css +158 -0
  156. package/09-assets/sparkline/sparkline.js +508 -0
  157. package/API.md +332 -0
  158. package/CHANGELOG.md +3116 -0
  159. package/CODE_OF_CONDUCT.md +64 -0
  160. package/CONTRIBUTING.md +89 -0
  161. package/ERRORS.md +1658 -0
  162. package/LICENSE +21 -0
  163. package/README.md +491 -2
  164. package/SECURITY.md +72 -0
  165. package/START-HERE.md +164 -0
  166. package/SUPPORT.md +109 -0
  167. package/adapters/presentation/README.md +113 -0
  168. package/adapters/presentation/check.js +101 -0
  169. package/adapters/presentation/deck.schema.json +74 -0
  170. package/adapters/presentation/to-doc.js +138 -0
  171. package/ai/START-HERE.md +104 -0
  172. package/ai/behaviors.json +380 -0
  173. package/ai/behaviors.schema.json +61 -0
  174. package/ai/capabilities.json +56 -0
  175. package/ai/cli.js +387 -0
  176. package/ai/components.json +1944 -0
  177. package/ai/components.meta.json +168 -0
  178. package/ai/components.schema.json +220 -0
  179. package/ai/contract.schema.json +147 -0
  180. package/ai/deprecations.json +55 -0
  181. package/ai/deprecations.schema.json +85 -0
  182. package/ai/motion-policy.json +22 -0
  183. package/ai/patch.js +323 -0
  184. package/ai/patch.schema.json +63 -0
  185. package/ai/profiles.json +92 -0
  186. package/ai/tokens.audience.json +55 -0
  187. package/ai/tokens.audience.schema.json +73 -0
  188. package/ai/tokens.json +762 -0
  189. package/ai/tokens.schema.json +58 -0
  190. package/ai/tokens.tree.json +752 -0
  191. package/ai/tokens.tree.schema.json +56 -0
  192. package/ai/validate.js +383 -0
  193. package/dist/01-tokens/behavior/dismissable.js +60 -0
  194. package/dist/01-tokens/behavior/emit.js +21 -0
  195. package/dist/01-tokens/behavior/focus-return.js +31 -0
  196. package/dist/01-tokens/behavior/roving.js +77 -0
  197. package/dist/01-tokens/behavior/typeahead.js +61 -0
  198. package/dist/01-tokens/focus-ring.css +1 -0
  199. package/dist/01-tokens/page.css +1 -0
  200. package/dist/01-tokens/polyfill.js +78 -0
  201. package/dist/01-tokens/scrollbar.css +1 -0
  202. package/dist/01-tokens/theme-toggle.js +61 -0
  203. package/dist/01-tokens/tokens.css +1 -0
  204. package/dist/01-tokens/typography.css +1 -0
  205. package/dist/02-primitives/badge/badge.css +1 -0
  206. package/dist/02-primitives/button/button.css +1 -0
  207. package/dist/02-primitives/card/card.css +1 -0
  208. package/dist/02-primitives/choice/choice.css +1 -0
  209. package/dist/02-primitives/combobox/combobox.css +1 -0
  210. package/dist/02-primitives/combobox/combobox.js +439 -0
  211. package/dist/02-primitives/date-range/date-range.css +1 -0
  212. package/dist/02-primitives/date-range/date-range.js +267 -0
  213. package/dist/02-primitives/input/input.css +1 -0
  214. package/dist/02-primitives/popover/popover.css +1 -0
  215. package/dist/02-primitives/popover/popover.js +257 -0
  216. package/dist/02-primitives/progress/progress.css +1 -0
  217. package/dist/02-primitives/select/select.css +1 -0
  218. package/dist/02-primitives/select/select.js +449 -0
  219. package/dist/02-primitives/separator/separator.css +1 -0
  220. package/dist/02-primitives/skeleton/skeleton.css +1 -0
  221. package/dist/02-primitives/switch/switch.css +1 -0
  222. package/dist/03-patterns/accordion/accordion.css +1 -0
  223. package/dist/03-patterns/accordion/accordion.js +219 -0
  224. package/dist/03-patterns/content/content.css +1 -0
  225. package/dist/03-patterns/drawer/drawer.css +1 -0
  226. package/dist/03-patterns/drawer/drawer.js +229 -0
  227. package/dist/03-patterns/dropdown/dropdown.css +1 -0
  228. package/dist/03-patterns/dropdown/dropdown.js +365 -0
  229. package/dist/03-patterns/form-validation/form-validation.css +1 -0
  230. package/dist/03-patterns/list/flip.js +117 -0
  231. package/dist/03-patterns/list/list.css +1 -0
  232. package/dist/03-patterns/nav/nav.css +1 -0
  233. package/dist/03-patterns/nav/nav.js +322 -0
  234. package/dist/03-patterns/nav/toc.js +76 -0
  235. package/dist/03-patterns/overlay/overlay.css +1 -0
  236. package/dist/03-patterns/overlay/overlay.js +398 -0
  237. package/dist/03-patterns/pagination/pagination.css +1 -0
  238. package/dist/03-patterns/pagination/pagination.js +273 -0
  239. package/dist/03-patterns/reveal/reveal.css +1 -0
  240. package/dist/03-patterns/reveal/reveal.js +138 -0
  241. package/dist/03-patterns/states/states.css +1 -0
  242. package/dist/03-patterns/tabs/tabs.css +1 -0
  243. package/dist/03-patterns/tabs/tabs.js +242 -0
  244. package/dist/03-patterns/tooltip/tooltip.css +1 -0
  245. package/dist/03-patterns/tooltip/tooltip.js +213 -0
  246. package/dist/03-patterns/tree/tree.css +1 -0
  247. package/dist/03-patterns/tree/tree.js +383 -0
  248. package/dist/04-recipes/analysis-report/analysis-report.css +1 -0
  249. package/dist/04-recipes/detail-page/detail-page.css +1 -0
  250. package/dist/04-recipes/report/report.css +1 -0
  251. package/dist/04-recipes/table/table.css +1 -0
  252. package/dist/04-recipes/tierA-tokens.css +1 -0
  253. package/dist/09-assets/bar/bar.css +1 -0
  254. package/dist/09-assets/bar/bar.js +222 -0
  255. package/dist/09-assets/echarts-adapter/echarts-adapter.js +185 -0
  256. package/dist/09-assets/model-viewer/model-viewer.css +1 -0
  257. package/dist/09-assets/model-viewer/model-viewer.js +320 -0
  258. package/dist/09-assets/scientific-plot/scientific-plot.css +1 -0
  259. package/dist/09-assets/scientific-plot/scientific-plot.js +568 -0
  260. package/dist/09-assets/sparkline/sparkline.css +1 -0
  261. package/dist/09-assets/sparkline/sparkline.js +265 -0
  262. package/dist/COSTS.md +56 -0
  263. package/docs/AI-CONTRACT.md +197 -0
  264. package/docs/BACKLOG.md +127 -0
  265. package/docs/BENCHMARK.md +252 -0
  266. package/docs/GUIDANCE.md +154 -0
  267. package/docs/INVARIANT.md +372 -0
  268. package/docs/LAYER-BASELINE.md +158 -0
  269. package/docs/RELEASING.md +275 -0
  270. package/docs/RFC-THEME-SCOPE.md +141 -0
  271. package/docs/ROADMAP.md +182 -0
  272. package/index.html +82 -0
  273. package/package.json +107 -4
  274. package/types/index.d.ts +310 -0
package/ai/tokens.json ADDED
@@ -0,0 +1,762 @@
1
+ {
2
+ "schemaVersion": "1.0.0",
3
+ "source": "01-tokens/tokens.css",
4
+ "$comment": "由 05-audit/gen-ai-contract.py 从 tokens.css 生成,不要手改。$value/$type 遵循 W3C Design Tokens 草案形状,便于被 Figma / Style Dictionary 一类工具直接消费(对标 Open Props)。",
5
+ "sets": {
6
+ "light": {
7
+ "--paper": {
8
+ "$value": "#f6f7f8",
9
+ "$type": "color",
10
+ "$description": "---------------------------------------------------------------- 基底"
11
+ },
12
+ "--surface": {
13
+ "$value": "#ffffff",
14
+ "$type": "color"
15
+ },
16
+ "--surface-sunken": {
17
+ "$value": "#f1f3f5",
18
+ "$type": "color"
19
+ },
20
+ "--surface-raised": {
21
+ "$value": "#ffffff",
22
+ "$type": "color",
23
+ "$description": "🔴 浮层底(下拉/气泡/抽屉面板)。"
24
+ },
25
+ "--scrollbar-size": {
26
+ "$value": "10px",
27
+ "$type": "dimension",
28
+ "$description": "============================================================================"
29
+ },
30
+ "--scrollbar-size-thin": {
31
+ "$value": "6px",
32
+ "$type": "dimension",
33
+ "$description": "桌面宽度;移动端由浏览器接管"
34
+ },
35
+ "--scrollbar-thumb": {
36
+ "$value": "#7A808A",
37
+ "$type": "color",
38
+ "$description": "🔴 色值是**脚本反解**出来的(WCAG 1.4.11 要求 thumb 对 track ≥3:1),"
39
+ },
40
+ "--scrollbar-thumb-hov": {
41
+ "$value": "#6E747E",
42
+ "$type": "color",
43
+ "$description": "中性**冷**灰(非品牌色,且保持蓝调)"
44
+ },
45
+ "--scrollbar-radius": {
46
+ "$value": "5px",
47
+ "$type": "dimension",
48
+ "$description": "hover 更深一档 · 4.06:1"
49
+ },
50
+ "--text-primary": {
51
+ "$value": "#15181c",
52
+ "$type": "color",
53
+ "$description": "---------------------------------------------------------------- 文字"
54
+ },
55
+ "--text-secondary": {
56
+ "$value": "#4f555e",
57
+ "$type": "color",
58
+ "$description": "16.60 纸底 / 17.81 表面 · AAA"
59
+ },
60
+ "--text-tertiary": {
61
+ "$value": "#606770",
62
+ "$type": "color",
63
+ "$description": "🔴 由 #6b7280 调深到 #606770。"
64
+ },
65
+ "--text-on-accent": {
66
+ "$value": "#ffffff",
67
+ "$type": "color",
68
+ "$description": "4.51 AA"
69
+ },
70
+ "--text-on-solid": {
71
+ "$value": "#ffffff",
72
+ "$type": "color",
73
+ "$description": "🔴 新增( H9 期间由暗色门禁逼出来):"
74
+ },
75
+ "--skeleton-bg": {
76
+ "$value": "#e9ecef",
77
+ "$type": "color",
78
+ "$description": "---------------------------------------------------------------- 骨架屏"
79
+ },
80
+ "--skeleton-shimmer": {
81
+ "$value": "rgba(255, 255, 255, 0.72)",
82
+ "$type": "color",
83
+ "$description": "骨架底色:比纸面略深一档"
84
+ },
85
+ "--skeleton-h": {
86
+ "$value": "1em",
87
+ "$type": "dimension",
88
+ "$description": "微光高光"
89
+ },
90
+ "--skeleton-size": {
91
+ "$value": "40px",
92
+ "$type": "dimension",
93
+ "$description": "单行默认高度"
94
+ },
95
+ "--skeleton-duration": {
96
+ "$value": "1.4s",
97
+ "$type": "duration",
98
+ "$description": "circle 默认直径"
99
+ },
100
+ "--ease-out": {
101
+ "$value": "cubic-bezier(0.23, 1, 0.32, 1)",
102
+ "$type": "cubicBezier",
103
+ "$description": "---------------------------------------------------------------- 进度条"
104
+ },
105
+ "--progress-h": {
106
+ "$value": "6px",
107
+ "$type": "dimension"
108
+ },
109
+ "--progress-dur": {
110
+ "$value": "240ms",
111
+ "$type": "duration",
112
+ "$description": "线形默认高度"
113
+ },
114
+ "--r-full": {
115
+ "$value": "999px",
116
+ "$type": "dimension",
117
+ "$description": "宽度过渡时长"
118
+ },
119
+ "--ring-size": {
120
+ "$value": "64px",
121
+ "$type": "dimension",
122
+ "$description": "胶囊形圆角"
123
+ },
124
+ "--ring-thickness": {
125
+ "$value": "8px",
126
+ "$type": "dimension",
127
+ "$description": "环形默认直径"
128
+ },
129
+ "--progress": {
130
+ "$value": "0%",
131
+ "$type": "dimension",
132
+ "$description": "进度条的当前值。默认 0% 是**正确默认**(不是占位)——"
133
+ },
134
+ "--progress-num": {
135
+ "$value": "0",
136
+ "$type": "number",
137
+ "$description": "环形用**无单位**数值(conic-gradient 的角度计算不接受带 % 的长度)。"
138
+ },
139
+ "--z-popover": {
140
+ "$value": "60",
141
+ "$type": "number",
142
+ "$description": "---------------------------------------------------------------- 气泡卡片"
143
+ },
144
+ "--popover-min-w": {
145
+ "$value": "200px",
146
+ "$type": "dimension",
147
+ "$description": "层级:高于导航,低于 dialog"
148
+ },
149
+ "--popover-max-w": {
150
+ "$value": "320px",
151
+ "$type": "dimension"
152
+ },
153
+ "--popover-p": {
154
+ "$value": "var(--sp-3)",
155
+ "$type": "alias"
156
+ },
157
+ "--popover-gap": {
158
+ "$value": "8px",
159
+ "$type": "dimension"
160
+ },
161
+ "--popover-dur": {
162
+ "$value": "140ms",
163
+ "$type": "duration",
164
+ "$description": "浮层与触发器的距离"
165
+ },
166
+ "--border-control": {
167
+ "$value": "#868b94",
168
+ "$type": "color",
169
+ "$description": "---------------------------------------------------------------- 边框"
170
+ },
171
+ "--border-decor": {
172
+ "$value": "#e2e5e9",
173
+ "$type": "color",
174
+ "$description": "3.19 / 3.42 AA Large"
175
+ },
176
+ "--border-decor-str": {
177
+ "$value": "#c8cdd4",
178
+ "$type": "color",
179
+ "$description": "1.18 纯装饰,WCAG 不强制"
180
+ },
181
+ "--danger": {
182
+ "$value": "#c0392b",
183
+ "$type": "color",
184
+ "$description": "---------------------------------------------------------------- 语义色"
185
+ },
186
+ "--danger-hover": {
187
+ "$value": "#8f1e17",
188
+ "$type": "color"
189
+ },
190
+ "--scrim": {
191
+ "$value": "rgba(21, 24, 28, 0.4)",
192
+ "$type": "color",
193
+ "$description": "危险按钮 hover:加深(浅色下加深才对)"
194
+ },
195
+ "--success": {
196
+ "$value": "#2f6b3a",
197
+ "$type": "color",
198
+ "$description": "5.07 AA"
199
+ },
200
+ "--warning": {
201
+ "$value": "#8a5a00",
202
+ "$type": "color",
203
+ "$description": "5.96 vs 纸底 · AA"
204
+ },
205
+ "--info": {
206
+ "$value": "#1d5f8a",
207
+ "$type": "color",
208
+ "$description": "5.53 vs 纸底 · AA"
209
+ },
210
+ "--danger-bg": {
211
+ "$value": "#fdeeec",
212
+ "$type": "color",
213
+ "$description": "语义色的浅底(用于提示条背景,不放正文)"
214
+ },
215
+ "--success-bg": {
216
+ "$value": "#eaf2e6",
217
+ "$type": "color"
218
+ },
219
+ "--warning-bg": {
220
+ "$value": "#fbf1dd",
221
+ "$type": "color"
222
+ },
223
+ "--info-bg": {
224
+ "$value": "#e8f1f8",
225
+ "$type": "color"
226
+ },
227
+ "--accent": {
228
+ "$value": "#1b4d8f",
229
+ "$type": "color",
230
+ "$description": "---------------------------------------------------------------- 强调色"
231
+ },
232
+ "--switch-on": {
233
+ "$value": "#1b4d8f",
234
+ "$type": "color",
235
+ "$description": "开关开态轨道色(浅色版):与品牌色一致;暗色下换降彩度值(见 dark 段)。"
236
+ },
237
+ "--accent-hover": {
238
+ "$value": "#163a6d",
239
+ "$type": "color",
240
+ "$description": "7.82 AAA"
241
+ },
242
+ "--accent-soft": {
243
+ "$value": "#e6eef7",
244
+ "$type": "color",
245
+ "$description": "11.29 白字压上 · AAA"
246
+ },
247
+ "--tooltip-bg": {
248
+ "$value": "#15181c",
249
+ "$type": "color",
250
+ "$description": "气泡(见 L1 的说明)"
251
+ },
252
+ "--tooltip-fg": {
253
+ "$value": "#f6f7f8",
254
+ "$type": "color"
255
+ },
256
+ "--tooltip-border": {
257
+ "$value": "#15181c",
258
+ "$type": "color"
259
+ },
260
+ "--sp-1": {
261
+ "$value": "4px",
262
+ "$type": "dimension",
263
+ "$description": "================================================================ [核心]"
264
+ },
265
+ "--sp-2": {
266
+ "$value": "8px",
267
+ "$type": "dimension"
268
+ },
269
+ "--sp-3": {
270
+ "$value": "12px",
271
+ "$type": "dimension"
272
+ },
273
+ "--sp-4": {
274
+ "$value": "clamp(1rem, 0.95rem + 0.3vw, 1.25rem)",
275
+ "$type": "other"
276
+ },
277
+ "--sp-5": {
278
+ "$value": "clamp(1.25rem, 1.15rem + 0.7vw, 1.75rem)",
279
+ "$type": "other",
280
+ "$description": "16 → 20px"
281
+ },
282
+ "--sp-6": {
283
+ "$value": "clamp(1.5rem, 1.3rem + 1.2vw, 2.25rem)",
284
+ "$type": "other",
285
+ "$description": "20 → 28px"
286
+ },
287
+ "--sp-7": {
288
+ "$value": "clamp(2rem, 1.7rem + 1.8vw, 3.5rem)",
289
+ "$type": "other",
290
+ "$description": "24 → 36px"
291
+ },
292
+ "--sp-8": {
293
+ "$value": "clamp(2.5rem, 2.1rem + 2.4vw, 4.5rem)",
294
+ "$type": "other",
295
+ "$description": "32 → 56px"
296
+ },
297
+ "--bp-sm": {
298
+ "$value": "30rem",
299
+ "$type": "dimension",
300
+ "$description": "================================================================ [核心]"
301
+ },
302
+ "--bp-md": {
303
+ "$value": "48rem",
304
+ "$type": "dimension",
305
+ "$description": "480px 大手机 / 小平板"
306
+ },
307
+ "--bp-lg": {
308
+ "$value": "64rem",
309
+ "$type": "dimension",
310
+ "$description": "768px 平板"
311
+ },
312
+ "--bp-xl": {
313
+ "$value": "80rem",
314
+ "$type": "dimension",
315
+ "$description": "1024px 小笔记本"
316
+ },
317
+ "--fs-xs": {
318
+ "$value": "0.75rem",
319
+ "$type": "dimension",
320
+ "$description": "================================================================ [核心]"
321
+ },
322
+ "--fs-sm": {
323
+ "$value": "0.875rem",
324
+ "$type": "dimension",
325
+ "$description": "12px 固定:辅助文字不流体"
326
+ },
327
+ "--fs-base": {
328
+ "$value": "clamp(1rem, 0.95rem + 0.3vw, 1.125rem)",
329
+ "$type": "other",
330
+ "$description": "14px 固定:UI 文本不流体"
331
+ },
332
+ "--fs-md": {
333
+ "$value": "clamp(1.125rem, 1.05rem + 0.5vw, 1.3125rem)",
334
+ "$type": "other",
335
+ "$description": "16 → 18px"
336
+ },
337
+ "--fs-lg": {
338
+ "$value": "clamp(1.3125rem, 1.2rem + 0.7vw, 1.5rem)",
339
+ "$type": "other",
340
+ "$description": "18 → 21px"
341
+ },
342
+ "--fs-xl": {
343
+ "$value": "clamp(1.5rem, 1.3rem + 1.2vw, 1.875rem)",
344
+ "$type": "other",
345
+ "$description": "21 → 24px"
346
+ },
347
+ "--fs-2xl": {
348
+ "$value": "clamp(1.75rem, 1.45rem + 1.8vw, 2.5rem)",
349
+ "$type": "other",
350
+ "$description": "24 → 30px"
351
+ },
352
+ "--lh-tight": {
353
+ "$value": "1.25",
354
+ "$type": "number",
355
+ "$description": "行高:正文 1.7 是中文长文的舒适值(西文常用 1.5,中文需要更松)"
356
+ },
357
+ "--lh-base": {
358
+ "$value": "1.7",
359
+ "$type": "number",
360
+ "$description": "标题"
361
+ },
362
+ "--lh-loose": {
363
+ "$value": "1.85",
364
+ "$type": "number",
365
+ "$description": "正文"
366
+ },
367
+ "--measure-page": {
368
+ "$value": "52rem",
369
+ "$type": "dimension",
370
+ "$description": "----------------------------------------------------------------"
371
+ },
372
+ "--tracking-title": {
373
+ "$value": "-0.02em",
374
+ "$type": "dimension",
375
+ "$description": "🔴 补:标题字距 --tracking-title(0.4.2)"
376
+ },
377
+ "--r-sm": {
378
+ "$value": "6px",
379
+ "$type": "dimension",
380
+ "$description": "---------------------------------------------------------------- 圆角"
381
+ },
382
+ "--r-xs": {
383
+ "$value": "3px",
384
+ "$type": "dimension",
385
+ "$description": "🔴 补:内嵌小元素用的小圆角(菜单项、标签、chip)。"
386
+ },
387
+ "--r-md": {
388
+ "$value": "10px",
389
+ "$type": "dimension"
390
+ },
391
+ "--r-lg": {
392
+ "$value": "14px",
393
+ "$type": "dimension"
394
+ },
395
+ "--r-pill": {
396
+ "$value": "999px",
397
+ "$type": "dimension"
398
+ },
399
+ "--shadow-1": {
400
+ "$value": "0 1px 2px rgba(31, 29, 25, 0.05), 0 1px 3px rgba(31, 29, 25, 0.06)",
401
+ "$type": "other",
402
+ "$description": "---------------------------------------------------------------- 阴影"
403
+ },
404
+ "--shadow-2": {
405
+ "$value": "0 2px 4px rgba(31, 29, 25, 0.05), 0 6px 16px rgba(31, 29, 25, 0.08)",
406
+ "$type": "other"
407
+ },
408
+ "--dur-fast": {
409
+ "$value": "120ms",
410
+ "$type": "duration",
411
+ "$description": "---------------------------------------------------------------- 动效"
412
+ },
413
+ "--dur-base": {
414
+ "$value": "180ms",
415
+ "$type": "duration",
416
+ "$description": "颜色、透明度"
417
+ },
418
+ "--dur-slow": {
419
+ "$value": "280ms",
420
+ "$type": "duration",
421
+ "$description": "位移、展开"
422
+ },
423
+ "--ease-in-out": {
424
+ "$value": "cubic-bezier(0.77, 0, 0.175, 1)",
425
+ "$type": "cubicBezier",
426
+ "$description": "UI 默认:入场、展开"
427
+ },
428
+ "--ease-drawer": {
429
+ "$value": "cubic-bezier(0.32, 0.72, 0, 1)",
430
+ "$type": "cubicBezier",
431
+ "$description": "屏上位移、折叠"
432
+ },
433
+ "--lift-sm": {
434
+ "$value": "1px",
435
+ "$type": "dimension",
436
+ "$description": "位移距离:动效的\"幅度\"也要统一,不然同样 180ms 也会感觉乱"
437
+ },
438
+ "--lift-md": {
439
+ "$value": "2px",
440
+ "$type": "dimension"
441
+ },
442
+ "--lift-lg": {
443
+ "$value": "8px",
444
+ "$type": "dimension"
445
+ },
446
+ "--z-base": {
447
+ "$value": "0",
448
+ "$type": "number",
449
+ "$description": "---------------------------------------------------------------- z-index"
450
+ },
451
+ "--z-sticky": {
452
+ "$value": "10",
453
+ "$type": "number"
454
+ },
455
+ "--z-header": {
456
+ "$value": "20",
457
+ "$type": "number"
458
+ },
459
+ "--z-raised": {
460
+ "$value": "5",
461
+ "$type": "number",
462
+ "$description": "🔴 补回:上一轮\"清理重复 z 令牌\"时把它误删了,"
463
+ },
464
+ "--z-overlay": {
465
+ "$value": "30",
466
+ "$type": "number",
467
+ "$description": "浮起层(卡片悬停、下拉、内层可点元素)"
468
+ },
469
+ "--z-modal": {
470
+ "$value": "40",
471
+ "$type": "number"
472
+ },
473
+ "--z-toast": {
474
+ "$value": "50",
475
+ "$type": "number"
476
+ },
477
+ "--sz-touch": {
478
+ "$value": "44px",
479
+ "$type": "dimension",
480
+ "$description": "------------------------------------------------------------"
481
+ },
482
+ "--sz-touch-sm": {
483
+ "$value": "32px",
484
+ "$type": "dimension",
485
+ "$description": "最小命中区(指针)"
486
+ },
487
+ "--measure-prose": {
488
+ "$value": "34em",
489
+ "$type": "dimension",
490
+ "$description": "正文行长:中文 34 字 ≈ 拉丁 68 字符,两边都落在各自的舒适区"
491
+ },
492
+ "--measure-title": {
493
+ "$value": "20em",
494
+ "$type": "dimension"
495
+ },
496
+ "--measure-lede": {
497
+ "$value": "32em",
498
+ "$type": "dimension",
499
+ "$description": "标题比正文窄,避免大字长时间扫视"
500
+ },
501
+ "--measure-pull": {
502
+ "$value": "30em",
503
+ "$type": "dimension",
504
+ "$description": "导语"
505
+ },
506
+ "--measure-aside": {
507
+ "$value": "32em",
508
+ "$type": "dimension",
509
+ "$description": "引言块"
510
+ },
511
+ "--sans": {
512
+ "$value": "/* 拉丁 */\n -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,\n 'Helvetica Neue', Arial,\n /* 中文 */\n 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei',\n 'Source Han Sans SC', 'Noto Sans CJK SC',\n /* 阿拉伯 / 希伯来 / 泰文(系统通常自带相应字体)*/\n 'Geeza Pro', 'Segoe UI Historic',\n /* 泛型 */\n sans-serif",
513
+ "$type": "other"
514
+ },
515
+ "--mono": {
516
+ "$value": "/* 拉丁等宽 */\n ui-monospace, 'SF Mono', 'Cascadia Mono', 'Segoe UI Mono',\n 'Roboto Mono', Menlo, Consolas,\n /* 中文等宽(中文通常回落到无衬线,但列出更可控)*/\n 'Sarasa Mono SC', 'Microsoft YaHei Mono',\n monospace",
517
+ "$type": "other"
518
+ },
519
+ "--serif": {
520
+ "$value": "/* 拉丁衬线 */\n 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia,\n /* 中文衬线 */\n 'Songti SC', 'SimSun', 'Noto Serif CJK SC', 'Source Han Serif SC',\n serif",
521
+ "$type": "other"
522
+ },
523
+ "--tracking-normal": {
524
+ "$value": "0",
525
+ "$type": "number",
526
+ "$description": "字距:默认 0。中文与拉丁的字距需求不同,"
527
+ }
528
+ },
529
+ "dark": {
530
+ "--paper": {
531
+ "$value": "#14171A",
532
+ "$type": "color",
533
+ "$description": "⚠️ `:not([data-theme=\"light\"])` —— 让「强制亮」能压过系统暗色。"
534
+ },
535
+ "--surface": {
536
+ "$value": "#1C2024",
537
+ "$type": "color"
538
+ },
539
+ "--surface-raised": {
540
+ "$value": "#232830",
541
+ "$type": "color"
542
+ },
543
+ "--surface-sunken": {
544
+ "$value": "#1A1D21",
545
+ "$type": "color",
546
+ "$description": "凹陷面不再更黑,改为比 paper 略浅(层级靠变亮)"
547
+ },
548
+ "--scrollbar-thumb": {
549
+ "$value": "#6E747E",
550
+ "$type": "color",
551
+ "$description": "🔴滚动条(暗色)—— 见 charter 12"
552
+ },
553
+ "--scrollbar-thumb-hov": {
554
+ "$value": "#7D828A",
555
+ "$type": "color",
556
+ "$description": "对 #14171a 3.82:1 · 对 #232830 3.15:1 ✅"
557
+ },
558
+ "--border-decor": {
559
+ "$value": "#2A3038",
560
+ "$type": "color",
561
+ "$description": "边框 -- 冷灰,靠变亮分层"
562
+ },
563
+ "--border-decor-str": {
564
+ "$value": "#3A424C",
565
+ "$type": "color"
566
+ },
567
+ "--border-control": {
568
+ "$value": "#8A9099",
569
+ "$type": "color"
570
+ },
571
+ "--text-primary": {
572
+ "$value": "#E4E7EA",
573
+ "$type": "color",
574
+ "$description": "文本 -- 冷调白,非纯白(避免 halation)"
575
+ },
576
+ "--text-secondary": {
577
+ "$value": "#AEB6C0",
578
+ "$type": "color"
579
+ },
580
+ "--text-tertiary": {
581
+ "$value": "#9BA3AD",
582
+ "$type": "color",
583
+ "$description": "实算 原来的 #959ba3 对 paper 只有 4.14:1 不达 AA,提到这个值"
584
+ },
585
+ "--text-on-accent": {
586
+ "$value": "#0D1114",
587
+ "$type": "color"
588
+ },
589
+ "--text-on-solid": {
590
+ "$value": "#0D1114",
591
+ "$type": "color"
592
+ },
593
+ "--skeleton-bg": {
594
+ "$value": "#2E343C",
595
+ "$type": "color",
596
+ "$description": "暗色:底色比纸面**略浅**(深底上\"更亮\"才看得出是占位)"
597
+ },
598
+ "--skeleton-shimmer": {
599
+ "$value": "rgba(255, 255, 255, 0.06)",
600
+ "$type": "color",
601
+ "$description": "亮度差 0.032(契约要求 >0.02)"
602
+ },
603
+ "--danger": {
604
+ "$value": "#E07A6E",
605
+ "$type": "color",
606
+ "$description": "语义色 -- 沿用原有冷调"
607
+ },
608
+ "--danger-hover": {
609
+ "$value": "#F09A90",
610
+ "$type": "color"
611
+ },
612
+ "--danger-bg": {
613
+ "$value": "#341D1A",
614
+ "$type": "color"
615
+ },
616
+ "--success": {
617
+ "$value": "#6FAA7A",
618
+ "$type": "color"
619
+ },
620
+ "--success-bg": {
621
+ "$value": "#16241A",
622
+ "$type": "color"
623
+ },
624
+ "--warning": {
625
+ "$value": "#C99A3F",
626
+ "$type": "color"
627
+ },
628
+ "--warning-bg": {
629
+ "$value": "#242A31",
630
+ "$type": "color",
631
+ "$description": "🔴 最终定的(第二次修正):"
632
+ },
633
+ "--info": {
634
+ "$value": "#5B9BC4",
635
+ "$type": "color"
636
+ },
637
+ "--info-bg": {
638
+ "$value": "#13242F",
639
+ "$type": "color"
640
+ },
641
+ "--accent": {
642
+ "$value": "#7AA9DE",
643
+ "$type": "color",
644
+ "$description": "品牌色 -- 沿用原有淡蓝"
645
+ },
646
+ "--switch-on": {
647
+ "$value": "#3E6EA8",
648
+ "$type": "color",
649
+ "$description": "🔴 开关开态的轨道色 -- 暗色版"
650
+ },
651
+ "--accent-hover": {
652
+ "$value": "#8FB8E6",
653
+ "$type": "color"
654
+ },
655
+ "--accent-soft": {
656
+ "$value": "#1C2C3D",
657
+ "$type": "color"
658
+ },
659
+ "--tooltip-bg": {
660
+ "$value": "#232830",
661
+ "$type": "color",
662
+ "$description": "气泡:暗色下不再\"反色\"(反色会变成浅底深字,在暗界面里像个白块),"
663
+ },
664
+ "--tooltip-fg": {
665
+ "$value": "#E4E7EA",
666
+ "$type": "color"
667
+ },
668
+ "--tooltip-border": {
669
+ "$value": "#2A3038",
670
+ "$type": "color"
671
+ },
672
+ "--scrim": {
673
+ "$value": "rgba(0, 0, 0, 0.62)",
674
+ "$type": "color"
675
+ }
676
+ }
677
+ },
678
+ "coverage": {
679
+ "lightCount": 110,
680
+ "darkCount": 33,
681
+ "onlyInDark": [],
682
+ "onlyInLight": [
683
+ "--bp-lg",
684
+ "--bp-md",
685
+ "--bp-sm",
686
+ "--bp-xl",
687
+ "--dur-base",
688
+ "--dur-fast",
689
+ "--dur-slow",
690
+ "--ease-drawer",
691
+ "--ease-in-out",
692
+ "--ease-out",
693
+ "--fs-2xl",
694
+ "--fs-base",
695
+ "--fs-lg",
696
+ "--fs-md",
697
+ "--fs-sm",
698
+ "--fs-xl",
699
+ "--fs-xs",
700
+ "--lh-base",
701
+ "--lh-loose",
702
+ "--lh-tight",
703
+ "--lift-lg",
704
+ "--lift-md",
705
+ "--lift-sm",
706
+ "--measure-aside",
707
+ "--measure-lede",
708
+ "--measure-page",
709
+ "--measure-prose",
710
+ "--measure-pull",
711
+ "--measure-title",
712
+ "--mono",
713
+ "--popover-dur",
714
+ "--popover-gap",
715
+ "--popover-max-w",
716
+ "--popover-min-w",
717
+ "--popover-p",
718
+ "--progress",
719
+ "--progress-dur",
720
+ "--progress-h",
721
+ "--progress-num",
722
+ "--r-full",
723
+ "--r-lg",
724
+ "--r-md",
725
+ "--r-pill",
726
+ "--r-sm",
727
+ "--r-xs",
728
+ "--ring-size",
729
+ "--ring-thickness",
730
+ "--sans",
731
+ "--scrollbar-radius",
732
+ "--scrollbar-size",
733
+ "--scrollbar-size-thin",
734
+ "--serif",
735
+ "--shadow-1",
736
+ "--shadow-2",
737
+ "--skeleton-duration",
738
+ "--skeleton-h",
739
+ "--skeleton-size",
740
+ "--sp-1",
741
+ "--sp-2",
742
+ "--sp-3",
743
+ "--sp-4",
744
+ "--sp-5",
745
+ "--sp-6",
746
+ "--sp-7",
747
+ "--sp-8",
748
+ "--sz-touch",
749
+ "--sz-touch-sm",
750
+ "--tracking-normal",
751
+ "--tracking-title",
752
+ "--z-base",
753
+ "--z-header",
754
+ "--z-modal",
755
+ "--z-overlay",
756
+ "--z-popover",
757
+ "--z-raised",
758
+ "--z-sticky",
759
+ "--z-toast"
760
+ ]
761
+ }
762
+ }