@teamix-evo/tokens 0.4.0

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.
@@ -0,0 +1,729 @@
1
+ {
2
+ "$schema": "https://design-tokens.github.io/community-group/format/",
3
+ "$description": "Teamix Evo Design Token 中性基线(W3C Design Tokens 格式)— 基于 shadcn/ui default theme",
4
+ "$version": "3.0.0",
5
+ "$source": "shadcn/ui default theme — https://ui.shadcn.com/themes",
6
+ "$components": [
7
+ "button", "input", "badge", "card", "dialog", "form", "table", "tabs", "toast",
8
+ "select", "textarea", "checkbox", "radio-group", "switch", "label", "separator", "skeleton",
9
+ "dropdown-menu", "popover", "tooltip", "sheet", "alert", "avatar", "scroll-area", "pagination",
10
+ "command", "accordion", "navigation-menu", "breadcrumb", "progress", "slider", "calendar", "date-picker",
11
+ "sidebar"
12
+ ],
13
+
14
+ "color": {
15
+ "$description": "语义化颜色 Token — 对齐 shadcn/ui CSS 变量,格式: hsl(H S% L%)",
16
+
17
+ "background": {
18
+ "$type": "color",
19
+ "light": { "$value": "hsl(0 0% 100%)", "$description": "页面主背景 — --background" },
20
+ "dark": { "$value": "hsl(222.2 84% 4.9%)", "$description": "暗色页面主背景 — --background" }
21
+ },
22
+ "foreground": {
23
+ "$type": "color",
24
+ "light": { "$value": "hsl(222.2 84% 4.9%)", "$description": "页面主文字 — --foreground" },
25
+ "dark": { "$value": "hsl(210 40% 98%)", "$description": "暗色页面主文字 — --foreground" }
26
+ },
27
+
28
+ "card": {
29
+ "$type": "color",
30
+ "light": { "$value": "hsl(0 0% 100%)", "$description": "卡片背景 — --card" },
31
+ "dark": { "$value": "hsl(222.2 84% 4.9%)", "$description": "暗色卡片背景 — --card" }
32
+ },
33
+ "card-foreground": {
34
+ "$type": "color",
35
+ "light": { "$value": "hsl(222.2 84% 4.9%)", "$description": "卡片文字 — --card-foreground" },
36
+ "dark": { "$value": "hsl(210 40% 98%)", "$description": "暗色卡片文字 — --card-foreground" }
37
+ },
38
+
39
+ "popover": {
40
+ "$type": "color",
41
+ "light": { "$value": "hsl(0 0% 100%)", "$description": "弹出层背景 — --popover" },
42
+ "dark": { "$value": "hsl(222.2 84% 4.9%)", "$description": "暗色弹出层背景 — --popover" }
43
+ },
44
+ "popover-foreground": {
45
+ "$type": "color",
46
+ "light": { "$value": "hsl(222.2 84% 4.9%)", "$description": "弹出层文字 — --popover-foreground" },
47
+ "dark": { "$value": "hsl(210 40% 98%)", "$description": "暗色弹出层文字 — --popover-foreground" }
48
+ },
49
+
50
+ "primary": {
51
+ "$type": "color",
52
+ "light": { "$value": "hsl(222.2 47.4% 11.2%)", "$description": "主操作色 — --primary" },
53
+ "dark": { "$value": "hsl(210 40% 98%)", "$description": "暗色主操作色 — --primary" }
54
+ },
55
+ "primary-foreground": {
56
+ "$type": "color",
57
+ "light": { "$value": "hsl(210 40% 98%)", "$description": "主色上文字 — --primary-foreground" },
58
+ "dark": { "$value": "hsl(222.2 47.4% 11.2%)", "$description": "暗色主色上文字 — --primary-foreground" }
59
+ },
60
+
61
+ "secondary": {
62
+ "$type": "color",
63
+ "light": { "$value": "hsl(210 40% 96.1%)", "$description": "次要色 — --secondary" },
64
+ "dark": { "$value": "hsl(217.2 32.6% 17.5%)", "$description": "暗色次要色 — --secondary" }
65
+ },
66
+ "secondary-foreground": {
67
+ "$type": "color",
68
+ "light": { "$value": "hsl(222.2 47.4% 11.2%)", "$description": "次要色上文字 — --secondary-foreground" },
69
+ "dark": { "$value": "hsl(210 40% 98%)", "$description": "暗色次要色上文字 — --secondary-foreground" }
70
+ },
71
+
72
+ "muted": {
73
+ "$type": "color",
74
+ "light": { "$value": "hsl(210 40% 96.1%)", "$description": "静音色 / 禁用背景 — --muted" },
75
+ "dark": { "$value": "hsl(217.2 32.6% 17.5%)", "$description": "暗色静音色 — --muted" }
76
+ },
77
+ "muted-foreground": {
78
+ "$type": "color",
79
+ "light": { "$value": "hsl(215.4 16.3% 46.9%)", "$description": "辅助文字 / placeholder — --muted-foreground" },
80
+ "dark": { "$value": "hsl(215 20.2% 65.1%)", "$description": "暗色辅助文字 — --muted-foreground" }
81
+ },
82
+
83
+ "accent": {
84
+ "$type": "color",
85
+ "light": { "$value": "hsl(210 40% 96.1%)", "$description": "强调色 / Hover 高亮 — --accent" },
86
+ "dark": { "$value": "hsl(217.2 32.6% 17.5%)", "$description": "暗色强调色 — --accent" }
87
+ },
88
+ "accent-foreground": {
89
+ "$type": "color",
90
+ "light": { "$value": "hsl(222.2 47.4% 11.2%)", "$description": "强调色上文字 — --accent-foreground" },
91
+ "dark": { "$value": "hsl(210 40% 98%)", "$description": "暗色强调色上文字 — --accent-foreground" }
92
+ },
93
+
94
+ "destructive": {
95
+ "$type": "color",
96
+ "light": { "$value": "hsl(0 84.2% 60.2%)", "$description": "危险色 / 错误操作 — --destructive" },
97
+ "dark": { "$value": "hsl(0 62.8% 30.6%)", "$description": "暗色危险色 — --destructive" }
98
+ },
99
+ "destructive-foreground": {
100
+ "$type": "color",
101
+ "light": { "$value": "hsl(210 40% 98%)", "$description": "危险色上文字 — --destructive-foreground" },
102
+ "dark": { "$value": "hsl(210 40% 98%)", "$description": "暗色危险色上文字 — --destructive-foreground" }
103
+ },
104
+
105
+ "success": {
106
+ "$type": "color",
107
+ "light": { "$value": "hsl(142 71% 45%)", "$description": "成功色 — --success(ADR 0008 ratchet 还款,2026-05-19)" },
108
+ "dark": { "$value": "hsl(142 71% 45%)", "$description": "暗色成功色 — --success" }
109
+ },
110
+ "success-foreground": {
111
+ "$type": "color",
112
+ "light": { "$value": "hsl(140 100% 97%)", "$description": "成功色上文字 — --success-foreground" },
113
+ "dark": { "$value": "hsl(140 100% 97%)", "$description": "暗色成功色上文字 — --success-foreground" }
114
+ },
115
+ "success-subtle": {
116
+ "$type": "color",
117
+ "light": { "$value": "hsl(141 84% 93%)", "$description": "成功色浅底 — --success-subtle(alert/badge subtle 变体)" },
118
+ "dark": { "$value": "hsl(143 65% 18%)", "$description": "暗色成功色浅底 — --success-subtle" }
119
+ },
120
+ "success-border": {
121
+ "$type": "color",
122
+ "light": { "$value": "hsl(142 76% 36%)", "$description": "成功色边框 — --success-border" },
123
+ "dark": { "$value": "hsl(142 71% 45%)", "$description": "暗色成功色边框 — --success-border" }
124
+ },
125
+
126
+ "warning": {
127
+ "$type": "color",
128
+ "light": { "$value": "hsl(38 92% 50%)", "$description": "警告色 — --warning(ADR 0008 ratchet 还款,2026-05-19)" },
129
+ "dark": { "$value": "hsl(38 92% 50%)", "$description": "暗色警告色 — --warning" }
130
+ },
131
+ "warning-foreground": {
132
+ "$type": "color",
133
+ "light": { "$value": "hsl(48 100% 96%)", "$description": "警告色上文字 — --warning-foreground" },
134
+ "dark": { "$value": "hsl(48 100% 96%)", "$description": "暗色警告色上文字 — --warning-foreground" }
135
+ },
136
+ "warning-subtle": {
137
+ "$type": "color",
138
+ "light": { "$value": "hsl(48 96% 89%)", "$description": "警告色浅底 — --warning-subtle" },
139
+ "dark": { "$value": "hsl(36 70% 18%)", "$description": "暗色警告色浅底 — --warning-subtle" }
140
+ },
141
+ "warning-border": {
142
+ "$type": "color",
143
+ "light": { "$value": "hsl(35 92% 42%)", "$description": "警告色边框 — --warning-border" },
144
+ "dark": { "$value": "hsl(38 92% 50%)", "$description": "暗色警告色边框 — --warning-border" }
145
+ },
146
+
147
+ "info": {
148
+ "$type": "color",
149
+ "light": { "$value": "hsl(217 91% 60%)", "$description": "提示色 — --info(ADR 0008 ratchet 还款,2026-05-19)" },
150
+ "dark": { "$value": "hsl(217 91% 60%)", "$description": "暗色提示色 — --info" }
151
+ },
152
+ "info-foreground": {
153
+ "$type": "color",
154
+ "light": { "$value": "hsl(214 100% 97%)", "$description": "提示色上文字 — --info-foreground" },
155
+ "dark": { "$value": "hsl(214 100% 97%)", "$description": "暗色提示色上文字 — --info-foreground" }
156
+ },
157
+ "info-subtle": {
158
+ "$type": "color",
159
+ "light": { "$value": "hsl(214 95% 93%)", "$description": "提示色浅底 — --info-subtle" },
160
+ "dark": { "$value": "hsl(217 70% 18%)", "$description": "暗色提示色浅底 — --info-subtle" }
161
+ },
162
+ "info-border": {
163
+ "$type": "color",
164
+ "light": { "$value": "hsl(217 91% 50%)", "$description": "提示色边框 — --info-border" },
165
+ "dark": { "$value": "hsl(217 91% 60%)", "$description": "暗色提示色边框 — --info-border" }
166
+ },
167
+
168
+ "border": {
169
+ "$type": "color",
170
+ "light": { "$value": "hsl(214.3 31.8% 91.4%)", "$description": "边框 / 分割线 — --border" },
171
+ "dark": { "$value": "hsl(217.2 32.6% 17.5%)", "$description": "暗色边框 — --border" }
172
+ },
173
+ "input": {
174
+ "$type": "color",
175
+ "light": { "$value": "hsl(214.3 31.8% 91.4%)", "$description": "输入框边框 — --input" },
176
+ "dark": { "$value": "hsl(217.2 32.6% 17.5%)", "$description": "暗色输入框边框 — --input" }
177
+ },
178
+ "ring": {
179
+ "$type": "color",
180
+ "light": { "$value": "hsl(222.2 84% 4.9%)", "$description": "Focus 环颜色 — --ring" },
181
+ "dark": { "$value": "hsl(212.7 26.8% 83.9%)", "$description": "暗色 Focus 环 — --ring" }
182
+ },
183
+
184
+ "chart": {
185
+ "$description": "图表调色板 — --chart-1 ~ --chart-5",
186
+ "1": {
187
+ "$type": "color",
188
+ "light": { "$value": "hsl(12 76% 61%)", "$description": "图表色 1 — --chart-1" },
189
+ "dark": { "$value": "hsl(220 70% 50%)", "$description": "暗色图表色 1 — --chart-1" }
190
+ },
191
+ "2": {
192
+ "$type": "color",
193
+ "light": { "$value": "hsl(173 58% 39%)", "$description": "图表色 2 — --chart-2" },
194
+ "dark": { "$value": "hsl(160 60% 45%)", "$description": "暗色图表色 2 — --chart-2" }
195
+ },
196
+ "3": {
197
+ "$type": "color",
198
+ "light": { "$value": "hsl(197 37% 24%)", "$description": "图表色 3 — --chart-3" },
199
+ "dark": { "$value": "hsl(30 80% 55%)", "$description": "暗色图表色 3 — --chart-3" }
200
+ },
201
+ "4": {
202
+ "$type": "color",
203
+ "light": { "$value": "hsl(43 74% 66%)", "$description": "图表色 4 — --chart-4" },
204
+ "dark": { "$value": "hsl(280 65% 60%)", "$description": "暗色图表色 4 — --chart-4" }
205
+ },
206
+ "5": {
207
+ "$type": "color",
208
+ "light": { "$value": "hsl(27 87% 67%)", "$description": "图表色 5 — --chart-5" },
209
+ "dark": { "$value": "hsl(340 75% 55%)", "$description": "暗色图表色 5 — --chart-5" }
210
+ }
211
+ },
212
+
213
+ "sidebar": {
214
+ "$description": "侧边栏专属颜色 Token — --sidebar-*",
215
+ "background": {
216
+ "$type": "color",
217
+ "light": { "$value": "hsl(0 0% 98%)", "$description": "侧边栏背景 — --sidebar-background" },
218
+ "dark": { "$value": "hsl(240 5.9% 10%)", "$description": "暗色侧边栏背景" }
219
+ },
220
+ "foreground": {
221
+ "$type": "color",
222
+ "light": { "$value": "hsl(240 5.3% 26.1%)", "$description": "侧边栏文字 — --sidebar-foreground" },
223
+ "dark": { "$value": "hsl(240 4.8% 95.9%)", "$description": "暗色侧边栏文字" }
224
+ },
225
+ "primary": {
226
+ "$type": "color",
227
+ "light": { "$value": "hsl(240 5.9% 10%)", "$description": "侧边栏主操作色 — --sidebar-primary" },
228
+ "dark": { "$value": "hsl(224.3 76.3% 48%)", "$description": "暗色侧边栏主操作色" }
229
+ },
230
+ "primary-foreground": {
231
+ "$type": "color",
232
+ "light": { "$value": "hsl(0 0% 98%)", "$description": "侧边栏主色上文字 — --sidebar-primary-foreground" },
233
+ "dark": { "$value": "hsl(0 0% 100%)", "$description": "暗色侧边栏主色上文字" }
234
+ },
235
+ "accent": {
236
+ "$type": "color",
237
+ "light": { "$value": "hsl(240 4.8% 95.9%)", "$description": "侧边栏强调色 — --sidebar-accent" },
238
+ "dark": { "$value": "hsl(240 3.7% 15.9%)", "$description": "暗色侧边栏强调色" }
239
+ },
240
+ "accent-foreground": {
241
+ "$type": "color",
242
+ "light": { "$value": "hsl(240 5.9% 10%)", "$description": "侧边栏强调色上文字" },
243
+ "dark": { "$value": "hsl(240 4.8% 95.9%)", "$description": "暗色侧边栏强调色上文字" }
244
+ },
245
+ "border": {
246
+ "$type": "color",
247
+ "light": { "$value": "hsl(220 13% 91%)", "$description": "侧边栏边框 — --sidebar-border" },
248
+ "dark": { "$value": "hsl(240 3.7% 15.9%)", "$description": "暗色侧边栏边框" }
249
+ },
250
+ "ring": {
251
+ "$type": "color",
252
+ "light": { "$value": "hsl(217.2 91.2% 59.8%)", "$description": "侧边栏 Focus 环 — --sidebar-ring" },
253
+ "dark": { "$value": "hsl(217.2 91.2% 59.8%)", "$description": "暗色侧边栏 Focus 环" }
254
+ }
255
+ }
256
+ },
257
+
258
+ "typography": {
259
+ "font-family": {
260
+ "sans": {
261
+ "$type": "fontFamily",
262
+ "$value": ["Inter", "ui-sans-serif", "-apple-system", "BlinkMacSystemFont", "Segoe UI", "Roboto", "Helvetica Neue", "Arial", "sans-serif"],
263
+ "$description": "默认无衬线字体 — --font-sans"
264
+ },
265
+ "mono": {
266
+ "$type": "fontFamily",
267
+ "$value": ["ui-monospace", "SFMono-Regular", "SF Mono", "Menlo", "Consolas", "Liberation Mono", "monospace"],
268
+ "$description": "等宽字体(代码、技术内容)— --font-mono"
269
+ }
270
+ },
271
+ "font-size": {
272
+ "$description": "字号等级 — 对应 Tailwind text-* 类",
273
+ "xs": { "$type": "dimension", "$value": "0.75rem", "$description": "12px — text-xs" },
274
+ "sm": { "$type": "dimension", "$value": "0.875rem", "$description": "14px — text-sm" },
275
+ "base": { "$type": "dimension", "$value": "1rem", "$description": "16px — text-base" },
276
+ "lg": { "$type": "dimension", "$value": "1.125rem", "$description": "18px — text-lg" },
277
+ "xl": { "$type": "dimension", "$value": "1.25rem", "$description": "20px — text-xl" },
278
+ "2xl": { "$type": "dimension", "$value": "1.5rem", "$description": "24px — text-2xl" },
279
+ "3xl": { "$type": "dimension", "$value": "1.875rem", "$description": "30px — text-3xl" },
280
+ "4xl": { "$type": "dimension", "$value": "2.25rem", "$description": "36px — text-4xl" },
281
+ "5xl": { "$type": "dimension", "$value": "3rem", "$description": "48px — text-5xl" },
282
+ "6xl": { "$type": "dimension", "$value": "3.75rem", "$description": "60px — text-6xl" }
283
+ },
284
+ "font-weight": {
285
+ "normal": { "$type": "fontWeight", "$value": 400, "$description": "正文、描述" },
286
+ "medium": { "$type": "fontWeight", "$value": 500, "$description": "标签、导航" },
287
+ "semibold": { "$type": "fontWeight", "$value": 600, "$description": "按钮、小标题" },
288
+ "bold": { "$type": "fontWeight", "$value": 700, "$description": "页面标题" }
289
+ },
290
+ "line-height": {
291
+ "none": { "$type": "number", "$value": 1, "$description": "leading-none" },
292
+ "tight": { "$type": "number", "$value": 1.25, "$description": "leading-tight — 大号标题" },
293
+ "snug": { "$type": "number", "$value": 1.375, "$description": "leading-snug" },
294
+ "normal": { "$type": "number", "$value": 1.5, "$description": "leading-normal — 正文默认" },
295
+ "relaxed": { "$type": "number", "$value": 1.625, "$description": "leading-relaxed" },
296
+ "loose": { "$type": "number", "$value": 2, "$description": "leading-loose" }
297
+ },
298
+ "letter-spacing": {
299
+ "tighter": { "$type": "dimension", "$value": "-0.05em", "$description": "tracking-tighter" },
300
+ "tight": { "$type": "dimension", "$value": "-0.025em", "$description": "tracking-tight" },
301
+ "normal": { "$type": "dimension", "$value": "0em", "$description": "tracking-normal" },
302
+ "wide": { "$type": "dimension", "$value": "0.025em", "$description": "tracking-wide" },
303
+ "wider": { "$type": "dimension", "$value": "0.05em", "$description": "tracking-wider" },
304
+ "widest": { "$type": "dimension", "$value": "0.1em", "$description": "tracking-widest" }
305
+ }
306
+ },
307
+
308
+ "spacing": {
309
+ "$type": "dimension",
310
+ "$description": "间距比例尺 — 基准 4px,对应 Tailwind spacing 刻度",
311
+ "px": { "$value": "1px" },
312
+ "0": { "$value": "0rem" },
313
+ "0.5": { "$value": "0.125rem", "$description": "2px" },
314
+ "1": { "$value": "0.25rem", "$description": "4px" },
315
+ "1.5": { "$value": "0.375rem", "$description": "6px" },
316
+ "2": { "$value": "0.5rem", "$description": "8px" },
317
+ "2.5": { "$value": "0.625rem", "$description": "10px" },
318
+ "3": { "$value": "0.75rem", "$description": "12px" },
319
+ "3.5": { "$value": "0.875rem", "$description": "14px" },
320
+ "4": { "$value": "1rem", "$description": "16px" },
321
+ "5": { "$value": "1.25rem", "$description": "20px" },
322
+ "6": { "$value": "1.5rem", "$description": "24px" },
323
+ "7": { "$value": "1.75rem", "$description": "28px" },
324
+ "8": { "$value": "2rem", "$description": "32px" },
325
+ "9": { "$value": "2.25rem", "$description": "36px" },
326
+ "10": { "$value": "2.5rem", "$description": "40px" },
327
+ "11": { "$value": "2.75rem", "$description": "44px" },
328
+ "12": { "$value": "3rem", "$description": "48px" },
329
+ "14": { "$value": "3.5rem", "$description": "56px" },
330
+ "16": { "$value": "4rem", "$description": "64px" },
331
+ "20": { "$value": "5rem", "$description": "80px" },
332
+ "24": { "$value": "6rem", "$description": "96px" },
333
+ "28": { "$value": "7rem", "$description": "112px" },
334
+ "32": { "$value": "8rem", "$description": "128px" }
335
+ },
336
+
337
+ "radius": {
338
+ "$description": "圆角 — 基于 --radius 基准变量派生",
339
+ "base": { "$type": "dimension", "$value": "0.5rem", "$description": "--radius 基准变量,全局主题圆角控制点" },
340
+ "sm": { "$type": "dimension", "$value": "calc(var(--radius) - 4px)", "$description": "Badge、Chip" },
341
+ "md": { "$type": "dimension", "$value": "calc(var(--radius) - 2px)", "$description": "按钮、输入框" },
342
+ "lg": { "$type": "dimension", "$value": "var(--radius)", "$description": "卡片、对话框" },
343
+ "xl": { "$type": "dimension", "$value": "calc(var(--radius) + 4px)", "$description": "大型容器" },
344
+ "2xl": { "$type": "dimension", "$value": "calc(var(--radius) + 8px)", "$description": "特大圆角" },
345
+ "full": { "$type": "dimension", "$value": "9999px", "$description": "完全圆形 — 头像、药丸标签" }
346
+ },
347
+
348
+ "shadow": {
349
+ "$description": "盒阴影等级 — 对应 Tailwind shadow-*",
350
+ "none": {
351
+ "$type": "shadow",
352
+ "$value": "0 0 #0000",
353
+ "$description": "无阴影"
354
+ },
355
+ "sm": {
356
+ "$type": "shadow",
357
+ "$value": { "offsetX": "0px", "offsetY": "1px", "blur": "2px", "spread": "0px", "color": "rgb(0 0 0 / 0.05)" },
358
+ "$description": "shadow-sm — 按钮、输入框微浮起"
359
+ },
360
+ "DEFAULT": {
361
+ "$type": "shadow",
362
+ "$value": [
363
+ { "offsetX": "0px", "offsetY": "1px", "blur": "3px", "spread": "0px", "color": "rgb(0 0 0 / 0.1)" },
364
+ { "offsetX": "0px", "offsetY": "1px", "blur": "2px", "spread": "-1px", "color": "rgb(0 0 0 / 0.1)" }
365
+ ],
366
+ "$description": "shadow — 卡片默认"
367
+ },
368
+ "md": {
369
+ "$type": "shadow",
370
+ "$value": [
371
+ { "offsetX": "0px", "offsetY": "4px", "blur": "6px", "spread": "-1px", "color": "rgb(0 0 0 / 0.1)" },
372
+ { "offsetX": "0px", "offsetY": "2px", "blur": "4px", "spread": "-2px", "color": "rgb(0 0 0 / 0.1)" }
373
+ ],
374
+ "$description": "shadow-md — Dropdown、面板"
375
+ },
376
+ "lg": {
377
+ "$type": "shadow",
378
+ "$value": [
379
+ { "offsetX": "0px", "offsetY": "10px", "blur": "15px", "spread": "-3px", "color": "rgb(0 0 0 / 0.1)" },
380
+ { "offsetX": "0px", "offsetY": "4px", "blur": "6px", "spread": "-4px", "color": "rgb(0 0 0 / 0.1)" }
381
+ ],
382
+ "$description": "shadow-lg — Popover、Toast"
383
+ },
384
+ "xl": {
385
+ "$type": "shadow",
386
+ "$value": [
387
+ { "offsetX": "0px", "offsetY": "20px", "blur": "25px", "spread": "-5px", "color": "rgb(0 0 0 / 0.1)" },
388
+ { "offsetX": "0px", "offsetY": "8px", "blur": "10px", "spread": "-6px", "color": "rgb(0 0 0 / 0.1)" }
389
+ ],
390
+ "$description": "shadow-xl — Dialog、Sheet"
391
+ },
392
+ "2xl": {
393
+ "$type": "shadow",
394
+ "$value": { "offsetX": "0px", "offsetY": "25px", "blur": "50px", "spread": "-12px", "color": "rgb(0 0 0 / 0.25)" },
395
+ "$description": "shadow-2xl — 顶层模态"
396
+ }
397
+ },
398
+
399
+ "animation": {
400
+ "$description": "动画 Token — 时长、缓动函数、关键帧",
401
+ "duration": {
402
+ "fast": { "$type": "duration", "$value": "150ms", "$description": "微交互(hover、focus)" },
403
+ "normal": { "$type": "duration", "$value": "200ms", "$description": "常规过渡(Accordion、Tabs)" },
404
+ "slow": { "$type": "duration", "$value": "300ms", "$description": "面板滑入(Sheet、Dialog)" },
405
+ "slower": { "$type": "duration", "$value": "500ms", "$description": "大型展开动画" }
406
+ },
407
+ "easing": {
408
+ "linear": { "$type": "cubicBezier", "$value": [0, 0, 1, 1], "$description": "linear" },
409
+ "ease": { "$type": "cubicBezier", "$value": [0.25, 0.1, 0.25, 1], "$description": "ease" },
410
+ "ease-in": { "$type": "cubicBezier", "$value": [0.4, 0, 1, 1], "$description": "ease-in — 元素退出" },
411
+ "ease-out": { "$type": "cubicBezier", "$value": [0, 0, 0.2, 1], "$description": "ease-out — 元素进入" },
412
+ "ease-in-out": { "$type": "cubicBezier", "$value": [0.4, 0, 0.2, 1], "$description": "ease-in-out — 双向过渡" },
413
+ "spring": { "$type": "cubicBezier", "$value": [0.34, 1.56, 0.64, 1], "$description": "弹性进入效果" }
414
+ },
415
+ "keyframes": {
416
+ "accordion-down": {
417
+ "$description": "Accordion 展开 — animate-accordion-down",
418
+ "from": { "height": "0" },
419
+ "to": { "height": "var(--radix-accordion-content-height)" }
420
+ },
421
+ "accordion-up": {
422
+ "$description": "Accordion 收起 — animate-accordion-up",
423
+ "from": { "height": "var(--radix-accordion-content-height)" },
424
+ "to": { "height": "0" }
425
+ },
426
+ "fade-in": {
427
+ "$description": "渐入",
428
+ "from": { "opacity": "0" },
429
+ "to": { "opacity": "1" }
430
+ },
431
+ "fade-out": {
432
+ "$description": "渐出",
433
+ "from": { "opacity": "1" },
434
+ "to": { "opacity": "0" }
435
+ },
436
+ "slide-in-from-top": {
437
+ "$description": "从顶部滑入",
438
+ "from": { "transform": "translateY(-100%)" },
439
+ "to": { "transform": "translateY(0)" }
440
+ },
441
+ "slide-in-from-bottom": {
442
+ "$description": "从底部滑入",
443
+ "from": { "transform": "translateY(100%)" },
444
+ "to": { "transform": "translateY(0)" }
445
+ },
446
+ "slide-in-from-left": {
447
+ "$description": "从左侧滑入",
448
+ "from": { "transform": "translateX(-100%)" },
449
+ "to": { "transform": "translateX(0)" }
450
+ },
451
+ "slide-in-from-right": {
452
+ "$description": "从右侧滑入",
453
+ "from": { "transform": "translateX(100%)" },
454
+ "to": { "transform": "translateX(0)" }
455
+ },
456
+ "zoom-in-95": {
457
+ "$description": "Dialog / Popover 弹入",
458
+ "from": { "opacity": "0", "transform": "scale(0.95)" },
459
+ "to": { "opacity": "1", "transform": "scale(1)" }
460
+ },
461
+ "zoom-out-95": {
462
+ "$description": "Dialog / Popover 弹出",
463
+ "from": { "opacity": "1", "transform": "scale(1)" },
464
+ "to": { "opacity": "0", "transform": "scale(0.95)" }
465
+ },
466
+ "spin": {
467
+ "$description": "Loading 旋转",
468
+ "from": { "transform": "rotate(0deg)" },
469
+ "to": { "transform": "rotate(360deg)" }
470
+ },
471
+ "pulse": {
472
+ "$description": "Skeleton 脉冲",
473
+ "0%, 100%": { "opacity": "1" },
474
+ "50%": { "opacity": "0.5" }
475
+ }
476
+ }
477
+ },
478
+
479
+ "z-index": {
480
+ "$type": "number",
481
+ "$description": "层级规范 — shadcn/ui 各组件的叠层顺序",
482
+ "base": { "$value": 0, "$description": "页面默认内容" },
483
+ "dropdown": { "$value": 50, "$description": "DropdownMenu、Select、Popover、Tooltip" },
484
+ "sticky": { "$value": 100, "$description": "粘性导航、固定表头" },
485
+ "overlay": { "$value": 200, "$description": "Dialog/Sheet 遮罩层" },
486
+ "modal": { "$value": 300, "$description": "Dialog、Sheet 内容" },
487
+ "toast": { "$value": 400, "$description": "Toast / Sonner 通知" },
488
+ "tooltip": { "$value": 500, "$description": "Tooltip(最高层级)" }
489
+ },
490
+
491
+ "component": {
492
+ "$description": "组件级 Token — shadcn/ui 组件核心样式值",
493
+
494
+ "button": {
495
+ "height": {
496
+ "sm": { "$type": "dimension", "$value": "2.25rem", "$description": "h-9 — size=sm" },
497
+ "default": { "$type": "dimension", "$value": "2.5rem", "$description": "h-10 — size=default" },
498
+ "lg": { "$type": "dimension", "$value": "2.75rem", "$description": "h-11 — size=lg" },
499
+ "icon": { "$type": "dimension", "$value": "2.5rem", "$description": "h-10 w-10 — size=icon" }
500
+ },
501
+ "padding": {
502
+ "sm": { "$type": "dimension", "$value": "0 0.75rem", "$description": "px-3" },
503
+ "default": { "$type": "dimension", "$value": "0 1rem", "$description": "px-4" },
504
+ "lg": { "$type": "dimension", "$value": "0 2rem", "$description": "px-8" }
505
+ },
506
+ "font-size": { "$type": "dimension", "$value": "0.875rem", "$description": "text-sm" },
507
+ "font-weight": { "$type": "fontWeight", "$value": 500, "$description": "font-medium" },
508
+ "border-radius": { "$type": "dimension", "$value": "calc(var(--radius) - 2px)", "$description": "rounded-md" },
509
+ "focus-ring-offset": { "$type": "dimension", "$value": "2px", "$description": "ring-offset-2" }
510
+ },
511
+
512
+ "input": {
513
+ "height": { "$type": "dimension", "$value": "2.5rem", "$description": "h-10" },
514
+ "padding": { "$type": "dimension", "$value": "0 0.75rem", "$description": "px-3 py-2" },
515
+ "font-size": { "$type": "dimension", "$value": "0.875rem", "$description": "text-sm" },
516
+ "border-width": { "$type": "dimension", "$value": "1px", "$description": "border" },
517
+ "border-radius": { "$type": "dimension", "$value": "calc(var(--radius) - 2px)", "$description": "rounded-md" }
518
+ },
519
+
520
+ "badge": {
521
+ "padding": { "$type": "dimension", "$value": "0.125rem 0.625rem", "$description": "px-2.5 py-0.5" },
522
+ "font-size": { "$type": "dimension", "$value": "0.75rem", "$description": "text-xs" },
523
+ "font-weight": { "$type": "fontWeight", "$value": 600, "$description": "font-semibold" },
524
+ "border-radius": { "$type": "dimension", "$value": "9999px", "$description": "rounded-full" }
525
+ },
526
+
527
+ "card": {
528
+ "padding": { "$type": "dimension", "$value": "1.5rem", "$description": "p-6" },
529
+ "border-radius": { "$type": "dimension", "$value": "var(--radius)", "$description": "rounded-lg" },
530
+ "border-width": { "$type": "dimension", "$value": "1px", "$description": "border" }
531
+ },
532
+
533
+ "dialog": {
534
+ "max-width": { "$type": "dimension", "$value": "32rem", "$description": "max-w-lg" },
535
+ "padding": { "$type": "dimension", "$value": "1.5rem", "$description": "p-6" },
536
+ "border-radius": { "$type": "dimension", "$value": "var(--radius)", "$description": "rounded-lg" },
537
+ "overlay-opacity": { "$type": "number", "$value": 0.8, "$description": "bg-black/80" }
538
+ },
539
+
540
+ "sheet": {
541
+ "width-sm": { "$type": "dimension", "$value": "50%", "$description": "side=left/right sm" },
542
+ "width-lg": { "$type": "dimension", "$value": "75%", "$description": "side=left/right lg" },
543
+ "height-sm": { "$type": "dimension", "$value": "50%", "$description": "side=top/bottom sm" },
544
+ "height-lg": { "$type": "dimension", "$value": "75%", "$description": "side=top/bottom lg" },
545
+ "padding": { "$type": "dimension", "$value": "1.5rem", "$description": "p-6" }
546
+ },
547
+
548
+ "select": {
549
+ "trigger-height": { "$type": "dimension", "$value": "2.5rem", "$description": "h-10" },
550
+ "trigger-padding": { "$type": "dimension", "$value": "0 0.75rem", "$description": "px-3 py-2" },
551
+ "content-min-width": { "$type": "dimension", "$value": "8rem", "$description": "min-w-[8rem]" }
552
+ },
553
+
554
+ "table": {
555
+ "row-height": { "$type": "dimension", "$value": "3rem", "$description": "h-12" },
556
+ "cell-padding": { "$type": "dimension", "$value": "1rem", "$description": "p-4" },
557
+ "font-size": { "$type": "dimension", "$value": "0.875rem", "$description": "text-sm" }
558
+ },
559
+
560
+ "tabs": {
561
+ "trigger-height": { "$type": "dimension", "$value": "2.25rem", "$description": "h-9" },
562
+ "trigger-padding": { "$type": "dimension", "$value": "0 0.75rem", "$description": "px-3" },
563
+ "list-height": { "$type": "dimension", "$value": "2.375rem", "$description": "h-9" }
564
+ },
565
+
566
+ "avatar": {
567
+ "size-sm": { "$type": "dimension", "$value": "2rem", "$description": "h-8 w-8" },
568
+ "size-md": { "$type": "dimension", "$value": "2.5rem", "$description": "h-10 w-10" },
569
+ "size-lg": { "$type": "dimension", "$value": "3rem", "$description": "h-12 w-12" },
570
+ "size-xl": { "$type": "dimension", "$value": "4rem", "$description": "h-16 w-16" }
571
+ },
572
+
573
+ "toast": {
574
+ "width": { "$type": "dimension", "$value": "24rem", "$description": "w-96" },
575
+ "border-radius": { "$type": "dimension", "$value": "var(--radius)", "$description": "rounded-lg" },
576
+ "padding": { "$type": "dimension", "$value": "1.5rem", "$description": "p-6" }
577
+ },
578
+
579
+ "progress": {
580
+ "height": { "$type": "dimension", "$value": "1rem", "$description": "h-4" },
581
+ "border-radius": { "$type": "dimension", "$value": "9999px", "$description": "rounded-full" }
582
+ },
583
+
584
+ "slider": {
585
+ "track-height": { "$type": "dimension", "$value": "0.5rem", "$description": "h-2" },
586
+ "thumb-size": { "$type": "dimension", "$value": "1.25rem", "$description": "h-5 w-5" }
587
+ },
588
+
589
+ "switch": {
590
+ "width": { "$type": "dimension", "$value": "2.75rem", "$description": "w-11" },
591
+ "height": { "$type": "dimension", "$value": "1.5rem", "$description": "h-6" },
592
+ "thumb": { "$type": "dimension", "$value": "1.25rem", "$description": "h-5 w-5" }
593
+ },
594
+
595
+ "checkbox": {
596
+ "size": { "$type": "dimension", "$value": "1rem", "$description": "h-4 w-4" },
597
+ "border-radius": { "$type": "dimension", "$value": "0.125rem", "$description": "rounded-sm" }
598
+ },
599
+
600
+ "separator": {
601
+ "thickness": { "$type": "dimension", "$value": "1px", "$description": "分割线粗细" }
602
+ },
603
+
604
+ "skeleton": {
605
+ "border-radius": { "$type": "dimension", "$value": "0.25rem", "$description": "rounded" },
606
+ "animation-duration": { "$type": "duration", "$value": "2s", "$description": "pulse 时长" }
607
+ },
608
+
609
+ "tooltip": {
610
+ "padding": { "$type": "dimension", "$value": "0.25rem 0.75rem", "$description": "px-3 py-1.5" },
611
+ "font-size": { "$type": "dimension", "$value": "0.75rem", "$description": "text-xs" },
612
+ "border-radius": { "$type": "dimension", "$value": "calc(var(--radius) - 4px)", "$description": "rounded-sm" }
613
+ },
614
+
615
+ "popover": {
616
+ "padding": { "$type": "dimension", "$value": "1rem", "$description": "p-4" },
617
+ "min-width": { "$type": "dimension", "$value": "18rem", "$description": "w-72" },
618
+ "border-radius": { "$type": "dimension", "$value": "calc(var(--radius) - 2px)", "$description": "rounded-md" }
619
+ },
620
+
621
+ "command": {
622
+ "max-height": { "$type": "dimension", "$value": "18.75rem", "$description": "max-h-[300px]" },
623
+ "input-height": { "$type": "dimension", "$value": "2.75rem", "$description": "h-11" }
624
+ },
625
+
626
+ "accordion": {
627
+ "trigger-padding": { "$type": "dimension", "$value": "1rem 0", "$description": "py-4" },
628
+ "content-padding": { "$type": "dimension", "$value": "0 0 1rem 0", "$description": "pb-4" }
629
+ },
630
+
631
+ "navigation-menu": {
632
+ "trigger-height": { "$type": "dimension", "$value": "2.25rem", "$description": "h-9" },
633
+ "trigger-padding": { "$type": "dimension", "$value": "0 1rem", "$description": "px-4" },
634
+ "font-size": { "$type": "dimension", "$value": "0.875rem", "$description": "text-sm" }
635
+ },
636
+
637
+ "calendar": {
638
+ "cell-size": { "$type": "dimension", "$value": "2.25rem", "$description": "h-9 w-9" },
639
+ "nav-size": { "$type": "dimension", "$value": "1.75rem", "$description": "h-7 w-7" }
640
+ },
641
+
642
+ "pagination": {
643
+ "item-size": { "$type": "dimension", "$value": "2.25rem", "$description": "h-9 w-9" },
644
+ "font-size": { "$type": "dimension", "$value": "0.875rem", "$description": "text-sm" }
645
+ }
646
+ },
647
+
648
+ "$css-variables": {
649
+ "$description": "CSS 变量参考声明 — 可直接复制到 globals.css",
650
+ "root-light": {
651
+ "--background": "0 0% 100%",
652
+ "--foreground": "222.2 84% 4.9%",
653
+ "--card": "0 0% 100%",
654
+ "--card-foreground": "222.2 84% 4.9%",
655
+ "--popover": "0 0% 100%",
656
+ "--popover-foreground": "222.2 84% 4.9%",
657
+ "--primary": "222.2 47.4% 11.2%",
658
+ "--primary-foreground": "210 40% 98%",
659
+ "--secondary": "210 40% 96.1%",
660
+ "--secondary-foreground": "222.2 47.4% 11.2%",
661
+ "--muted": "210 40% 96.1%",
662
+ "--muted-foreground": "215.4 16.3% 46.9%",
663
+ "--accent": "210 40% 96.1%",
664
+ "--accent-foreground": "222.2 47.4% 11.2%",
665
+ "--destructive": "0 84.2% 60.2%",
666
+ "--destructive-foreground": "210 40% 98%",
667
+ "--border": "214.3 31.8% 91.4%",
668
+ "--input": "214.3 31.8% 91.4%",
669
+ "--ring": "222.2 84% 4.9%",
670
+ "--chart-1": "12 76% 61%",
671
+ "--chart-2": "173 58% 39%",
672
+ "--chart-3": "197 37% 24%",
673
+ "--chart-4": "43 74% 66%",
674
+ "--chart-5": "27 87% 67%",
675
+ "--sidebar-background": "0 0% 98%",
676
+ "--sidebar-foreground": "240 5.3% 26.1%",
677
+ "--sidebar-primary": "240 5.9% 10%",
678
+ "--sidebar-primary-foreground": "0 0% 98%",
679
+ "--sidebar-accent": "240 4.8% 95.9%",
680
+ "--sidebar-accent-foreground": "240 5.9% 10%",
681
+ "--sidebar-border": "220 13% 91%",
682
+ "--sidebar-ring": "217.2 91.2% 59.8%",
683
+ "--radius": "0.5rem"
684
+ },
685
+ "root-dark": {
686
+ "--background": "222.2 84% 4.9%",
687
+ "--foreground": "210 40% 98%",
688
+ "--card": "222.2 84% 4.9%",
689
+ "--card-foreground": "210 40% 98%",
690
+ "--popover": "222.2 84% 4.9%",
691
+ "--popover-foreground": "210 40% 98%",
692
+ "--primary": "210 40% 98%",
693
+ "--primary-foreground": "222.2 47.4% 11.2%",
694
+ "--secondary": "217.2 32.6% 17.5%",
695
+ "--secondary-foreground": "210 40% 98%",
696
+ "--muted": "217.2 32.6% 17.5%",
697
+ "--muted-foreground": "215 20.2% 65.1%",
698
+ "--accent": "217.2 32.6% 17.5%",
699
+ "--accent-foreground": "210 40% 98%",
700
+ "--destructive": "0 62.8% 30.6%",
701
+ "--destructive-foreground": "210 40% 98%",
702
+ "--border": "217.2 32.6% 17.5%",
703
+ "--input": "217.2 32.6% 17.5%",
704
+ "--ring": "212.7 26.8% 83.9%",
705
+ "--chart-1": "220 70% 50%",
706
+ "--chart-2": "160 60% 45%",
707
+ "--chart-3": "30 80% 55%",
708
+ "--chart-4": "280 65% 60%",
709
+ "--chart-5": "340 75% 55%",
710
+ "--sidebar-background": "240 5.9% 10%",
711
+ "--sidebar-foreground": "240 4.8% 95.9%",
712
+ "--sidebar-primary": "224.3 76.3% 48%",
713
+ "--sidebar-primary-foreground": "0 0% 100%",
714
+ "--sidebar-accent": "240 3.7% 15.9%",
715
+ "--sidebar-accent-foreground": "240 4.8% 95.9%",
716
+ "--sidebar-border": "240 3.7% 15.9%",
717
+ "--sidebar-ring": "217.2 91.2% 59.8%"
718
+ }
719
+ },
720
+
721
+ "$style-replacement": {
722
+ "$description": "样式替换节点 — 记录当前样式来源与目标替换系统",
723
+ "current-source": "shadcn/ui default theme (official)",
724
+ "target-source": "Teamix (待替换)",
725
+ "replacement-scope": ["color", "radius", "shadow", "typography.font-family"],
726
+ "theme-customizable": ["color.primary", "color.ring", "radius.base", "typography.font-family.sans"],
727
+ "status": "pending"
728
+ }
729
+ }