@behavioral-agentic-design-system/core 0.1.5 → 0.2.1
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.
- package/package.json +5 -2
- package/src/components/ui/alert.tsx +2 -2
- package/src/components/ui/button.tsx +3 -0
- package/src/components/ui/checkbox.tsx +2 -2
- package/src/components/ui/dialog.tsx +28 -7
- package/src/components/ui/field.tsx +265 -0
- package/src/components/ui/input.tsx +29 -8
- package/src/components/ui/progress.tsx +6 -1
- package/src/components/ui/radio-group.tsx +2 -2
- package/src/components/ui/resizable.tsx +3 -3
- package/src/components/ui/scroll-area.tsx +4 -4
- package/src/components/ui/sheet.tsx +6 -2
- package/src/components/ui/slider.tsx +7 -2
- package/src/components/ui/switch.tsx +7 -2
- package/src/components/ui/tabs.tsx +69 -2
- package/src/lib/color-name.ts +182 -0
- package/src/lib/theme-editor.ts +213 -0
- package/src/styles.css +222 -77
- package/src/tokens.default.json +984 -0
- package/src/tokens.json +188 -90
|
@@ -0,0 +1,984 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://tokens.studio/schema/draft.json",
|
|
3
|
+
"version": "0.2.0",
|
|
4
|
+
"color": {
|
|
5
|
+
"primitive": {
|
|
6
|
+
"blue": {
|
|
7
|
+
"50": {
|
|
8
|
+
"$value": "#EBF0FF",
|
|
9
|
+
"$type": "color",
|
|
10
|
+
"$description": "Lightest blue tint"
|
|
11
|
+
},
|
|
12
|
+
"100": {
|
|
13
|
+
"$value": "#D1DFFF",
|
|
14
|
+
"$type": "color"
|
|
15
|
+
},
|
|
16
|
+
"200": {
|
|
17
|
+
"$value": "#7BA8FF",
|
|
18
|
+
"$type": "color"
|
|
19
|
+
},
|
|
20
|
+
"300": {
|
|
21
|
+
"$value": "#8BD6E5",
|
|
22
|
+
"$type": "color"
|
|
23
|
+
},
|
|
24
|
+
"400": {
|
|
25
|
+
"$value": "#4080FF",
|
|
26
|
+
"$type": "color"
|
|
27
|
+
},
|
|
28
|
+
"500": {
|
|
29
|
+
"$value": "#025FFF",
|
|
30
|
+
"$type": "color",
|
|
31
|
+
"$description": "Primary brand color"
|
|
32
|
+
},
|
|
33
|
+
"600": {
|
|
34
|
+
"$value": "#0020D6",
|
|
35
|
+
"$type": "color"
|
|
36
|
+
},
|
|
37
|
+
"700": {
|
|
38
|
+
"$value": "#0E295E",
|
|
39
|
+
"$type": "color",
|
|
40
|
+
"$description": "Secondary brand color"
|
|
41
|
+
},
|
|
42
|
+
"800": {
|
|
43
|
+
"$value": "#0A1D42",
|
|
44
|
+
"$type": "color"
|
|
45
|
+
},
|
|
46
|
+
"850": {
|
|
47
|
+
"$value": "#09142A",
|
|
48
|
+
"$type": "color",
|
|
49
|
+
"$description": "Dark mode card surface"
|
|
50
|
+
},
|
|
51
|
+
"900": {
|
|
52
|
+
"$value": "#051A3F",
|
|
53
|
+
"$type": "color",
|
|
54
|
+
"$description": "Darkest blue"
|
|
55
|
+
},
|
|
56
|
+
"950": {
|
|
57
|
+
"$value": "#040D20",
|
|
58
|
+
"$type": "color",
|
|
59
|
+
"$description": "Dark mode page background \u2014 deepest brand blue"
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
"slate": {
|
|
63
|
+
"100": {
|
|
64
|
+
"$value": "#B8D6E5",
|
|
65
|
+
"$type": "color",
|
|
66
|
+
"$description": "Light blue-gray \u2014 secondary text on dark backgrounds"
|
|
67
|
+
},
|
|
68
|
+
"300": {
|
|
69
|
+
"$value": "#7292A1",
|
|
70
|
+
"$type": "color",
|
|
71
|
+
"$description": "Mid blue-gray \u2014 input borders on dark backgrounds"
|
|
72
|
+
},
|
|
73
|
+
"500": {
|
|
74
|
+
"$value": "#324852",
|
|
75
|
+
"$type": "color",
|
|
76
|
+
"$description": "Deep blue-gray \u2014 default borders/dividers on dark backgrounds"
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
"cream": {
|
|
80
|
+
"100": {
|
|
81
|
+
"$value": "#FFECDC",
|
|
82
|
+
"$type": "color",
|
|
83
|
+
"$description": "Warm accent highlight"
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
"coral": {
|
|
87
|
+
"500": {
|
|
88
|
+
"$value": "#DB6A58",
|
|
89
|
+
"$type": "color",
|
|
90
|
+
"$description": "Brand coral. Use for accents and status indicators. Does not meet AA 4.5:1 on white text \u2014 pair with coral.700 for primary CTA usage."
|
|
91
|
+
},
|
|
92
|
+
"700": {
|
|
93
|
+
"$value": "#A03A2A",
|
|
94
|
+
"$type": "color",
|
|
95
|
+
"$description": "Dark accessible coral \u2014 meets AA 4.5:1 on white for error text and primary CTAs"
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
"orange": {
|
|
99
|
+
"500": {
|
|
100
|
+
"$value": "#FF5532",
|
|
101
|
+
"$type": "color",
|
|
102
|
+
"$description": "Warning/attention color"
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
"green": {
|
|
106
|
+
"500": {
|
|
107
|
+
"$value": "#10B981",
|
|
108
|
+
"$type": "color",
|
|
109
|
+
"$description": "Success/positive color (light variant)"
|
|
110
|
+
},
|
|
111
|
+
"700": {
|
|
112
|
+
"$value": "#047857",
|
|
113
|
+
"$type": "color",
|
|
114
|
+
"$description": "Dark accessible green \u2014 meets 3:1 on white for status indicators"
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
"neutral": {
|
|
118
|
+
"0": {
|
|
119
|
+
"$value": "#FFFFFF",
|
|
120
|
+
"$type": "color"
|
|
121
|
+
},
|
|
122
|
+
"50": {
|
|
123
|
+
"$value": "#FAFCFC",
|
|
124
|
+
"$type": "color"
|
|
125
|
+
},
|
|
126
|
+
"100": {
|
|
127
|
+
"$value": "#F5F5F5",
|
|
128
|
+
"$type": "color"
|
|
129
|
+
},
|
|
130
|
+
"200": {
|
|
131
|
+
"$value": "#E5E5E5",
|
|
132
|
+
"$type": "color",
|
|
133
|
+
"$description": "Decorative borders, dividers (exempt from 3:1)"
|
|
134
|
+
},
|
|
135
|
+
"300": {
|
|
136
|
+
"$value": "#767676",
|
|
137
|
+
"$type": "color",
|
|
138
|
+
"$description": "Functional borders \u2014 meets WCAG 1.4.11 (3:1) for inputs and UI components"
|
|
139
|
+
},
|
|
140
|
+
"400": {
|
|
141
|
+
"$value": "#ABABAB",
|
|
142
|
+
"$type": "color"
|
|
143
|
+
},
|
|
144
|
+
"500": {
|
|
145
|
+
"$value": "#887B73",
|
|
146
|
+
"$type": "color"
|
|
147
|
+
},
|
|
148
|
+
"700": {
|
|
149
|
+
"$value": "#555555",
|
|
150
|
+
"$type": "color"
|
|
151
|
+
},
|
|
152
|
+
"900": {
|
|
153
|
+
"$value": "#1A1A1A",
|
|
154
|
+
"$type": "color"
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
"fontFamily": {
|
|
160
|
+
"sans": {
|
|
161
|
+
"$value": "'Hyperlegible Sans', ui-sans-serif, sans-serif, system-ui",
|
|
162
|
+
"$type": "fontFamily",
|
|
163
|
+
"$description": "Primary sans (body, UI). Hyperlegible Sans is the BADS default \u2014 production-safe and accessibility-friendly. Override per client."
|
|
164
|
+
},
|
|
165
|
+
"serif": {
|
|
166
|
+
"$value": "ui-serif, Georgia, serif",
|
|
167
|
+
"$type": "fontFamily",
|
|
168
|
+
"$description": "Display/serif fallback stack. No default brand serif \u2014 clients should override."
|
|
169
|
+
},
|
|
170
|
+
"mono": {
|
|
171
|
+
"$value": "'JetBrains Mono', ui-monospace, monospace",
|
|
172
|
+
"$type": "fontFamily",
|
|
173
|
+
"$description": "Monospace (code, captions). JetBrains Mono is the default fallback."
|
|
174
|
+
}
|
|
175
|
+
},
|
|
176
|
+
"fontSize": {
|
|
177
|
+
"xs": {
|
|
178
|
+
"$value": "14px",
|
|
179
|
+
"$type": "dimension",
|
|
180
|
+
"$description": "Captions, labels. Floor for legibility."
|
|
181
|
+
},
|
|
182
|
+
"sm": {
|
|
183
|
+
"$value": "16px",
|
|
184
|
+
"$type": "dimension",
|
|
185
|
+
"$description": "Secondary text. Sits just under body."
|
|
186
|
+
},
|
|
187
|
+
"base": {
|
|
188
|
+
"$value": "18px",
|
|
189
|
+
"$type": "dimension",
|
|
190
|
+
"$description": "Body text baseline. 18px reads comfortably across devices and is generous for low-vision users without feeling oversized."
|
|
191
|
+
},
|
|
192
|
+
"lg": {
|
|
193
|
+
"$value": "20px",
|
|
194
|
+
"$type": "dimension"
|
|
195
|
+
},
|
|
196
|
+
"xl": {
|
|
197
|
+
"$value": "24px",
|
|
198
|
+
"$type": "dimension"
|
|
199
|
+
},
|
|
200
|
+
"2xl": {
|
|
201
|
+
"$value": "28px",
|
|
202
|
+
"$type": "dimension"
|
|
203
|
+
},
|
|
204
|
+
"3xl": {
|
|
205
|
+
"$value": "32px",
|
|
206
|
+
"$type": "dimension"
|
|
207
|
+
}
|
|
208
|
+
},
|
|
209
|
+
"fontWeight": {
|
|
210
|
+
"regular": {
|
|
211
|
+
"$value": "400",
|
|
212
|
+
"$type": "fontWeight"
|
|
213
|
+
},
|
|
214
|
+
"medium": {
|
|
215
|
+
"$value": "500",
|
|
216
|
+
"$type": "fontWeight"
|
|
217
|
+
},
|
|
218
|
+
"bold": {
|
|
219
|
+
"$value": "700",
|
|
220
|
+
"$type": "fontWeight"
|
|
221
|
+
}
|
|
222
|
+
},
|
|
223
|
+
"lineHeight": {
|
|
224
|
+
"tight": {
|
|
225
|
+
"$value": "1.2",
|
|
226
|
+
"$type": "lineHeight"
|
|
227
|
+
},
|
|
228
|
+
"snug": {
|
|
229
|
+
"$value": "1.3",
|
|
230
|
+
"$type": "lineHeight"
|
|
231
|
+
},
|
|
232
|
+
"normal": {
|
|
233
|
+
"$value": "1.5",
|
|
234
|
+
"$type": "lineHeight"
|
|
235
|
+
},
|
|
236
|
+
"relaxed": {
|
|
237
|
+
"$value": "1.6",
|
|
238
|
+
"$type": "lineHeight"
|
|
239
|
+
}
|
|
240
|
+
},
|
|
241
|
+
"spacing": {
|
|
242
|
+
"0": {
|
|
243
|
+
"$value": "0px",
|
|
244
|
+
"$type": "dimension"
|
|
245
|
+
},
|
|
246
|
+
"1": {
|
|
247
|
+
"$value": "4px",
|
|
248
|
+
"$type": "dimension"
|
|
249
|
+
},
|
|
250
|
+
"2": {
|
|
251
|
+
"$value": "8px",
|
|
252
|
+
"$type": "dimension"
|
|
253
|
+
},
|
|
254
|
+
"3": {
|
|
255
|
+
"$value": "12px",
|
|
256
|
+
"$type": "dimension"
|
|
257
|
+
},
|
|
258
|
+
"4": {
|
|
259
|
+
"$value": "16px",
|
|
260
|
+
"$type": "dimension"
|
|
261
|
+
},
|
|
262
|
+
"5": {
|
|
263
|
+
"$value": "20px",
|
|
264
|
+
"$type": "dimension"
|
|
265
|
+
},
|
|
266
|
+
"6": {
|
|
267
|
+
"$value": "24px",
|
|
268
|
+
"$type": "dimension"
|
|
269
|
+
},
|
|
270
|
+
"8": {
|
|
271
|
+
"$value": "32px",
|
|
272
|
+
"$type": "dimension"
|
|
273
|
+
},
|
|
274
|
+
"12": {
|
|
275
|
+
"$value": "48px",
|
|
276
|
+
"$type": "dimension"
|
|
277
|
+
},
|
|
278
|
+
"16": {
|
|
279
|
+
"$value": "64px",
|
|
280
|
+
"$type": "dimension"
|
|
281
|
+
}
|
|
282
|
+
},
|
|
283
|
+
"borderRadius": {
|
|
284
|
+
"none": {
|
|
285
|
+
"$value": "0px",
|
|
286
|
+
"$type": "dimension"
|
|
287
|
+
},
|
|
288
|
+
"sm": {
|
|
289
|
+
"$value": "2px",
|
|
290
|
+
"$type": "dimension"
|
|
291
|
+
},
|
|
292
|
+
"md": {
|
|
293
|
+
"$value": "4px",
|
|
294
|
+
"$type": "dimension"
|
|
295
|
+
},
|
|
296
|
+
"lg": {
|
|
297
|
+
"$value": "0.625rem",
|
|
298
|
+
"$type": "dimension",
|
|
299
|
+
"$description": "Default component radius. Maps to --radius CSS var. shadcn default."
|
|
300
|
+
},
|
|
301
|
+
"xl": {
|
|
302
|
+
"$value": "12px",
|
|
303
|
+
"$type": "dimension"
|
|
304
|
+
},
|
|
305
|
+
"full": {
|
|
306
|
+
"$value": "9999px",
|
|
307
|
+
"$type": "dimension"
|
|
308
|
+
}
|
|
309
|
+
},
|
|
310
|
+
"shadow": {
|
|
311
|
+
"none": {
|
|
312
|
+
"$value": "none",
|
|
313
|
+
"$type": "shadow"
|
|
314
|
+
},
|
|
315
|
+
"xs": {
|
|
316
|
+
"$value": "0 1px 3px 0px hsl(0 0% 0% / 0.05)",
|
|
317
|
+
"$type": "shadow"
|
|
318
|
+
},
|
|
319
|
+
"sm": {
|
|
320
|
+
"$value": "0 1px 3px 0px hsl(0 0% 0% / 0.10), 0 1px 2px -1px hsl(0 0% 0% / 0.10)",
|
|
321
|
+
"$type": "shadow"
|
|
322
|
+
},
|
|
323
|
+
"md": {
|
|
324
|
+
"$value": "0 1px 3px 0px hsl(0 0% 0% / 0.10), 0 2px 4px -1px hsl(0 0% 0% / 0.10)",
|
|
325
|
+
"$type": "shadow"
|
|
326
|
+
},
|
|
327
|
+
"lg": {
|
|
328
|
+
"$value": "0 1px 3px 0px hsl(0 0% 0% / 0.10), 0 4px 6px -1px hsl(0 0% 0% / 0.10)",
|
|
329
|
+
"$type": "shadow"
|
|
330
|
+
},
|
|
331
|
+
"xl": {
|
|
332
|
+
"$value": "0 1px 3px 0px hsl(0 0% 0% / 0.10), 0 8px 10px -1px hsl(0 0% 0% / 0.10)",
|
|
333
|
+
"$type": "shadow"
|
|
334
|
+
}
|
|
335
|
+
},
|
|
336
|
+
"breakpoint": {
|
|
337
|
+
"mobile": {
|
|
338
|
+
"$value": "320px",
|
|
339
|
+
"$type": "dimension"
|
|
340
|
+
},
|
|
341
|
+
"tablet": {
|
|
342
|
+
"$value": "640px",
|
|
343
|
+
"$type": "dimension"
|
|
344
|
+
},
|
|
345
|
+
"desktop": {
|
|
346
|
+
"$value": "1024px",
|
|
347
|
+
"$type": "dimension"
|
|
348
|
+
},
|
|
349
|
+
"wide": {
|
|
350
|
+
"$value": "1280px",
|
|
351
|
+
"$type": "dimension"
|
|
352
|
+
}
|
|
353
|
+
},
|
|
354
|
+
"duration": {
|
|
355
|
+
"fast": {
|
|
356
|
+
"$value": "150ms",
|
|
357
|
+
"$type": "dimension"
|
|
358
|
+
},
|
|
359
|
+
"base": {
|
|
360
|
+
"$value": "200ms",
|
|
361
|
+
"$type": "dimension"
|
|
362
|
+
},
|
|
363
|
+
"slow": {
|
|
364
|
+
"$value": "300ms",
|
|
365
|
+
"$type": "dimension"
|
|
366
|
+
}
|
|
367
|
+
},
|
|
368
|
+
"easing": {
|
|
369
|
+
"ease-in": {
|
|
370
|
+
"$value": "cubic-bezier(0.4, 0, 1, 1)",
|
|
371
|
+
"$type": "cubic-bezier"
|
|
372
|
+
},
|
|
373
|
+
"ease-out": {
|
|
374
|
+
"$value": "cubic-bezier(0, 0, 0.2, 1)",
|
|
375
|
+
"$type": "cubic-bezier"
|
|
376
|
+
},
|
|
377
|
+
"ease-in-out": {
|
|
378
|
+
"$value": "cubic-bezier(0.4, 0, 0.2, 1)",
|
|
379
|
+
"$type": "cubic-bezier"
|
|
380
|
+
},
|
|
381
|
+
"ease-spring": {
|
|
382
|
+
"$value": "cubic-bezier(0.34, 1.56, 0.64, 1)",
|
|
383
|
+
"$type": "cubic-bezier"
|
|
384
|
+
}
|
|
385
|
+
},
|
|
386
|
+
"typography": {
|
|
387
|
+
"heading-xl": {
|
|
388
|
+
"fontSize": {
|
|
389
|
+
"$value": "{fontSize.3xl}",
|
|
390
|
+
"$type": "dimension"
|
|
391
|
+
},
|
|
392
|
+
"fontWeight": {
|
|
393
|
+
"$value": "{fontWeight.bold}",
|
|
394
|
+
"$type": "fontWeight"
|
|
395
|
+
},
|
|
396
|
+
"lineHeight": {
|
|
397
|
+
"$value": "{lineHeight.tight}",
|
|
398
|
+
"$type": "lineHeight"
|
|
399
|
+
}
|
|
400
|
+
},
|
|
401
|
+
"heading-lg": {
|
|
402
|
+
"fontSize": {
|
|
403
|
+
"$value": "{fontSize.2xl}",
|
|
404
|
+
"$type": "dimension"
|
|
405
|
+
},
|
|
406
|
+
"fontWeight": {
|
|
407
|
+
"$value": "{fontWeight.bold}",
|
|
408
|
+
"$type": "fontWeight"
|
|
409
|
+
},
|
|
410
|
+
"lineHeight": {
|
|
411
|
+
"$value": "{lineHeight.snug}",
|
|
412
|
+
"$type": "lineHeight"
|
|
413
|
+
}
|
|
414
|
+
},
|
|
415
|
+
"heading-md": {
|
|
416
|
+
"fontSize": {
|
|
417
|
+
"$value": "{fontSize.xl}",
|
|
418
|
+
"$type": "dimension"
|
|
419
|
+
},
|
|
420
|
+
"fontWeight": {
|
|
421
|
+
"$value": "{fontWeight.bold}",
|
|
422
|
+
"$type": "fontWeight"
|
|
423
|
+
},
|
|
424
|
+
"lineHeight": {
|
|
425
|
+
"$value": "{lineHeight.snug}",
|
|
426
|
+
"$type": "lineHeight"
|
|
427
|
+
}
|
|
428
|
+
},
|
|
429
|
+
"heading-sm": {
|
|
430
|
+
"fontSize": {
|
|
431
|
+
"$value": "{fontSize.lg}",
|
|
432
|
+
"$type": "dimension"
|
|
433
|
+
},
|
|
434
|
+
"fontWeight": {
|
|
435
|
+
"$value": "{fontWeight.medium}",
|
|
436
|
+
"$type": "fontWeight"
|
|
437
|
+
},
|
|
438
|
+
"lineHeight": {
|
|
439
|
+
"$value": "{lineHeight.normal}",
|
|
440
|
+
"$type": "lineHeight"
|
|
441
|
+
}
|
|
442
|
+
},
|
|
443
|
+
"body": {
|
|
444
|
+
"fontSize": {
|
|
445
|
+
"$value": "{fontSize.base}",
|
|
446
|
+
"$type": "dimension"
|
|
447
|
+
},
|
|
448
|
+
"fontWeight": {
|
|
449
|
+
"$value": "{fontWeight.medium}",
|
|
450
|
+
"$type": "fontWeight"
|
|
451
|
+
},
|
|
452
|
+
"lineHeight": {
|
|
453
|
+
"$value": "{lineHeight.relaxed}",
|
|
454
|
+
"$type": "lineHeight"
|
|
455
|
+
},
|
|
456
|
+
"$description": "Body text uses 500 (medium) as the accessibility baseline. 400 (regular) renders too thin at small sizes and on high-DPI screens, especially for low-vision users."
|
|
457
|
+
},
|
|
458
|
+
"body-sm": {
|
|
459
|
+
"fontSize": {
|
|
460
|
+
"$value": "{fontSize.sm}",
|
|
461
|
+
"$type": "dimension"
|
|
462
|
+
},
|
|
463
|
+
"fontWeight": {
|
|
464
|
+
"$value": "{fontWeight.medium}",
|
|
465
|
+
"$type": "fontWeight"
|
|
466
|
+
},
|
|
467
|
+
"lineHeight": {
|
|
468
|
+
"$value": "{lineHeight.normal}",
|
|
469
|
+
"$type": "lineHeight"
|
|
470
|
+
}
|
|
471
|
+
},
|
|
472
|
+
"caption": {
|
|
473
|
+
"fontSize": {
|
|
474
|
+
"$value": "{fontSize.xs}",
|
|
475
|
+
"$type": "dimension"
|
|
476
|
+
},
|
|
477
|
+
"fontWeight": {
|
|
478
|
+
"$value": "{fontWeight.medium}",
|
|
479
|
+
"$type": "fontWeight"
|
|
480
|
+
},
|
|
481
|
+
"lineHeight": {
|
|
482
|
+
"$value": "{lineHeight.normal}",
|
|
483
|
+
"$type": "lineHeight"
|
|
484
|
+
}
|
|
485
|
+
},
|
|
486
|
+
"code": {
|
|
487
|
+
"fontFamily": {
|
|
488
|
+
"$value": "{fontFamily.mono}",
|
|
489
|
+
"$type": "fontFamily"
|
|
490
|
+
},
|
|
491
|
+
"fontSize": {
|
|
492
|
+
"$value": "{fontSize.sm}",
|
|
493
|
+
"$type": "dimension"
|
|
494
|
+
},
|
|
495
|
+
"fontWeight": {
|
|
496
|
+
"$value": "{fontWeight.regular}",
|
|
497
|
+
"$type": "fontWeight"
|
|
498
|
+
}
|
|
499
|
+
}
|
|
500
|
+
},
|
|
501
|
+
"component": {
|
|
502
|
+
"button": {
|
|
503
|
+
"primary": {
|
|
504
|
+
"background": {
|
|
505
|
+
"$value": "{color.semantic.action.primary}",
|
|
506
|
+
"$type": "color"
|
|
507
|
+
},
|
|
508
|
+
"text": {
|
|
509
|
+
"$value": "{color.semantic.text.on-primary}",
|
|
510
|
+
"$type": "color"
|
|
511
|
+
},
|
|
512
|
+
"background-hover": {
|
|
513
|
+
"$value": "{color.semantic.action.primary-hover}",
|
|
514
|
+
"$type": "color"
|
|
515
|
+
},
|
|
516
|
+
"border-radius": {
|
|
517
|
+
"$value": "{borderRadius.lg}",
|
|
518
|
+
"$type": "dimension"
|
|
519
|
+
},
|
|
520
|
+
"padding-x": {
|
|
521
|
+
"$value": "{spacing.3}",
|
|
522
|
+
"$type": "dimension"
|
|
523
|
+
},
|
|
524
|
+
"padding-y": {
|
|
525
|
+
"$value": "{spacing.2}",
|
|
526
|
+
"$type": "dimension"
|
|
527
|
+
}
|
|
528
|
+
},
|
|
529
|
+
"secondary": {
|
|
530
|
+
"background": {
|
|
531
|
+
"$value": "transparent",
|
|
532
|
+
"$type": "color"
|
|
533
|
+
},
|
|
534
|
+
"border": {
|
|
535
|
+
"$value": "{color.semantic.border.default}",
|
|
536
|
+
"$type": "color"
|
|
537
|
+
},
|
|
538
|
+
"text": {
|
|
539
|
+
"$value": "{color.semantic.text.primary}",
|
|
540
|
+
"$type": "color"
|
|
541
|
+
},
|
|
542
|
+
"border-radius": {
|
|
543
|
+
"$value": "{borderRadius.lg}",
|
|
544
|
+
"$type": "dimension"
|
|
545
|
+
}
|
|
546
|
+
},
|
|
547
|
+
"destructive": {
|
|
548
|
+
"background": {
|
|
549
|
+
"$value": "{color.semantic.action.destructive}",
|
|
550
|
+
"$type": "color"
|
|
551
|
+
},
|
|
552
|
+
"text": {
|
|
553
|
+
"$value": "{color.semantic.text.on-primary}",
|
|
554
|
+
"$type": "color"
|
|
555
|
+
}
|
|
556
|
+
}
|
|
557
|
+
},
|
|
558
|
+
"input": {
|
|
559
|
+
"$description": "Form inputs collect user data \u2014 pair with explicit labels and consent UX where applicable",
|
|
560
|
+
"$extensions": {
|
|
561
|
+
"BADS.ethics": {
|
|
562
|
+
"consentRequired": "conditional",
|
|
563
|
+
"dataScope": "user-provided",
|
|
564
|
+
"requirements": [
|
|
565
|
+
"Always pair with a visible <label> (not just placeholder) per WCAG 3.3.2",
|
|
566
|
+
"If collecting personal data (PII, location, payment, biometric), require explicit consent UX per layer-2-ethics-responsibility/decision-trees.json",
|
|
567
|
+
"If under-13 surface, require parental consent flow (COPPA)",
|
|
568
|
+
"Honor data minimization \u2014 only collect what is necessary (GDPR Art. 5)"
|
|
569
|
+
],
|
|
570
|
+
"seeAlso": "layer-2-ethics-responsibility/decision-trees.json"
|
|
571
|
+
}
|
|
572
|
+
},
|
|
573
|
+
"background": {
|
|
574
|
+
"$value": "{color.semantic.surface.card}",
|
|
575
|
+
"$type": "color"
|
|
576
|
+
},
|
|
577
|
+
"border": {
|
|
578
|
+
"$value": "{color.semantic.border.input}",
|
|
579
|
+
"$type": "color"
|
|
580
|
+
},
|
|
581
|
+
"border-focus": {
|
|
582
|
+
"$value": "{color.semantic.border.focus}",
|
|
583
|
+
"$type": "color"
|
|
584
|
+
},
|
|
585
|
+
"text": {
|
|
586
|
+
"$value": "{color.semantic.text.primary}",
|
|
587
|
+
"$type": "color"
|
|
588
|
+
},
|
|
589
|
+
"placeholder": {
|
|
590
|
+
"$value": "{color.semantic.text.secondary}",
|
|
591
|
+
"$type": "color"
|
|
592
|
+
},
|
|
593
|
+
"border-radius": {
|
|
594
|
+
"$value": "{borderRadius.lg}",
|
|
595
|
+
"$type": "dimension"
|
|
596
|
+
},
|
|
597
|
+
"padding-x": {
|
|
598
|
+
"$value": "{spacing.3}",
|
|
599
|
+
"$type": "dimension"
|
|
600
|
+
},
|
|
601
|
+
"padding-y": {
|
|
602
|
+
"$value": "{spacing.2}",
|
|
603
|
+
"$type": "dimension"
|
|
604
|
+
}
|
|
605
|
+
},
|
|
606
|
+
"card": {
|
|
607
|
+
"background": {
|
|
608
|
+
"$value": "{color.semantic.surface.card}",
|
|
609
|
+
"$type": "color"
|
|
610
|
+
},
|
|
611
|
+
"border": {
|
|
612
|
+
"$value": "{color.semantic.border.default}",
|
|
613
|
+
"$type": "color"
|
|
614
|
+
},
|
|
615
|
+
"text": {
|
|
616
|
+
"$value": "{color.semantic.text.primary}",
|
|
617
|
+
"$type": "color"
|
|
618
|
+
},
|
|
619
|
+
"border-radius": {
|
|
620
|
+
"$value": "{borderRadius.lg}",
|
|
621
|
+
"$type": "dimension"
|
|
622
|
+
},
|
|
623
|
+
"padding": {
|
|
624
|
+
"$value": "{spacing.4}",
|
|
625
|
+
"$type": "dimension"
|
|
626
|
+
},
|
|
627
|
+
"shadow": {
|
|
628
|
+
"$value": "{shadow.sm}",
|
|
629
|
+
"$type": "shadow"
|
|
630
|
+
}
|
|
631
|
+
},
|
|
632
|
+
"modal": {
|
|
633
|
+
"$description": "Modals interrupt the user \u2014 use sparingly and never to coerce action",
|
|
634
|
+
"$extensions": {
|
|
635
|
+
"BADS.ethics": {
|
|
636
|
+
"antiPatterns": [
|
|
637
|
+
"confirmshame (e.g. 'Are you sure? You'll lose your progress!')",
|
|
638
|
+
"manufactured urgency ('Only 2 left!' timers)",
|
|
639
|
+
"asymmetric flows (subscribe in 1 click, cancel in 5)"
|
|
640
|
+
],
|
|
641
|
+
"requirements": [
|
|
642
|
+
"Cancel/dismiss must be as easy as confirm",
|
|
643
|
+
"Trap focus; restore on close (a11y)",
|
|
644
|
+
"Cancel flow must mirror subscribe flow in click count"
|
|
645
|
+
],
|
|
646
|
+
"seeAlso": "layer-2-ethics-responsibility/anti-patterns.md"
|
|
647
|
+
}
|
|
648
|
+
},
|
|
649
|
+
"overlay": {
|
|
650
|
+
"$value": "{color.semantic.surface.overlay}",
|
|
651
|
+
"$type": "color"
|
|
652
|
+
},
|
|
653
|
+
"background": {
|
|
654
|
+
"$value": "{color.semantic.surface.card}",
|
|
655
|
+
"$type": "color"
|
|
656
|
+
},
|
|
657
|
+
"shadow": {
|
|
658
|
+
"$value": "{shadow.xl}",
|
|
659
|
+
"$type": "shadow"
|
|
660
|
+
}
|
|
661
|
+
}
|
|
662
|
+
},
|
|
663
|
+
"theme": {
|
|
664
|
+
"$description": "Theme tokens \u2014 values feed directly into the published styles.css and the preview app's globals.css. The build script (scripts/build-tokens.js) regenerates both files from these values. Edit here, then run `pnpm build:tokens`.",
|
|
665
|
+
"light": {
|
|
666
|
+
"background": {
|
|
667
|
+
"$value": "oklch(1 0 0)",
|
|
668
|
+
"$type": "color",
|
|
669
|
+
"$description": "Page background"
|
|
670
|
+
},
|
|
671
|
+
"foreground": {
|
|
672
|
+
"$value": "oklch(0.1450 0 0)",
|
|
673
|
+
"$type": "color",
|
|
674
|
+
"$description": "Default text on background"
|
|
675
|
+
},
|
|
676
|
+
"card": {
|
|
677
|
+
"$value": "oklch(1 0 0)",
|
|
678
|
+
"$type": "color",
|
|
679
|
+
"$description": "Surface for cards"
|
|
680
|
+
},
|
|
681
|
+
"card-foreground": {
|
|
682
|
+
"$value": "oklch(0.1450 0 0)",
|
|
683
|
+
"$type": "color"
|
|
684
|
+
},
|
|
685
|
+
"popover": {
|
|
686
|
+
"$value": "oklch(1 0 0)",
|
|
687
|
+
"$type": "color",
|
|
688
|
+
"$description": "Popover/dropdown surface"
|
|
689
|
+
},
|
|
690
|
+
"popover-foreground": {
|
|
691
|
+
"$value": "oklch(0.1450 0 0)",
|
|
692
|
+
"$type": "color"
|
|
693
|
+
},
|
|
694
|
+
"primary": {
|
|
695
|
+
"$value": "oklch(0.2050 0 0)",
|
|
696
|
+
"$type": "color",
|
|
697
|
+
"$description": "Primary brand. Override per client. Default = shadcn near-black."
|
|
698
|
+
},
|
|
699
|
+
"primary-foreground": {
|
|
700
|
+
"$value": "oklch(0.9850 0 0)",
|
|
701
|
+
"$type": "color",
|
|
702
|
+
"$description": "Text on primary. Auto-derived from luminance for custom colors."
|
|
703
|
+
},
|
|
704
|
+
"secondary": {
|
|
705
|
+
"$value": "oklch(0.9700 0 0)",
|
|
706
|
+
"$type": "color"
|
|
707
|
+
},
|
|
708
|
+
"secondary-foreground": {
|
|
709
|
+
"$value": "oklch(0.2050 0 0)",
|
|
710
|
+
"$type": "color"
|
|
711
|
+
},
|
|
712
|
+
"muted": {
|
|
713
|
+
"$value": "oklch(0.9700 0 0)",
|
|
714
|
+
"$type": "color",
|
|
715
|
+
"$description": "Subtle background for de-emphasized surfaces"
|
|
716
|
+
},
|
|
717
|
+
"muted-foreground": {
|
|
718
|
+
"$value": "oklch(0.4400 0 0)",
|
|
719
|
+
"$type": "color",
|
|
720
|
+
"$description": "Captions, labels, secondary text"
|
|
721
|
+
},
|
|
722
|
+
"accent": {
|
|
723
|
+
"$value": "oklch(0.9700 0 0)",
|
|
724
|
+
"$type": "color"
|
|
725
|
+
},
|
|
726
|
+
"accent-foreground": {
|
|
727
|
+
"$value": "oklch(0.2050 0 0)",
|
|
728
|
+
"$type": "color"
|
|
729
|
+
},
|
|
730
|
+
"destructive": {
|
|
731
|
+
"$value": "oklch(0.5770 0.2450 27.3250)",
|
|
732
|
+
"$type": "color",
|
|
733
|
+
"$description": "Errors, delete, dangerous actions"
|
|
734
|
+
},
|
|
735
|
+
"destructive-foreground": {
|
|
736
|
+
"$value": "oklch(1 0 0)",
|
|
737
|
+
"$type": "color"
|
|
738
|
+
},
|
|
739
|
+
"border": {
|
|
740
|
+
"$value": "oklch(0.9220 0 0)",
|
|
741
|
+
"$type": "color"
|
|
742
|
+
},
|
|
743
|
+
"input": {
|
|
744
|
+
"$value": "oklch(0.9220 0 0)",
|
|
745
|
+
"$type": "color"
|
|
746
|
+
},
|
|
747
|
+
"ring": {
|
|
748
|
+
"$value": "oklch(0.7080 0 0)",
|
|
749
|
+
"$type": "color",
|
|
750
|
+
"$description": "Focus ring. Tracks --primary when brand color changes."
|
|
751
|
+
},
|
|
752
|
+
"chart-1": {
|
|
753
|
+
"$value": "oklch(0.8100 0.1000 252)",
|
|
754
|
+
"$type": "color"
|
|
755
|
+
},
|
|
756
|
+
"chart-2": {
|
|
757
|
+
"$value": "oklch(0.6200 0.1900 260)",
|
|
758
|
+
"$type": "color"
|
|
759
|
+
},
|
|
760
|
+
"chart-3": {
|
|
761
|
+
"$value": "oklch(0.5500 0.2200 263)",
|
|
762
|
+
"$type": "color"
|
|
763
|
+
},
|
|
764
|
+
"chart-4": {
|
|
765
|
+
"$value": "oklch(0.4900 0.2200 264)",
|
|
766
|
+
"$type": "color"
|
|
767
|
+
},
|
|
768
|
+
"chart-5": {
|
|
769
|
+
"$value": "oklch(0.4200 0.1800 266)",
|
|
770
|
+
"$type": "color"
|
|
771
|
+
},
|
|
772
|
+
"sidebar": {
|
|
773
|
+
"$value": "oklch(0.9850 0 0)",
|
|
774
|
+
"$type": "color"
|
|
775
|
+
},
|
|
776
|
+
"sidebar-foreground": {
|
|
777
|
+
"$value": "oklch(0.1450 0 0)",
|
|
778
|
+
"$type": "color"
|
|
779
|
+
},
|
|
780
|
+
"sidebar-primary": {
|
|
781
|
+
"$value": "oklch(0.2050 0 0)",
|
|
782
|
+
"$type": "color"
|
|
783
|
+
},
|
|
784
|
+
"sidebar-primary-foreground": {
|
|
785
|
+
"$value": "oklch(0.9850 0 0)",
|
|
786
|
+
"$type": "color"
|
|
787
|
+
},
|
|
788
|
+
"sidebar-accent": {
|
|
789
|
+
"$value": "oklch(0.9700 0 0)",
|
|
790
|
+
"$type": "color"
|
|
791
|
+
},
|
|
792
|
+
"sidebar-accent-foreground": {
|
|
793
|
+
"$value": "oklch(0.2050 0 0)",
|
|
794
|
+
"$type": "color"
|
|
795
|
+
},
|
|
796
|
+
"sidebar-border": {
|
|
797
|
+
"$value": "oklch(0.9220 0 0)",
|
|
798
|
+
"$type": "color"
|
|
799
|
+
},
|
|
800
|
+
"sidebar-ring": {
|
|
801
|
+
"$value": "oklch(0.7080 0 0)",
|
|
802
|
+
"$type": "color"
|
|
803
|
+
},
|
|
804
|
+
"semantic-text-primary": {
|
|
805
|
+
"$value": "var(--foreground)",
|
|
806
|
+
"$type": "color"
|
|
807
|
+
},
|
|
808
|
+
"semantic-text-secondary": {
|
|
809
|
+
"$value": "var(--muted-foreground)",
|
|
810
|
+
"$type": "color"
|
|
811
|
+
},
|
|
812
|
+
"semantic-text-on-primary": {
|
|
813
|
+
"$value": "var(--primary-foreground)",
|
|
814
|
+
"$type": "color"
|
|
815
|
+
},
|
|
816
|
+
"semantic-surface-page": {
|
|
817
|
+
"$value": "var(--background)",
|
|
818
|
+
"$type": "color"
|
|
819
|
+
},
|
|
820
|
+
"semantic-surface-card": {
|
|
821
|
+
"$value": "var(--card)",
|
|
822
|
+
"$type": "color"
|
|
823
|
+
},
|
|
824
|
+
"semantic-surface-overlay": {
|
|
825
|
+
"$value": "oklch(0.145 0 0 / 0.8)",
|
|
826
|
+
"$type": "color"
|
|
827
|
+
},
|
|
828
|
+
"semantic-border-default": {
|
|
829
|
+
"$value": "var(--border)",
|
|
830
|
+
"$type": "color"
|
|
831
|
+
},
|
|
832
|
+
"semantic-border-input": {
|
|
833
|
+
"$value": "var(--input)",
|
|
834
|
+
"$type": "color"
|
|
835
|
+
},
|
|
836
|
+
"semantic-border-focus": {
|
|
837
|
+
"$value": "var(--ring)",
|
|
838
|
+
"$type": "color"
|
|
839
|
+
},
|
|
840
|
+
"semantic-action-primary": {
|
|
841
|
+
"$value": "var(--primary)",
|
|
842
|
+
"$type": "color"
|
|
843
|
+
},
|
|
844
|
+
"semantic-action-primary-hover": {
|
|
845
|
+
"$value": "oklch(from var(--primary) calc(l + 0.1) c h)",
|
|
846
|
+
"$type": "color"
|
|
847
|
+
},
|
|
848
|
+
"semantic-action-destructive": {
|
|
849
|
+
"$value": "var(--destructive)",
|
|
850
|
+
"$type": "color"
|
|
851
|
+
}
|
|
852
|
+
},
|
|
853
|
+
"dark": {
|
|
854
|
+
"background": {
|
|
855
|
+
"$value": "oklch(0.1450 0 0)",
|
|
856
|
+
"$type": "color"
|
|
857
|
+
},
|
|
858
|
+
"foreground": {
|
|
859
|
+
"$value": "oklch(0.9850 0 0)",
|
|
860
|
+
"$type": "color"
|
|
861
|
+
},
|
|
862
|
+
"card": {
|
|
863
|
+
"$value": "oklch(0.2050 0 0)",
|
|
864
|
+
"$type": "color"
|
|
865
|
+
},
|
|
866
|
+
"card-foreground": {
|
|
867
|
+
"$value": "oklch(0.9850 0 0)",
|
|
868
|
+
"$type": "color"
|
|
869
|
+
},
|
|
870
|
+
"popover": {
|
|
871
|
+
"$value": "oklch(0.2690 0 0)",
|
|
872
|
+
"$type": "color"
|
|
873
|
+
},
|
|
874
|
+
"popover-foreground": {
|
|
875
|
+
"$value": "oklch(0.9850 0 0)",
|
|
876
|
+
"$type": "color"
|
|
877
|
+
},
|
|
878
|
+
"primary": {
|
|
879
|
+
"$value": "oklch(0.9220 0 0)",
|
|
880
|
+
"$type": "color"
|
|
881
|
+
},
|
|
882
|
+
"primary-foreground": {
|
|
883
|
+
"$value": "oklch(0.2050 0 0)",
|
|
884
|
+
"$type": "color"
|
|
885
|
+
},
|
|
886
|
+
"secondary": {
|
|
887
|
+
"$value": "oklch(0.2690 0 0)",
|
|
888
|
+
"$type": "color"
|
|
889
|
+
},
|
|
890
|
+
"secondary-foreground": {
|
|
891
|
+
"$value": "oklch(0.9850 0 0)",
|
|
892
|
+
"$type": "color"
|
|
893
|
+
},
|
|
894
|
+
"muted": {
|
|
895
|
+
"$value": "oklch(0.2690 0 0)",
|
|
896
|
+
"$type": "color"
|
|
897
|
+
},
|
|
898
|
+
"muted-foreground": {
|
|
899
|
+
"$value": "oklch(0.7080 0 0)",
|
|
900
|
+
"$type": "color"
|
|
901
|
+
},
|
|
902
|
+
"accent": {
|
|
903
|
+
"$value": "oklch(0.3710 0 0)",
|
|
904
|
+
"$type": "color"
|
|
905
|
+
},
|
|
906
|
+
"accent-foreground": {
|
|
907
|
+
"$value": "oklch(0.9850 0 0)",
|
|
908
|
+
"$type": "color"
|
|
909
|
+
},
|
|
910
|
+
"destructive": {
|
|
911
|
+
"$value": "oklch(0.7040 0.1910 22.2160)",
|
|
912
|
+
"$type": "color"
|
|
913
|
+
},
|
|
914
|
+
"destructive-foreground": {
|
|
915
|
+
"$value": "oklch(0.9850 0 0)",
|
|
916
|
+
"$type": "color"
|
|
917
|
+
},
|
|
918
|
+
"border": {
|
|
919
|
+
"$value": "oklch(0.2750 0 0)",
|
|
920
|
+
"$type": "color"
|
|
921
|
+
},
|
|
922
|
+
"input": {
|
|
923
|
+
"$value": "oklch(0.3250 0 0)",
|
|
924
|
+
"$type": "color"
|
|
925
|
+
},
|
|
926
|
+
"ring": {
|
|
927
|
+
"$value": "oklch(0.5560 0 0)",
|
|
928
|
+
"$type": "color"
|
|
929
|
+
},
|
|
930
|
+
"chart-1": {
|
|
931
|
+
"$value": "oklch(0.8100 0.1000 252)",
|
|
932
|
+
"$type": "color"
|
|
933
|
+
},
|
|
934
|
+
"chart-2": {
|
|
935
|
+
"$value": "oklch(0.6200 0.1900 260)",
|
|
936
|
+
"$type": "color"
|
|
937
|
+
},
|
|
938
|
+
"chart-3": {
|
|
939
|
+
"$value": "oklch(0.5500 0.2200 263)",
|
|
940
|
+
"$type": "color"
|
|
941
|
+
},
|
|
942
|
+
"chart-4": {
|
|
943
|
+
"$value": "oklch(0.4900 0.2200 264)",
|
|
944
|
+
"$type": "color"
|
|
945
|
+
},
|
|
946
|
+
"chart-5": {
|
|
947
|
+
"$value": "oklch(0.4200 0.1800 266)",
|
|
948
|
+
"$type": "color"
|
|
949
|
+
},
|
|
950
|
+
"sidebar": {
|
|
951
|
+
"$value": "oklch(0.2050 0 0)",
|
|
952
|
+
"$type": "color"
|
|
953
|
+
},
|
|
954
|
+
"sidebar-foreground": {
|
|
955
|
+
"$value": "oklch(0.9850 0 0)",
|
|
956
|
+
"$type": "color"
|
|
957
|
+
},
|
|
958
|
+
"sidebar-primary": {
|
|
959
|
+
"$value": "oklch(0.4880 0.2430 264.3760)",
|
|
960
|
+
"$type": "color"
|
|
961
|
+
},
|
|
962
|
+
"sidebar-primary-foreground": {
|
|
963
|
+
"$value": "oklch(0.9850 0 0)",
|
|
964
|
+
"$type": "color"
|
|
965
|
+
},
|
|
966
|
+
"sidebar-accent": {
|
|
967
|
+
"$value": "oklch(0.2690 0 0)",
|
|
968
|
+
"$type": "color"
|
|
969
|
+
},
|
|
970
|
+
"sidebar-accent-foreground": {
|
|
971
|
+
"$value": "oklch(0.9850 0 0)",
|
|
972
|
+
"$type": "color"
|
|
973
|
+
},
|
|
974
|
+
"sidebar-border": {
|
|
975
|
+
"$value": "oklch(0.2750 0 0)",
|
|
976
|
+
"$type": "color"
|
|
977
|
+
},
|
|
978
|
+
"sidebar-ring": {
|
|
979
|
+
"$value": "oklch(0.4390 0 0)",
|
|
980
|
+
"$type": "color"
|
|
981
|
+
}
|
|
982
|
+
}
|
|
983
|
+
}
|
|
984
|
+
}
|