@offlinemediainc/offline-ui 0.1.4 → 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/dist/USAGE.md +239 -0
- package/dist/chunk-4XVGVUB3.js +1490 -0
- package/dist/chunk-4XVGVUB3.js.map +1 -0
- package/dist/chunk-TVAKDV26.cjs +1514 -0
- package/dist/chunk-TVAKDV26.cjs.map +1 -0
- package/dist/design-system/index.cjs +88 -0
- package/dist/design-system/index.cjs.map +1 -0
- package/dist/design-system/index.d.cts +2109 -0
- package/dist/design-system/index.d.ts +2109 -0
- package/dist/design-system/index.js +3 -0
- package/dist/design-system/index.js.map +1 -0
- package/dist/design-system.json +1488 -0
- package/dist/index.cjs +355 -266
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +20 -1
- package/dist/index.d.ts +20 -1
- package/dist/index.js +114 -33
- package/dist/index.js.map +1 -1
- package/package.json +16 -3
|
@@ -0,0 +1,1488 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://offlinemediainc.github.io/offline-ui/design-system.schema.json",
|
|
3
|
+
"meta": {
|
|
4
|
+
"name": "@offlinemediainc/offline-ui",
|
|
5
|
+
"version": "0.2.1",
|
|
6
|
+
"generatedAt": "2026-01-22T13:58:24.489Z",
|
|
7
|
+
"description": "Offline Media Design System - LLM-friendly design decisions and patterns"
|
|
8
|
+
},
|
|
9
|
+
"quickReference": {
|
|
10
|
+
"colors": {
|
|
11
|
+
"primary": "#191919 (gray-900) - buttons, text, UI elements",
|
|
12
|
+
"accent": "#de8e0f (yellow-400) - ACCENT ONLY, never buttons",
|
|
13
|
+
"link": "#004fff (blue-400) - clickable text only",
|
|
14
|
+
"success": "#099250 (chart-3) - positive feedback",
|
|
15
|
+
"error": "#d31a0c (chart-5) - errors, destructive"
|
|
16
|
+
},
|
|
17
|
+
"fonts": {
|
|
18
|
+
"display": "Cabinet Grotesk - hero headlines only",
|
|
19
|
+
"body": "Satoshi - everything else",
|
|
20
|
+
"mono": "DM Mono - stats and numbers"
|
|
21
|
+
},
|
|
22
|
+
"shadows": {
|
|
23
|
+
"card": "shadow-card - default for containers",
|
|
24
|
+
"floating": "shadow-tag - floating badges",
|
|
25
|
+
"modal": "shadow-elevated - dialogs, popovers"
|
|
26
|
+
},
|
|
27
|
+
"components": {
|
|
28
|
+
"formModal": "Dialog",
|
|
29
|
+
"destructiveConfirm": "AlertDialog",
|
|
30
|
+
"sidePanel": "Sheet side=right",
|
|
31
|
+
"listItem": "Item",
|
|
32
|
+
"toast": "toast.success / toast.error"
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"semantics": {
|
|
36
|
+
"colors": {
|
|
37
|
+
"brand": {
|
|
38
|
+
"primary": "yellow-400",
|
|
39
|
+
"interactive": "blue-400"
|
|
40
|
+
},
|
|
41
|
+
"text": {
|
|
42
|
+
"primary": "gray-900",
|
|
43
|
+
"secondary": "gray-600",
|
|
44
|
+
"muted": "gray-500",
|
|
45
|
+
"onDark": "white",
|
|
46
|
+
"link": "blue-400",
|
|
47
|
+
"positive": "semantic-success500",
|
|
48
|
+
"negative": "red-400"
|
|
49
|
+
},
|
|
50
|
+
"surface": {
|
|
51
|
+
"default": "white",
|
|
52
|
+
"muted": "gray-50",
|
|
53
|
+
"elevated": "white + shadow-elevated"
|
|
54
|
+
},
|
|
55
|
+
"border": {
|
|
56
|
+
"default": "gray-200",
|
|
57
|
+
"strong": "gray-300",
|
|
58
|
+
"interactive": "yellow-400",
|
|
59
|
+
"focus": "gray-900"
|
|
60
|
+
},
|
|
61
|
+
"feedback": {
|
|
62
|
+
"positive": "chart-3",
|
|
63
|
+
"negative": "chart-5",
|
|
64
|
+
"warning": "yellow-400",
|
|
65
|
+
"neutral": "chart-4"
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
"colorHexValues": {
|
|
69
|
+
"yellow-25": "#fff2d8",
|
|
70
|
+
"yellow-50": "#ffe9bd",
|
|
71
|
+
"yellow-100": "#ffd386",
|
|
72
|
+
"yellow-200": "#ffbd54",
|
|
73
|
+
"yellow-300": "#f0a52c",
|
|
74
|
+
"yellow-400": "#de8e0f",
|
|
75
|
+
"yellow-500": "#c57900",
|
|
76
|
+
"yellow-600": "#a76700",
|
|
77
|
+
"yellow-700": "#835100",
|
|
78
|
+
"yellow-800": "#5c3900",
|
|
79
|
+
"yellow-900": "#331f00",
|
|
80
|
+
"blue-25": "#d8e7ff",
|
|
81
|
+
"blue-50": "#bed6ff",
|
|
82
|
+
"blue-100": "#85afff",
|
|
83
|
+
"blue-200": "#508bff",
|
|
84
|
+
"blue-300": "#236aff",
|
|
85
|
+
"blue-400": "#004fff",
|
|
86
|
+
"blue-500": "#0046e0",
|
|
87
|
+
"blue-600": "#003bbb",
|
|
88
|
+
"blue-700": "#002e91",
|
|
89
|
+
"blue-800": "#001f63",
|
|
90
|
+
"blue-900": "#001033",
|
|
91
|
+
"gray-25": "#f2f2f2",
|
|
92
|
+
"gray-50": "#ececec",
|
|
93
|
+
"gray-100": "#dfdfdf",
|
|
94
|
+
"gray-200": "#c6c6c6",
|
|
95
|
+
"gray-300": "#aeaeae",
|
|
96
|
+
"gray-400": "#959595",
|
|
97
|
+
"gray-500": "#7c7c7c",
|
|
98
|
+
"gray-600": "#636363",
|
|
99
|
+
"gray-700": "#4a4a4a",
|
|
100
|
+
"gray-800": "#323232",
|
|
101
|
+
"gray-900": "#191919",
|
|
102
|
+
"red-400": "#d31a0c",
|
|
103
|
+
"semantic-success500": "#099250",
|
|
104
|
+
"chart-1": "#de8e0f",
|
|
105
|
+
"chart-2": "#004fff",
|
|
106
|
+
"chart-3": "#099250",
|
|
107
|
+
"chart-4": "#636363",
|
|
108
|
+
"chart-5": "#d31a0c",
|
|
109
|
+
"chart-6": "#a76700",
|
|
110
|
+
"chart-7": "#003bbb",
|
|
111
|
+
"chart-8": "#959595"
|
|
112
|
+
},
|
|
113
|
+
"typography": {
|
|
114
|
+
"pageTitle": "display-small",
|
|
115
|
+
"sectionHeading": "headline-medium",
|
|
116
|
+
"cardTitle": "headline-small",
|
|
117
|
+
"statValueLarge": "display-medium",
|
|
118
|
+
"statValueSmall": "display-small",
|
|
119
|
+
"statLabel": "body-small",
|
|
120
|
+
"bodyDefault": "body-medium",
|
|
121
|
+
"bodySecondary": "body-small",
|
|
122
|
+
"formLabel": "label-medium",
|
|
123
|
+
"formHelper": "body-small text-muted",
|
|
124
|
+
"formError": "body-small text-negative",
|
|
125
|
+
"buttonText": "label-medium",
|
|
126
|
+
"navItem": "body-medium",
|
|
127
|
+
"badgeText": "label-small",
|
|
128
|
+
"tableHeader": "label-medium",
|
|
129
|
+
"tableCell": "body-medium",
|
|
130
|
+
"timestamp": "body-small text-muted",
|
|
131
|
+
"emptyStateTitle": "headline-small",
|
|
132
|
+
"emptyStateDescription": "body-medium text-muted",
|
|
133
|
+
"dialogTitle": "headline-medium",
|
|
134
|
+
"dialogDescription": "body-medium text-muted",
|
|
135
|
+
"sidebarLabel": "nav-label",
|
|
136
|
+
"sidebarItem": "body-medium",
|
|
137
|
+
"breadcrumbItem": "body-small",
|
|
138
|
+
"breadcrumbCurrent": "body-small text-muted"
|
|
139
|
+
},
|
|
140
|
+
"fontFamilies": {
|
|
141
|
+
"display": "var(--font-cabinet-grotesk), var(--font-satoshi), sans-serif",
|
|
142
|
+
"body": "var(--font-satoshi), sans-serif",
|
|
143
|
+
"mono": "var(--font-dm-mono), 'DM Mono', monospace"
|
|
144
|
+
},
|
|
145
|
+
"typographyScale": {
|
|
146
|
+
"display-large": {
|
|
147
|
+
"size": "36px",
|
|
148
|
+
"lineHeight": "100%",
|
|
149
|
+
"weight": 800,
|
|
150
|
+
"font": "Cabinet Grotesk"
|
|
151
|
+
},
|
|
152
|
+
"display-medium": {
|
|
153
|
+
"size": "32px",
|
|
154
|
+
"lineHeight": "100%",
|
|
155
|
+
"weight": 800,
|
|
156
|
+
"font": "Cabinet Grotesk"
|
|
157
|
+
},
|
|
158
|
+
"display-small": {
|
|
159
|
+
"size": "29px",
|
|
160
|
+
"lineHeight": "100%",
|
|
161
|
+
"weight": 800,
|
|
162
|
+
"font": "Cabinet Grotesk"
|
|
163
|
+
},
|
|
164
|
+
"headline-large": {
|
|
165
|
+
"size": "26px",
|
|
166
|
+
"lineHeight": "32px",
|
|
167
|
+
"weight": 700,
|
|
168
|
+
"font": "Satoshi"
|
|
169
|
+
},
|
|
170
|
+
"headline-medium": {
|
|
171
|
+
"size": "23px",
|
|
172
|
+
"lineHeight": "28px",
|
|
173
|
+
"weight": 700,
|
|
174
|
+
"font": "Satoshi"
|
|
175
|
+
},
|
|
176
|
+
"headline-small": {
|
|
177
|
+
"size": "20px",
|
|
178
|
+
"lineHeight": "24px",
|
|
179
|
+
"weight": 700,
|
|
180
|
+
"font": "Satoshi"
|
|
181
|
+
},
|
|
182
|
+
"title-large": {
|
|
183
|
+
"size": "18px",
|
|
184
|
+
"lineHeight": "22px",
|
|
185
|
+
"weight": 700,
|
|
186
|
+
"font": "Satoshi"
|
|
187
|
+
},
|
|
188
|
+
"title-medium": {
|
|
189
|
+
"size": "16px",
|
|
190
|
+
"lineHeight": "20px",
|
|
191
|
+
"weight": 700,
|
|
192
|
+
"font": "Satoshi"
|
|
193
|
+
},
|
|
194
|
+
"title-small": {
|
|
195
|
+
"size": "14px",
|
|
196
|
+
"lineHeight": "18px",
|
|
197
|
+
"weight": 700,
|
|
198
|
+
"font": "Satoshi"
|
|
199
|
+
},
|
|
200
|
+
"body-large": {
|
|
201
|
+
"size": "16px",
|
|
202
|
+
"lineHeight": "24px",
|
|
203
|
+
"weight": 500,
|
|
204
|
+
"font": "Satoshi"
|
|
205
|
+
},
|
|
206
|
+
"body-medium": {
|
|
207
|
+
"size": "14px",
|
|
208
|
+
"lineHeight": "20px",
|
|
209
|
+
"weight": 500,
|
|
210
|
+
"font": "Satoshi"
|
|
211
|
+
},
|
|
212
|
+
"body-small": {
|
|
213
|
+
"size": "12px",
|
|
214
|
+
"lineHeight": "16px",
|
|
215
|
+
"weight": 500,
|
|
216
|
+
"font": "Satoshi"
|
|
217
|
+
},
|
|
218
|
+
"body-x-small": {
|
|
219
|
+
"size": "10px",
|
|
220
|
+
"lineHeight": "14px",
|
|
221
|
+
"weight": 500,
|
|
222
|
+
"font": "Satoshi"
|
|
223
|
+
},
|
|
224
|
+
"label-large": {
|
|
225
|
+
"size": "14px",
|
|
226
|
+
"lineHeight": "18px",
|
|
227
|
+
"weight": 700,
|
|
228
|
+
"font": "Satoshi"
|
|
229
|
+
},
|
|
230
|
+
"label-medium": {
|
|
231
|
+
"size": "12px",
|
|
232
|
+
"lineHeight": "16px",
|
|
233
|
+
"weight": 700,
|
|
234
|
+
"font": "Satoshi"
|
|
235
|
+
},
|
|
236
|
+
"label-small": {
|
|
237
|
+
"size": "10px",
|
|
238
|
+
"lineHeight": "14px",
|
|
239
|
+
"weight": 700,
|
|
240
|
+
"font": "Satoshi"
|
|
241
|
+
},
|
|
242
|
+
"stat-mono": {
|
|
243
|
+
"weight": 500,
|
|
244
|
+
"letterSpacing": "0.04em",
|
|
245
|
+
"font": "DM Mono"
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
},
|
|
249
|
+
"components": {
|
|
250
|
+
"decisions": {
|
|
251
|
+
"lists": {
|
|
252
|
+
"clickableRow": "Item",
|
|
253
|
+
"dataTable": "Table",
|
|
254
|
+
"cardGrid": "Card in grid",
|
|
255
|
+
"simpleList": "ul with body-medium",
|
|
256
|
+
"descriptionList": "dl with label-medium dt and body-medium dd"
|
|
257
|
+
},
|
|
258
|
+
"feedback": {
|
|
259
|
+
"actionSuccess": "toast.success",
|
|
260
|
+
"actionError": "toast.error",
|
|
261
|
+
"inlineWarning": "Alert variant=warning",
|
|
262
|
+
"inlineError": "Alert variant=destructive",
|
|
263
|
+
"fieldError": "body-small text-negative below input",
|
|
264
|
+
"inlineInfo": "Alert variant=default"
|
|
265
|
+
},
|
|
266
|
+
"modals": {
|
|
267
|
+
"formEntry": "Dialog",
|
|
268
|
+
"confirmDestructive": "AlertDialog",
|
|
269
|
+
"sidePanel": "Sheet side=right",
|
|
270
|
+
"mobileNav": "Sheet side=left",
|
|
271
|
+
"mobileActions": "Sheet side=bottom h-auto max-h-[80vh]",
|
|
272
|
+
"preview": "Dialog or Sheet"
|
|
273
|
+
},
|
|
274
|
+
"navigation": {
|
|
275
|
+
"primaryNav": "Sidebar",
|
|
276
|
+
"pageTabs": "Tabs",
|
|
277
|
+
"breadcrumbs": "Breadcrumb",
|
|
278
|
+
"sectionHeader": "Breadcrumb + headline",
|
|
279
|
+
"dropdownNav": "DropdownMenu"
|
|
280
|
+
},
|
|
281
|
+
"selection": {
|
|
282
|
+
"singleFromFew": "radio group",
|
|
283
|
+
"singleFromMany": "Select",
|
|
284
|
+
"multiple": "Checkbox group",
|
|
285
|
+
"toggle": "single Checkbox",
|
|
286
|
+
"segmented": "Tabs variant=pill"
|
|
287
|
+
},
|
|
288
|
+
"data": {
|
|
289
|
+
"status": "Badge",
|
|
290
|
+
"progress": "Progress",
|
|
291
|
+
"avatar": "Avatar",
|
|
292
|
+
"chart": "Chart (recharts)",
|
|
293
|
+
"skeleton": "Skeleton"
|
|
294
|
+
},
|
|
295
|
+
"forms": {
|
|
296
|
+
"textInput": "Input",
|
|
297
|
+
"textArea": "Textarea",
|
|
298
|
+
"typedInput": "Input type=email|password|number",
|
|
299
|
+
"otpInput": "InputOTP",
|
|
300
|
+
"label": "Label htmlFor={id}",
|
|
301
|
+
"checkbox": "Checkbox + Label"
|
|
302
|
+
},
|
|
303
|
+
"layout": {
|
|
304
|
+
"card": "Card",
|
|
305
|
+
"accordion": "Accordion",
|
|
306
|
+
"collapsible": "Collapsible",
|
|
307
|
+
"separator": "Separator",
|
|
308
|
+
"tooltip": "Tooltip"
|
|
309
|
+
}
|
|
310
|
+
},
|
|
311
|
+
"registry": {
|
|
312
|
+
"Card": {
|
|
313
|
+
"name": "Card",
|
|
314
|
+
"status": "approved",
|
|
315
|
+
"description": "Container for grouped content with optional header/footer",
|
|
316
|
+
"imports": [
|
|
317
|
+
"Card",
|
|
318
|
+
"CardHeader",
|
|
319
|
+
"CardTitle",
|
|
320
|
+
"CardDescription",
|
|
321
|
+
"CardContent",
|
|
322
|
+
"CardFooter"
|
|
323
|
+
],
|
|
324
|
+
"composition": [
|
|
325
|
+
"CardHeader",
|
|
326
|
+
"CardTitle",
|
|
327
|
+
"CardDescription",
|
|
328
|
+
"CardContent",
|
|
329
|
+
"CardFooter"
|
|
330
|
+
]
|
|
331
|
+
},
|
|
332
|
+
"Item": {
|
|
333
|
+
"name": "Item",
|
|
334
|
+
"status": "approved",
|
|
335
|
+
"description": "Flexible list item with media, content, and actions slots",
|
|
336
|
+
"imports": [
|
|
337
|
+
"Item",
|
|
338
|
+
"ItemMedia",
|
|
339
|
+
"ItemContent",
|
|
340
|
+
"ItemTitle",
|
|
341
|
+
"ItemDescription",
|
|
342
|
+
"ItemActions"
|
|
343
|
+
],
|
|
344
|
+
"variants": {
|
|
345
|
+
"variant": [
|
|
346
|
+
"default",
|
|
347
|
+
"outline",
|
|
348
|
+
"muted"
|
|
349
|
+
]
|
|
350
|
+
},
|
|
351
|
+
"composition": [
|
|
352
|
+
"ItemMedia",
|
|
353
|
+
"ItemContent",
|
|
354
|
+
"ItemTitle",
|
|
355
|
+
"ItemDescription",
|
|
356
|
+
"ItemActions"
|
|
357
|
+
]
|
|
358
|
+
},
|
|
359
|
+
"Separator": {
|
|
360
|
+
"name": "Separator",
|
|
361
|
+
"status": "approved",
|
|
362
|
+
"description": "Visual divider between sections",
|
|
363
|
+
"imports": [
|
|
364
|
+
"Separator"
|
|
365
|
+
]
|
|
366
|
+
},
|
|
367
|
+
"Sidebar": {
|
|
368
|
+
"name": "Sidebar",
|
|
369
|
+
"status": "approved",
|
|
370
|
+
"description": "Primary navigation sidebar with collapsible state",
|
|
371
|
+
"imports": [
|
|
372
|
+
"Sidebar",
|
|
373
|
+
"SidebarContent",
|
|
374
|
+
"SidebarGroup",
|
|
375
|
+
"SidebarGroupLabel",
|
|
376
|
+
"SidebarGroupContent",
|
|
377
|
+
"SidebarMenu",
|
|
378
|
+
"SidebarMenuItem",
|
|
379
|
+
"SidebarMenuButton",
|
|
380
|
+
"SidebarMenuButtonLink",
|
|
381
|
+
"SidebarHeader",
|
|
382
|
+
"SidebarFooter",
|
|
383
|
+
"SidebarTrigger",
|
|
384
|
+
"SidebarProvider"
|
|
385
|
+
],
|
|
386
|
+
"composition": [
|
|
387
|
+
"SidebarHeader",
|
|
388
|
+
"SidebarContent",
|
|
389
|
+
"SidebarGroup",
|
|
390
|
+
"SidebarFooter"
|
|
391
|
+
]
|
|
392
|
+
},
|
|
393
|
+
"OfflineSidebar": {
|
|
394
|
+
"name": "OfflineSidebar",
|
|
395
|
+
"status": "approved",
|
|
396
|
+
"description": "Pre-configured sidebar with Offline branding (requires Next.js)",
|
|
397
|
+
"imports": [
|
|
398
|
+
"OfflineSidebar",
|
|
399
|
+
"OfflineSidebarNav",
|
|
400
|
+
"OfflineSidebarFooter"
|
|
401
|
+
]
|
|
402
|
+
},
|
|
403
|
+
"Breadcrumb": {
|
|
404
|
+
"name": "Breadcrumb",
|
|
405
|
+
"status": "approved",
|
|
406
|
+
"description": "Location breadcrumb trail",
|
|
407
|
+
"imports": [
|
|
408
|
+
"Breadcrumb",
|
|
409
|
+
"BreadcrumbList",
|
|
410
|
+
"BreadcrumbItem",
|
|
411
|
+
"BreadcrumbLink",
|
|
412
|
+
"BreadcrumbPage",
|
|
413
|
+
"BreadcrumbSeparator"
|
|
414
|
+
],
|
|
415
|
+
"composition": [
|
|
416
|
+
"BreadcrumbList",
|
|
417
|
+
"BreadcrumbItem",
|
|
418
|
+
"BreadcrumbLink",
|
|
419
|
+
"BreadcrumbPage"
|
|
420
|
+
]
|
|
421
|
+
},
|
|
422
|
+
"Tabs": {
|
|
423
|
+
"name": "Tabs",
|
|
424
|
+
"status": "approved",
|
|
425
|
+
"description": "Tab navigation for switching views",
|
|
426
|
+
"imports": [
|
|
427
|
+
"Tabs",
|
|
428
|
+
"TabsList",
|
|
429
|
+
"TabsTrigger",
|
|
430
|
+
"TabsContent"
|
|
431
|
+
],
|
|
432
|
+
"variants": {
|
|
433
|
+
"style": [
|
|
434
|
+
"default (pill)",
|
|
435
|
+
"line (underline)"
|
|
436
|
+
]
|
|
437
|
+
},
|
|
438
|
+
"composition": [
|
|
439
|
+
"TabsList",
|
|
440
|
+
"TabsTrigger",
|
|
441
|
+
"TabsContent"
|
|
442
|
+
]
|
|
443
|
+
},
|
|
444
|
+
"DropdownMenu": {
|
|
445
|
+
"name": "DropdownMenu",
|
|
446
|
+
"status": "approved",
|
|
447
|
+
"description": "Dropdown menu for actions",
|
|
448
|
+
"imports": [
|
|
449
|
+
"DropdownMenu",
|
|
450
|
+
"DropdownMenuTrigger",
|
|
451
|
+
"DropdownMenuContent",
|
|
452
|
+
"DropdownMenuItem",
|
|
453
|
+
"DropdownMenuSeparator",
|
|
454
|
+
"DropdownMenuLabel"
|
|
455
|
+
],
|
|
456
|
+
"composition": [
|
|
457
|
+
"DropdownMenuTrigger",
|
|
458
|
+
"DropdownMenuContent",
|
|
459
|
+
"DropdownMenuItem"
|
|
460
|
+
]
|
|
461
|
+
},
|
|
462
|
+
"Button": {
|
|
463
|
+
"name": "Button",
|
|
464
|
+
"status": "approved",
|
|
465
|
+
"description": "Primary action trigger. Black (default) is primary color per brand",
|
|
466
|
+
"imports": [
|
|
467
|
+
"Button",
|
|
468
|
+
"buttonVariants"
|
|
469
|
+
],
|
|
470
|
+
"variants": {
|
|
471
|
+
"variant": [
|
|
472
|
+
"default",
|
|
473
|
+
"secondary",
|
|
474
|
+
"outline",
|
|
475
|
+
"ghost",
|
|
476
|
+
"destructive",
|
|
477
|
+
"link"
|
|
478
|
+
],
|
|
479
|
+
"size": [
|
|
480
|
+
"default",
|
|
481
|
+
"sm",
|
|
482
|
+
"lg",
|
|
483
|
+
"icon"
|
|
484
|
+
]
|
|
485
|
+
}
|
|
486
|
+
},
|
|
487
|
+
"Badge": {
|
|
488
|
+
"name": "Badge",
|
|
489
|
+
"status": "approved",
|
|
490
|
+
"description": "Status indicators, tags, labels",
|
|
491
|
+
"imports": [
|
|
492
|
+
"Badge",
|
|
493
|
+
"badgeVariants"
|
|
494
|
+
],
|
|
495
|
+
"variants": {
|
|
496
|
+
"variant": [
|
|
497
|
+
"default",
|
|
498
|
+
"secondary",
|
|
499
|
+
"destructive",
|
|
500
|
+
"success",
|
|
501
|
+
"warning",
|
|
502
|
+
"outline"
|
|
503
|
+
]
|
|
504
|
+
}
|
|
505
|
+
},
|
|
506
|
+
"Input": {
|
|
507
|
+
"name": "Input",
|
|
508
|
+
"status": "approved",
|
|
509
|
+
"description": "Single-line text input",
|
|
510
|
+
"imports": [
|
|
511
|
+
"Input"
|
|
512
|
+
]
|
|
513
|
+
},
|
|
514
|
+
"Label": {
|
|
515
|
+
"name": "Label",
|
|
516
|
+
"status": "approved",
|
|
517
|
+
"description": "Form field label - always use with htmlFor",
|
|
518
|
+
"imports": [
|
|
519
|
+
"Label"
|
|
520
|
+
]
|
|
521
|
+
},
|
|
522
|
+
"Checkbox": {
|
|
523
|
+
"name": "Checkbox",
|
|
524
|
+
"status": "approved",
|
|
525
|
+
"description": "Checkbox for boolean/multi-select",
|
|
526
|
+
"imports": [
|
|
527
|
+
"Checkbox"
|
|
528
|
+
]
|
|
529
|
+
},
|
|
530
|
+
"InputOTP": {
|
|
531
|
+
"name": "InputOTP",
|
|
532
|
+
"status": "approved",
|
|
533
|
+
"description": "OTP/verification code input",
|
|
534
|
+
"imports": [
|
|
535
|
+
"InputOTP",
|
|
536
|
+
"InputOTPGroup",
|
|
537
|
+
"InputOTPSlot",
|
|
538
|
+
"InputOTPSeparator"
|
|
539
|
+
],
|
|
540
|
+
"composition": [
|
|
541
|
+
"InputOTPGroup",
|
|
542
|
+
"InputOTPSlot"
|
|
543
|
+
]
|
|
544
|
+
},
|
|
545
|
+
"Progress": {
|
|
546
|
+
"name": "Progress",
|
|
547
|
+
"status": "approved",
|
|
548
|
+
"description": "Progress bar indicator",
|
|
549
|
+
"imports": [
|
|
550
|
+
"Progress"
|
|
551
|
+
]
|
|
552
|
+
},
|
|
553
|
+
"Dialog": {
|
|
554
|
+
"name": "Dialog",
|
|
555
|
+
"status": "approved",
|
|
556
|
+
"description": "Modal for forms and content. User can dismiss freely",
|
|
557
|
+
"imports": [
|
|
558
|
+
"Dialog",
|
|
559
|
+
"DialogTrigger",
|
|
560
|
+
"DialogContent",
|
|
561
|
+
"DialogHeader",
|
|
562
|
+
"DialogFooter",
|
|
563
|
+
"DialogTitle",
|
|
564
|
+
"DialogDescription",
|
|
565
|
+
"DialogClose"
|
|
566
|
+
],
|
|
567
|
+
"composition": [
|
|
568
|
+
"DialogTrigger",
|
|
569
|
+
"DialogContent",
|
|
570
|
+
"DialogHeader",
|
|
571
|
+
"DialogFooter"
|
|
572
|
+
]
|
|
573
|
+
},
|
|
574
|
+
"AlertDialog": {
|
|
575
|
+
"name": "AlertDialog",
|
|
576
|
+
"status": "approved",
|
|
577
|
+
"description": "Interruption requiring decision. Cannot dismiss by clicking outside",
|
|
578
|
+
"imports": [
|
|
579
|
+
"AlertDialog",
|
|
580
|
+
"AlertDialogTrigger",
|
|
581
|
+
"AlertDialogContent",
|
|
582
|
+
"AlertDialogHeader",
|
|
583
|
+
"AlertDialogFooter",
|
|
584
|
+
"AlertDialogTitle",
|
|
585
|
+
"AlertDialogDescription",
|
|
586
|
+
"AlertDialogAction",
|
|
587
|
+
"AlertDialogCancel"
|
|
588
|
+
],
|
|
589
|
+
"composition": [
|
|
590
|
+
"AlertDialogTrigger",
|
|
591
|
+
"AlertDialogContent",
|
|
592
|
+
"AlertDialogAction",
|
|
593
|
+
"AlertDialogCancel"
|
|
594
|
+
]
|
|
595
|
+
},
|
|
596
|
+
"Sheet": {
|
|
597
|
+
"name": "Sheet",
|
|
598
|
+
"status": "approved",
|
|
599
|
+
"description": "Slide-in panel for secondary content",
|
|
600
|
+
"imports": [
|
|
601
|
+
"Sheet",
|
|
602
|
+
"SheetTrigger",
|
|
603
|
+
"SheetContent",
|
|
604
|
+
"SheetHeader",
|
|
605
|
+
"SheetFooter",
|
|
606
|
+
"SheetTitle",
|
|
607
|
+
"SheetDescription",
|
|
608
|
+
"SheetClose"
|
|
609
|
+
],
|
|
610
|
+
"variants": {
|
|
611
|
+
"side": [
|
|
612
|
+
"right",
|
|
613
|
+
"left",
|
|
614
|
+
"top",
|
|
615
|
+
"bottom"
|
|
616
|
+
]
|
|
617
|
+
},
|
|
618
|
+
"composition": [
|
|
619
|
+
"SheetTrigger",
|
|
620
|
+
"SheetContent",
|
|
621
|
+
"SheetHeader",
|
|
622
|
+
"SheetFooter"
|
|
623
|
+
]
|
|
624
|
+
},
|
|
625
|
+
"Tooltip": {
|
|
626
|
+
"name": "Tooltip",
|
|
627
|
+
"status": "approved",
|
|
628
|
+
"description": "Hover/focus information overlay",
|
|
629
|
+
"imports": [
|
|
630
|
+
"Tooltip",
|
|
631
|
+
"TooltipTrigger",
|
|
632
|
+
"TooltipContent",
|
|
633
|
+
"TooltipProvider"
|
|
634
|
+
],
|
|
635
|
+
"composition": [
|
|
636
|
+
"TooltipTrigger",
|
|
637
|
+
"TooltipContent"
|
|
638
|
+
]
|
|
639
|
+
},
|
|
640
|
+
"Avatar": {
|
|
641
|
+
"name": "Avatar",
|
|
642
|
+
"status": "approved",
|
|
643
|
+
"description": "User/entity avatar with fallback",
|
|
644
|
+
"imports": [
|
|
645
|
+
"Avatar",
|
|
646
|
+
"AvatarImage",
|
|
647
|
+
"AvatarFallback"
|
|
648
|
+
],
|
|
649
|
+
"composition": [
|
|
650
|
+
"AvatarImage",
|
|
651
|
+
"AvatarFallback"
|
|
652
|
+
],
|
|
653
|
+
"sizes": [
|
|
654
|
+
"default",
|
|
655
|
+
"sm",
|
|
656
|
+
"lg"
|
|
657
|
+
]
|
|
658
|
+
},
|
|
659
|
+
"Skeleton": {
|
|
660
|
+
"name": "Skeleton",
|
|
661
|
+
"status": "approved",
|
|
662
|
+
"description": "Loading placeholder matching content shape",
|
|
663
|
+
"imports": [
|
|
664
|
+
"Skeleton"
|
|
665
|
+
]
|
|
666
|
+
},
|
|
667
|
+
"Chart": {
|
|
668
|
+
"name": "Chart",
|
|
669
|
+
"status": "approved",
|
|
670
|
+
"description": "Data visualization wrapper for Recharts",
|
|
671
|
+
"imports": [
|
|
672
|
+
"ChartContainer",
|
|
673
|
+
"ChartTooltip",
|
|
674
|
+
"ChartTooltipContent",
|
|
675
|
+
"ChartLegend",
|
|
676
|
+
"ChartLegendContent"
|
|
677
|
+
]
|
|
678
|
+
},
|
|
679
|
+
"Accordion": {
|
|
680
|
+
"name": "Accordion",
|
|
681
|
+
"status": "approved",
|
|
682
|
+
"description": "Expandable content sections",
|
|
683
|
+
"imports": [
|
|
684
|
+
"Accordion",
|
|
685
|
+
"AccordionItem",
|
|
686
|
+
"AccordionTrigger",
|
|
687
|
+
"AccordionContent"
|
|
688
|
+
],
|
|
689
|
+
"composition": [
|
|
690
|
+
"AccordionItem",
|
|
691
|
+
"AccordionTrigger",
|
|
692
|
+
"AccordionContent"
|
|
693
|
+
]
|
|
694
|
+
},
|
|
695
|
+
"Collapsible": {
|
|
696
|
+
"name": "Collapsible",
|
|
697
|
+
"status": "approved",
|
|
698
|
+
"description": "Single collapsible section",
|
|
699
|
+
"imports": [
|
|
700
|
+
"Collapsible",
|
|
701
|
+
"CollapsibleTrigger",
|
|
702
|
+
"CollapsibleContent"
|
|
703
|
+
],
|
|
704
|
+
"composition": [
|
|
705
|
+
"CollapsibleTrigger",
|
|
706
|
+
"CollapsibleContent"
|
|
707
|
+
]
|
|
708
|
+
},
|
|
709
|
+
"Alert": {
|
|
710
|
+
"name": "Alert",
|
|
711
|
+
"status": "draft",
|
|
712
|
+
"description": "Banner for inline messages - info, warning, error, success",
|
|
713
|
+
"imports": [
|
|
714
|
+
"Alert",
|
|
715
|
+
"AlertTitle",
|
|
716
|
+
"AlertDescription",
|
|
717
|
+
"alertVariants"
|
|
718
|
+
],
|
|
719
|
+
"variants": {
|
|
720
|
+
"variant": [
|
|
721
|
+
"default",
|
|
722
|
+
"destructive",
|
|
723
|
+
"warning",
|
|
724
|
+
"success"
|
|
725
|
+
]
|
|
726
|
+
},
|
|
727
|
+
"composition": [
|
|
728
|
+
"AlertTitle",
|
|
729
|
+
"AlertDescription"
|
|
730
|
+
]
|
|
731
|
+
},
|
|
732
|
+
"Select": {
|
|
733
|
+
"name": "Select",
|
|
734
|
+
"status": "draft",
|
|
735
|
+
"description": "Dropdown select - still being refined",
|
|
736
|
+
"imports": [
|
|
737
|
+
"Select",
|
|
738
|
+
"SelectTrigger",
|
|
739
|
+
"SelectContent",
|
|
740
|
+
"SelectItem",
|
|
741
|
+
"SelectValue",
|
|
742
|
+
"SelectGroup",
|
|
743
|
+
"SelectLabel"
|
|
744
|
+
]
|
|
745
|
+
},
|
|
746
|
+
"Sonner": {
|
|
747
|
+
"name": "Sonner",
|
|
748
|
+
"status": "draft",
|
|
749
|
+
"description": "Toast notifications - integration in progress",
|
|
750
|
+
"imports": [
|
|
751
|
+
"Toaster",
|
|
752
|
+
"toast"
|
|
753
|
+
]
|
|
754
|
+
},
|
|
755
|
+
"Table": {
|
|
756
|
+
"name": "Table",
|
|
757
|
+
"status": "draft",
|
|
758
|
+
"description": "Data table - needs more patterns",
|
|
759
|
+
"imports": [
|
|
760
|
+
"Table",
|
|
761
|
+
"TableHeader",
|
|
762
|
+
"TableBody",
|
|
763
|
+
"TableFooter",
|
|
764
|
+
"TableHead",
|
|
765
|
+
"TableRow",
|
|
766
|
+
"TableCell",
|
|
767
|
+
"TableCaption"
|
|
768
|
+
]
|
|
769
|
+
},
|
|
770
|
+
"Textarea": {
|
|
771
|
+
"name": "Textarea",
|
|
772
|
+
"status": "draft",
|
|
773
|
+
"description": "Multi-line text input - under review",
|
|
774
|
+
"imports": [
|
|
775
|
+
"Textarea"
|
|
776
|
+
]
|
|
777
|
+
}
|
|
778
|
+
},
|
|
779
|
+
"approved": [
|
|
780
|
+
"Card",
|
|
781
|
+
"Item",
|
|
782
|
+
"Separator",
|
|
783
|
+
"Sidebar",
|
|
784
|
+
"OfflineSidebar",
|
|
785
|
+
"Breadcrumb",
|
|
786
|
+
"Tabs",
|
|
787
|
+
"DropdownMenu",
|
|
788
|
+
"Button",
|
|
789
|
+
"Badge",
|
|
790
|
+
"Input",
|
|
791
|
+
"Label",
|
|
792
|
+
"Checkbox",
|
|
793
|
+
"InputOTP",
|
|
794
|
+
"Progress",
|
|
795
|
+
"Dialog",
|
|
796
|
+
"AlertDialog",
|
|
797
|
+
"Sheet",
|
|
798
|
+
"Tooltip",
|
|
799
|
+
"Avatar",
|
|
800
|
+
"Skeleton",
|
|
801
|
+
"Chart",
|
|
802
|
+
"Accordion",
|
|
803
|
+
"Collapsible"
|
|
804
|
+
],
|
|
805
|
+
"draft": [
|
|
806
|
+
"Alert",
|
|
807
|
+
"Select",
|
|
808
|
+
"Sonner",
|
|
809
|
+
"Table",
|
|
810
|
+
"Textarea"
|
|
811
|
+
]
|
|
812
|
+
},
|
|
813
|
+
"patterns": {
|
|
814
|
+
"layout": {
|
|
815
|
+
"page": {
|
|
816
|
+
"maxWidth": "max-w-4xl",
|
|
817
|
+
"maxWidthWide": "max-w-6xl",
|
|
818
|
+
"padding": "px-4 py-6",
|
|
819
|
+
"sectionGap": "space-y-8",
|
|
820
|
+
"wrapper": "mx-auto px-4 py-6"
|
|
821
|
+
},
|
|
822
|
+
"cards": {
|
|
823
|
+
"padding": "p-6",
|
|
824
|
+
"paddingCompact": "p-4",
|
|
825
|
+
"gap": "gap-4",
|
|
826
|
+
"grid2col": "grid grid-cols-1 md:grid-cols-2 gap-4",
|
|
827
|
+
"grid3col": "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",
|
|
828
|
+
"grid4col": "grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4",
|
|
829
|
+
"stack": "flex flex-col gap-4"
|
|
830
|
+
},
|
|
831
|
+
"forms": {
|
|
832
|
+
"fieldGap": "space-y-4",
|
|
833
|
+
"labelGap": "mb-2",
|
|
834
|
+
"helperGap": "mt-1",
|
|
835
|
+
"buttonGap": "gap-2",
|
|
836
|
+
"sectionGap": "space-y-6",
|
|
837
|
+
"container": "space-y-4",
|
|
838
|
+
"actions": "flex justify-end gap-2 pt-4",
|
|
839
|
+
"fieldFull": "w-full",
|
|
840
|
+
"fieldPair": "grid grid-cols-2 gap-4"
|
|
841
|
+
},
|
|
842
|
+
"inline": {
|
|
843
|
+
"iconText": "inline-flex items-center gap-2",
|
|
844
|
+
"badges": "flex flex-wrap gap-2",
|
|
845
|
+
"buttons": "flex items-center gap-2",
|
|
846
|
+
"tags": "flex flex-wrap gap-1"
|
|
847
|
+
},
|
|
848
|
+
"header": {
|
|
849
|
+
"pageHeader": "flex items-center justify-between mb-6",
|
|
850
|
+
"sectionHeader": "flex items-center justify-between mb-4",
|
|
851
|
+
"cardHeader": "flex items-center justify-between"
|
|
852
|
+
},
|
|
853
|
+
"sidebar": {
|
|
854
|
+
"width": "w-64",
|
|
855
|
+
"widthCollapsed": "w-16",
|
|
856
|
+
"contentWithSidebar": "ml-64",
|
|
857
|
+
"contentMobile": "ml-0"
|
|
858
|
+
},
|
|
859
|
+
"responsive": {
|
|
860
|
+
"hideMobile": "hidden md:block",
|
|
861
|
+
"showMobile": "md:hidden",
|
|
862
|
+
"stackToRow": "flex flex-col md:flex-row",
|
|
863
|
+
"fullToAuto": "w-full md:w-auto"
|
|
864
|
+
}
|
|
865
|
+
},
|
|
866
|
+
"states": {
|
|
867
|
+
"loading": {
|
|
868
|
+
"page": "Skeleton matching page structure",
|
|
869
|
+
"card": "Skeleton matching card structure",
|
|
870
|
+
"button": {
|
|
871
|
+
"icon": "Loader2",
|
|
872
|
+
"text": "Loading...",
|
|
873
|
+
"classes": "disabled opacity-50",
|
|
874
|
+
"iconClasses": "animate-spin mr-2 h-4 w-4"
|
|
875
|
+
},
|
|
876
|
+
"inline": {
|
|
877
|
+
"icon": "Loader2",
|
|
878
|
+
"classes": "animate-spin h-4 w-4"
|
|
879
|
+
},
|
|
880
|
+
"tableRow": "Skeleton h-12 w-full",
|
|
881
|
+
"listItem": "Skeleton h-16 w-full",
|
|
882
|
+
"avatar": "Skeleton h-10 w-10 rounded-full"
|
|
883
|
+
},
|
|
884
|
+
"empty": {
|
|
885
|
+
"structure": "flex flex-col items-center justify-center py-12 text-center",
|
|
886
|
+
"icon": {
|
|
887
|
+
"classes": "h-12 w-12 text-muted-foreground mb-4",
|
|
888
|
+
"note": "Use relevant lucide icon for context"
|
|
889
|
+
},
|
|
890
|
+
"title": {
|
|
891
|
+
"classes": "headline-small mb-2"
|
|
892
|
+
},
|
|
893
|
+
"description": {
|
|
894
|
+
"classes": "body-medium text-muted-foreground max-w-sm mx-auto mb-4"
|
|
895
|
+
},
|
|
896
|
+
"action": {
|
|
897
|
+
"variant": "outline",
|
|
898
|
+
"note": "Optional - only if user can take action to fill empty state"
|
|
899
|
+
}
|
|
900
|
+
},
|
|
901
|
+
"error": {
|
|
902
|
+
"page": {
|
|
903
|
+
"component": "Alert",
|
|
904
|
+
"variant": "destructive",
|
|
905
|
+
"includeRetry": true,
|
|
906
|
+
"classes": "max-w-lg mx-auto my-8"
|
|
907
|
+
},
|
|
908
|
+
"inline": {
|
|
909
|
+
"classes": "body-small text-destructive"
|
|
910
|
+
},
|
|
911
|
+
"field": {
|
|
912
|
+
"inputClasses": "border-destructive focus:ring-destructive",
|
|
913
|
+
"messageClasses": "body-small text-destructive mt-1"
|
|
914
|
+
},
|
|
915
|
+
"banner": {
|
|
916
|
+
"component": "Alert",
|
|
917
|
+
"variant": "destructive",
|
|
918
|
+
"classes": "mb-4"
|
|
919
|
+
}
|
|
920
|
+
},
|
|
921
|
+
"disabled": {
|
|
922
|
+
"opacity": "opacity-50",
|
|
923
|
+
"cursor": "cursor-not-allowed",
|
|
924
|
+
"interaction": "pointer-events-none",
|
|
925
|
+
"combined": "opacity-50 cursor-not-allowed pointer-events-none"
|
|
926
|
+
},
|
|
927
|
+
"success": {
|
|
928
|
+
"toast": {
|
|
929
|
+
"method": "toast.success",
|
|
930
|
+
"duration": 3000
|
|
931
|
+
},
|
|
932
|
+
"inline": {
|
|
933
|
+
"classes": "body-small text-[var(--semantic-success500)]"
|
|
934
|
+
},
|
|
935
|
+
"banner": {
|
|
936
|
+
"component": "Alert",
|
|
937
|
+
"variant": "default",
|
|
938
|
+
"icon": "CheckCircle",
|
|
939
|
+
"classes": "border-[var(--semantic-success500)] bg-green-50"
|
|
940
|
+
}
|
|
941
|
+
},
|
|
942
|
+
"warning": {
|
|
943
|
+
"banner": {
|
|
944
|
+
"component": "Alert",
|
|
945
|
+
"variant": "warning",
|
|
946
|
+
"icon": "AlertTriangle"
|
|
947
|
+
},
|
|
948
|
+
"inline": {
|
|
949
|
+
"classes": "body-small text-[var(--colors-yellow-600)]"
|
|
950
|
+
}
|
|
951
|
+
}
|
|
952
|
+
},
|
|
953
|
+
"interactions": {
|
|
954
|
+
"clickableCard": {
|
|
955
|
+
"default": "shadow-card transition-shadow duration-200",
|
|
956
|
+
"hover": "hover:shadow-elevated",
|
|
957
|
+
"cursor": "cursor-pointer",
|
|
958
|
+
"combined": "shadow-card hover:shadow-elevated cursor-pointer transition-shadow duration-200",
|
|
959
|
+
"withBorder": "border border-gray-200 hover:border-gray-300 cursor-pointer transition-colors"
|
|
960
|
+
},
|
|
961
|
+
"link": {
|
|
962
|
+
"default": "text-[var(--colors-blue-400)] underline-offset-4",
|
|
963
|
+
"hover": "hover:underline",
|
|
964
|
+
"combined": "text-[var(--colors-blue-400)] underline-offset-4 hover:underline",
|
|
965
|
+
"nav": "text-[var(--colors-blue-400)] hover:underline underline-offset-4"
|
|
966
|
+
},
|
|
967
|
+
"iconButton": {
|
|
968
|
+
"default": "p-2 rounded-md transition-colors",
|
|
969
|
+
"hover": "hover:bg-muted",
|
|
970
|
+
"combined": "p-2 rounded-md hover:bg-muted transition-colors",
|
|
971
|
+
"destructive": "p-2 rounded-md hover:bg-destructive/10 hover:text-destructive transition-colors"
|
|
972
|
+
},
|
|
973
|
+
"tableRow": {
|
|
974
|
+
"default": "transition-colors",
|
|
975
|
+
"hover": "hover:bg-muted/50",
|
|
976
|
+
"combined": "hover:bg-muted/50 transition-colors",
|
|
977
|
+
"clickable": "hover:bg-muted/50 cursor-pointer transition-colors"
|
|
978
|
+
},
|
|
979
|
+
"listItem": {
|
|
980
|
+
"default": "transition-colors",
|
|
981
|
+
"hover": "hover:bg-muted/50",
|
|
982
|
+
"active": "bg-muted",
|
|
983
|
+
"combined": "hover:bg-muted/50 cursor-pointer transition-colors"
|
|
984
|
+
},
|
|
985
|
+
"button": {
|
|
986
|
+
"focus": "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
|
|
987
|
+
"active": "active:scale-[0.98]",
|
|
988
|
+
"transition": "transition-colors"
|
|
989
|
+
},
|
|
990
|
+
"input": {
|
|
991
|
+
"default": "border border-gray-200 transition-colors",
|
|
992
|
+
"hover": "hover:border-gray-300",
|
|
993
|
+
"focus": "focus:border-gray-900 focus:ring-2 focus:ring-gray-900/10",
|
|
994
|
+
"error": "border-destructive focus:border-destructive focus:ring-destructive/10",
|
|
995
|
+
"combined": "border border-gray-200 hover:border-gray-300 focus:border-gray-900 focus:ring-2 focus:ring-gray-900/10 transition-colors"
|
|
996
|
+
},
|
|
997
|
+
"menuItem": {
|
|
998
|
+
"default": "transition-colors rounded-sm",
|
|
999
|
+
"hover": "hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground",
|
|
1000
|
+
"combined": "hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground rounded-sm transition-colors"
|
|
1001
|
+
},
|
|
1002
|
+
"sidebarItem": {
|
|
1003
|
+
"default": "transition-colors rounded-md",
|
|
1004
|
+
"hover": "hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",
|
|
1005
|
+
"active": "bg-sidebar-accent text-sidebar-accent-foreground",
|
|
1006
|
+
"combined": "hover:bg-sidebar-accent hover:text-sidebar-accent-foreground rounded-md transition-colors"
|
|
1007
|
+
},
|
|
1008
|
+
"transitions": {
|
|
1009
|
+
"fast": "transition-colors duration-150",
|
|
1010
|
+
"medium": "transition-all duration-200",
|
|
1011
|
+
"slow": "transition-all duration-300",
|
|
1012
|
+
"ease": {
|
|
1013
|
+
"default": "ease-in-out",
|
|
1014
|
+
"in": "ease-in",
|
|
1015
|
+
"out": "ease-out",
|
|
1016
|
+
"bounce": "cubic-bezier(0.68, -0.55, 0.265, 1.55)"
|
|
1017
|
+
}
|
|
1018
|
+
}
|
|
1019
|
+
},
|
|
1020
|
+
"charts": {
|
|
1021
|
+
"colorPriority": [
|
|
1022
|
+
"chart-1",
|
|
1023
|
+
"chart-3",
|
|
1024
|
+
"chart-5",
|
|
1025
|
+
"chart-4",
|
|
1026
|
+
"chart-6",
|
|
1027
|
+
"chart-8"
|
|
1028
|
+
],
|
|
1029
|
+
"ratingDistribution": {
|
|
1030
|
+
"1": "chart-5",
|
|
1031
|
+
"2": "chart-5",
|
|
1032
|
+
"3": "chart-4",
|
|
1033
|
+
"4": "chart-1",
|
|
1034
|
+
"5": "chart-3"
|
|
1035
|
+
},
|
|
1036
|
+
"positiveMetrics": [
|
|
1037
|
+
"chart-1",
|
|
1038
|
+
"chart-3",
|
|
1039
|
+
"chart-6"
|
|
1040
|
+
],
|
|
1041
|
+
"negativeMetrics": [
|
|
1042
|
+
"chart-5",
|
|
1043
|
+
"chart-4",
|
|
1044
|
+
"chart-8"
|
|
1045
|
+
],
|
|
1046
|
+
"comparisonPairs": {
|
|
1047
|
+
"current": "chart-1",
|
|
1048
|
+
"previous": "chart-4"
|
|
1049
|
+
},
|
|
1050
|
+
"axisStyle": {
|
|
1051
|
+
"tickLine": false,
|
|
1052
|
+
"axisLine": false,
|
|
1053
|
+
"tick": {
|
|
1054
|
+
"fill": "hsl(var(--muted-foreground))",
|
|
1055
|
+
"fontSize": 12
|
|
1056
|
+
},
|
|
1057
|
+
"tickMargin": 8
|
|
1058
|
+
},
|
|
1059
|
+
"yAxisStyle": {
|
|
1060
|
+
"tickLine": false,
|
|
1061
|
+
"axisLine": false,
|
|
1062
|
+
"tick": {
|
|
1063
|
+
"fill": "hsl(var(--muted-foreground))",
|
|
1064
|
+
"fontSize": 12
|
|
1065
|
+
},
|
|
1066
|
+
"width": 40
|
|
1067
|
+
},
|
|
1068
|
+
"xAxisStyle": {
|
|
1069
|
+
"tickLine": false,
|
|
1070
|
+
"axisLine": false,
|
|
1071
|
+
"tick": {
|
|
1072
|
+
"fill": "hsl(var(--muted-foreground))",
|
|
1073
|
+
"fontSize": 12
|
|
1074
|
+
},
|
|
1075
|
+
"height": 40
|
|
1076
|
+
},
|
|
1077
|
+
"barRadius": [
|
|
1078
|
+
4,
|
|
1079
|
+
4,
|
|
1080
|
+
0,
|
|
1081
|
+
0
|
|
1082
|
+
],
|
|
1083
|
+
"gridStyle": {
|
|
1084
|
+
"stroke": "hsl(var(--border))",
|
|
1085
|
+
"strokeDasharray": "3 3"
|
|
1086
|
+
},
|
|
1087
|
+
"tooltipStyle": {
|
|
1088
|
+
"contentStyle": {
|
|
1089
|
+
"backgroundColor": "hsl(var(--popover))",
|
|
1090
|
+
"border": "1px solid hsl(var(--border))",
|
|
1091
|
+
"borderRadius": "6px",
|
|
1092
|
+
"boxShadow": "var(--card-shadow)"
|
|
1093
|
+
},
|
|
1094
|
+
"labelStyle": {
|
|
1095
|
+
"fontWeight": 600,
|
|
1096
|
+
"marginBottom": 4
|
|
1097
|
+
}
|
|
1098
|
+
},
|
|
1099
|
+
"legendStyle": {
|
|
1100
|
+
"iconType": "circle",
|
|
1101
|
+
"iconSize": 8,
|
|
1102
|
+
"wrapperStyle": {
|
|
1103
|
+
"paddingTop": 16
|
|
1104
|
+
}
|
|
1105
|
+
},
|
|
1106
|
+
"containerSizing": {
|
|
1107
|
+
"small": {
|
|
1108
|
+
"height": 100
|
|
1109
|
+
},
|
|
1110
|
+
"medium": {
|
|
1111
|
+
"height": 200
|
|
1112
|
+
},
|
|
1113
|
+
"large": {
|
|
1114
|
+
"height": 300
|
|
1115
|
+
},
|
|
1116
|
+
"full": {
|
|
1117
|
+
"height": 400
|
|
1118
|
+
}
|
|
1119
|
+
},
|
|
1120
|
+
"margins": {
|
|
1121
|
+
"none": {
|
|
1122
|
+
"top": 0,
|
|
1123
|
+
"right": 0,
|
|
1124
|
+
"bottom": 0,
|
|
1125
|
+
"left": 0
|
|
1126
|
+
},
|
|
1127
|
+
"withAxis": {
|
|
1128
|
+
"top": 10,
|
|
1129
|
+
"right": 10,
|
|
1130
|
+
"bottom": 30,
|
|
1131
|
+
"left": 40
|
|
1132
|
+
},
|
|
1133
|
+
"withLegend": {
|
|
1134
|
+
"top": 10,
|
|
1135
|
+
"right": 10,
|
|
1136
|
+
"bottom": 50,
|
|
1137
|
+
"left": 40
|
|
1138
|
+
}
|
|
1139
|
+
},
|
|
1140
|
+
"semanticSeries": {
|
|
1141
|
+
"revenue": {
|
|
1142
|
+
"color": "chart-1",
|
|
1143
|
+
"label": "Revenue"
|
|
1144
|
+
},
|
|
1145
|
+
"growth": {
|
|
1146
|
+
"color": "chart-3",
|
|
1147
|
+
"label": "Growth"
|
|
1148
|
+
},
|
|
1149
|
+
"decline": {
|
|
1150
|
+
"color": "chart-5",
|
|
1151
|
+
"label": "Decline"
|
|
1152
|
+
},
|
|
1153
|
+
"baseline": {
|
|
1154
|
+
"color": "chart-4",
|
|
1155
|
+
"label": "Baseline"
|
|
1156
|
+
},
|
|
1157
|
+
"target": {
|
|
1158
|
+
"color": "chart-2",
|
|
1159
|
+
"label": "Target"
|
|
1160
|
+
}
|
|
1161
|
+
}
|
|
1162
|
+
},
|
|
1163
|
+
"modals": {
|
|
1164
|
+
"sizes": {
|
|
1165
|
+
"small": "max-w-sm",
|
|
1166
|
+
"default": "max-w-lg",
|
|
1167
|
+
"large": "max-w-2xl",
|
|
1168
|
+
"xl": "max-w-3xl",
|
|
1169
|
+
"full": "max-w-4xl"
|
|
1170
|
+
},
|
|
1171
|
+
"headerWithIcon": {
|
|
1172
|
+
"iconContainer": "size-12 rounded-full flex items-center justify-center mb-4",
|
|
1173
|
+
"iconPositive": "bg-yellow-100 text-yellow-600",
|
|
1174
|
+
"iconInfo": "bg-blue-100 text-blue-600",
|
|
1175
|
+
"iconDestructive": "bg-red-100 text-red-600",
|
|
1176
|
+
"iconSuccess": "bg-green-100 text-green-600",
|
|
1177
|
+
"iconSize": "h-6 w-6"
|
|
1178
|
+
},
|
|
1179
|
+
"footer": {
|
|
1180
|
+
"alignment": "flex justify-end gap-2",
|
|
1181
|
+
"cancelFirst": true,
|
|
1182
|
+
"destructive": {
|
|
1183
|
+
"cancelVariant": "outline",
|
|
1184
|
+
"actionVariant": "destructive"
|
|
1185
|
+
},
|
|
1186
|
+
"standard": {
|
|
1187
|
+
"cancelVariant": "outline",
|
|
1188
|
+
"actionVariant": "default"
|
|
1189
|
+
}
|
|
1190
|
+
},
|
|
1191
|
+
"mobile": {
|
|
1192
|
+
"dialogHeight": "max-h-[90vh] overflow-y-auto",
|
|
1193
|
+
"bottomSheetHeight": "h-auto max-h-[80vh]",
|
|
1194
|
+
"fullScreen": "fixed inset-0 max-w-none rounded-none"
|
|
1195
|
+
},
|
|
1196
|
+
"sheet": {
|
|
1197
|
+
"right": {
|
|
1198
|
+
"side": "right",
|
|
1199
|
+
"width": "w-[400px] sm:max-w-[540px]"
|
|
1200
|
+
},
|
|
1201
|
+
"left": {
|
|
1202
|
+
"side": "left",
|
|
1203
|
+
"width": "w-[300px] sm:max-w-[400px]"
|
|
1204
|
+
},
|
|
1205
|
+
"bottom": {
|
|
1206
|
+
"side": "bottom",
|
|
1207
|
+
"height": "h-auto max-h-[80vh]",
|
|
1208
|
+
"rounded": "rounded-t-xl"
|
|
1209
|
+
}
|
|
1210
|
+
},
|
|
1211
|
+
"alertDialog": {
|
|
1212
|
+
"headerRule": "Title and description text only",
|
|
1213
|
+
"buttonOrder": [
|
|
1214
|
+
"AlertDialogCancel",
|
|
1215
|
+
"AlertDialogAction"
|
|
1216
|
+
],
|
|
1217
|
+
"destructiveAction": {
|
|
1218
|
+
"variant": "destructive",
|
|
1219
|
+
"text": "Delete"
|
|
1220
|
+
},
|
|
1221
|
+
"messaging": {
|
|
1222
|
+
"title": "Action verb + object (e.g., 'Delete this item?')",
|
|
1223
|
+
"description": "Consequence explanation (e.g., 'This action cannot be undone.')"
|
|
1224
|
+
}
|
|
1225
|
+
},
|
|
1226
|
+
"contentPatterns": {
|
|
1227
|
+
"form": {
|
|
1228
|
+
"spacing": "space-y-4",
|
|
1229
|
+
"footerSpacing": "pt-4"
|
|
1230
|
+
},
|
|
1231
|
+
"confirmation": {
|
|
1232
|
+
"textAlign": "text-center",
|
|
1233
|
+
"spacing": "space-y-2"
|
|
1234
|
+
},
|
|
1235
|
+
"detail": {
|
|
1236
|
+
"maxHeight": "max-h-[70vh]",
|
|
1237
|
+
"overflow": "overflow-y-auto"
|
|
1238
|
+
}
|
|
1239
|
+
},
|
|
1240
|
+
"animation": {
|
|
1241
|
+
"dialog": "duration-200",
|
|
1242
|
+
"sheet": "duration-300",
|
|
1243
|
+
"overlay": "duration-200"
|
|
1244
|
+
}
|
|
1245
|
+
}
|
|
1246
|
+
},
|
|
1247
|
+
"mappings": {
|
|
1248
|
+
"icons": {
|
|
1249
|
+
"actions": {
|
|
1250
|
+
"edit": "Pencil",
|
|
1251
|
+
"delete": "Trash2",
|
|
1252
|
+
"add": "Plus",
|
|
1253
|
+
"create": "Plus",
|
|
1254
|
+
"close": "X",
|
|
1255
|
+
"cancel": "X",
|
|
1256
|
+
"menu": "MoreVertical",
|
|
1257
|
+
"menuHorizontal": "MoreHorizontal",
|
|
1258
|
+
"settings": "Settings",
|
|
1259
|
+
"copy": "Copy",
|
|
1260
|
+
"duplicate": "Copy",
|
|
1261
|
+
"download": "Download",
|
|
1262
|
+
"upload": "Upload",
|
|
1263
|
+
"refresh": "RefreshCw",
|
|
1264
|
+
"save": "Save",
|
|
1265
|
+
"send": "Send",
|
|
1266
|
+
"search": "Search",
|
|
1267
|
+
"filter": "Filter",
|
|
1268
|
+
"sort": "ArrowUpDown",
|
|
1269
|
+
"archive": "Archive",
|
|
1270
|
+
"restore": "ArchiveRestore",
|
|
1271
|
+
"undo": "Undo2",
|
|
1272
|
+
"redo": "Redo2",
|
|
1273
|
+
"print": "Printer",
|
|
1274
|
+
"export": "FileDown",
|
|
1275
|
+
"import": "FileUp"
|
|
1276
|
+
},
|
|
1277
|
+
"navigation": {
|
|
1278
|
+
"back": "ArrowLeft",
|
|
1279
|
+
"forward": "ArrowRight",
|
|
1280
|
+
"up": "ArrowUp",
|
|
1281
|
+
"down": "ArrowDown",
|
|
1282
|
+
"external": "ExternalLink",
|
|
1283
|
+
"expand": "ChevronDown",
|
|
1284
|
+
"collapse": "ChevronUp",
|
|
1285
|
+
"chevronLeft": "ChevronLeft",
|
|
1286
|
+
"chevronRight": "ChevronRight",
|
|
1287
|
+
"home": "Home",
|
|
1288
|
+
"menu": "Menu",
|
|
1289
|
+
"sidebar": "PanelLeft",
|
|
1290
|
+
"grid": "LayoutGrid",
|
|
1291
|
+
"list": "List"
|
|
1292
|
+
},
|
|
1293
|
+
"status": {
|
|
1294
|
+
"success": "CheckCircle",
|
|
1295
|
+
"check": "Check",
|
|
1296
|
+
"warning": "AlertTriangle",
|
|
1297
|
+
"error": "AlertCircle",
|
|
1298
|
+
"info": "Info",
|
|
1299
|
+
"loading": "Loader2",
|
|
1300
|
+
"pending": "Clock",
|
|
1301
|
+
"scheduled": "CalendarClock",
|
|
1302
|
+
"draft": "FileEdit",
|
|
1303
|
+
"active": "CircleDot",
|
|
1304
|
+
"inactive": "Circle",
|
|
1305
|
+
"verified": "BadgeCheck",
|
|
1306
|
+
"locked": "Lock",
|
|
1307
|
+
"unlocked": "Unlock",
|
|
1308
|
+
"visible": "Eye",
|
|
1309
|
+
"hidden": "EyeOff"
|
|
1310
|
+
},
|
|
1311
|
+
"domain": {
|
|
1312
|
+
"calendar": "Calendar",
|
|
1313
|
+
"date": "Calendar",
|
|
1314
|
+
"time": "Clock",
|
|
1315
|
+
"location": "MapPin",
|
|
1316
|
+
"address": "MapPin",
|
|
1317
|
+
"team": "Users",
|
|
1318
|
+
"user": "User",
|
|
1319
|
+
"profile": "UserCircle",
|
|
1320
|
+
"email": "Mail",
|
|
1321
|
+
"phone": "Phone",
|
|
1322
|
+
"money": "DollarSign",
|
|
1323
|
+
"payment": "CreditCard",
|
|
1324
|
+
"invoice": "Receipt",
|
|
1325
|
+
"rating": "Star",
|
|
1326
|
+
"favorite": "Heart",
|
|
1327
|
+
"bookmark": "Bookmark",
|
|
1328
|
+
"share": "Share2",
|
|
1329
|
+
"link": "Link",
|
|
1330
|
+
"attachment": "Paperclip",
|
|
1331
|
+
"image": "Image",
|
|
1332
|
+
"file": "File",
|
|
1333
|
+
"folder": "Folder",
|
|
1334
|
+
"document": "FileText",
|
|
1335
|
+
"chart": "BarChart3",
|
|
1336
|
+
"analytics": "TrendingUp",
|
|
1337
|
+
"dashboard": "LayoutDashboard",
|
|
1338
|
+
"notification": "Bell",
|
|
1339
|
+
"message": "MessageSquare",
|
|
1340
|
+
"comment": "MessageCircle",
|
|
1341
|
+
"tag": "Tag",
|
|
1342
|
+
"category": "Folder",
|
|
1343
|
+
"partner": "Building2",
|
|
1344
|
+
"company": "Building",
|
|
1345
|
+
"store": "Store",
|
|
1346
|
+
"product": "Package",
|
|
1347
|
+
"inventory": "Boxes",
|
|
1348
|
+
"order": "ShoppingCart",
|
|
1349
|
+
"offer": "Ticket",
|
|
1350
|
+
"event": "CalendarDays",
|
|
1351
|
+
"campaign": "Megaphone"
|
|
1352
|
+
},
|
|
1353
|
+
"form": {
|
|
1354
|
+
"required": "Asterisk",
|
|
1355
|
+
"optional": "Circle",
|
|
1356
|
+
"help": "HelpCircle",
|
|
1357
|
+
"clear": "XCircle",
|
|
1358
|
+
"show": "Eye",
|
|
1359
|
+
"hide": "EyeOff",
|
|
1360
|
+
"increment": "Plus",
|
|
1361
|
+
"decrement": "Minus"
|
|
1362
|
+
},
|
|
1363
|
+
"emptyStates": {
|
|
1364
|
+
"noData": "Inbox",
|
|
1365
|
+
"noResults": "SearchX",
|
|
1366
|
+
"noItems": "PackageOpen",
|
|
1367
|
+
"noContent": "FileX",
|
|
1368
|
+
"noAccess": "ShieldX",
|
|
1369
|
+
"error": "AlertOctagon",
|
|
1370
|
+
"maintenance": "Wrench",
|
|
1371
|
+
"construction": "Construction"
|
|
1372
|
+
}
|
|
1373
|
+
},
|
|
1374
|
+
"badges": {
|
|
1375
|
+
"status": {
|
|
1376
|
+
"active": "success",
|
|
1377
|
+
"live": "success",
|
|
1378
|
+
"complete": "success",
|
|
1379
|
+
"completed": "success",
|
|
1380
|
+
"approved": "success",
|
|
1381
|
+
"verified": "success",
|
|
1382
|
+
"published": "success",
|
|
1383
|
+
"online": "success",
|
|
1384
|
+
"pending": "warning",
|
|
1385
|
+
"pendingReview": "warning",
|
|
1386
|
+
"inReview": "warning",
|
|
1387
|
+
"processing": "warning",
|
|
1388
|
+
"scheduled": "warning",
|
|
1389
|
+
"draft": "secondary",
|
|
1390
|
+
"inProgress": "secondary",
|
|
1391
|
+
"paused": "secondary",
|
|
1392
|
+
"inactive": "secondary",
|
|
1393
|
+
"offline": "secondary",
|
|
1394
|
+
"error": "destructive",
|
|
1395
|
+
"failed": "destructive",
|
|
1396
|
+
"cancelled": "destructive",
|
|
1397
|
+
"rejected": "destructive",
|
|
1398
|
+
"expired": "destructive",
|
|
1399
|
+
"overdue": "destructive",
|
|
1400
|
+
"archived": "outline",
|
|
1401
|
+
"closed": "outline",
|
|
1402
|
+
"ended": "outline",
|
|
1403
|
+
"past": "outline"
|
|
1404
|
+
},
|
|
1405
|
+
"tags": "outline",
|
|
1406
|
+
"premium": {
|
|
1407
|
+
"className": "badge-premium",
|
|
1408
|
+
"note": "Use badge-premium CSS class, not Badge component variant"
|
|
1409
|
+
},
|
|
1410
|
+
"floating": {
|
|
1411
|
+
"additionalClass": "shadow-tag",
|
|
1412
|
+
"note": "Add shadow-tag class to Badge for floating effect"
|
|
1413
|
+
}
|
|
1414
|
+
},
|
|
1415
|
+
"statusLabels": {
|
|
1416
|
+
"active": "Active",
|
|
1417
|
+
"live": "Live",
|
|
1418
|
+
"complete": "Complete",
|
|
1419
|
+
"completed": "Completed",
|
|
1420
|
+
"approved": "Approved",
|
|
1421
|
+
"verified": "Verified",
|
|
1422
|
+
"published": "Published",
|
|
1423
|
+
"online": "Online",
|
|
1424
|
+
"pending": "Pending",
|
|
1425
|
+
"pendingReview": "Pending Review",
|
|
1426
|
+
"inReview": "In Review",
|
|
1427
|
+
"processing": "Processing",
|
|
1428
|
+
"scheduled": "Scheduled",
|
|
1429
|
+
"draft": "Draft",
|
|
1430
|
+
"inProgress": "In Progress",
|
|
1431
|
+
"paused": "Paused",
|
|
1432
|
+
"inactive": "Inactive",
|
|
1433
|
+
"offline": "Offline",
|
|
1434
|
+
"error": "Error",
|
|
1435
|
+
"failed": "Failed",
|
|
1436
|
+
"cancelled": "Cancelled",
|
|
1437
|
+
"rejected": "Rejected",
|
|
1438
|
+
"expired": "Expired",
|
|
1439
|
+
"overdue": "Overdue",
|
|
1440
|
+
"archived": "Archived",
|
|
1441
|
+
"closed": "Closed",
|
|
1442
|
+
"ended": "Ended",
|
|
1443
|
+
"past": "Past"
|
|
1444
|
+
}
|
|
1445
|
+
},
|
|
1446
|
+
"rules": {
|
|
1447
|
+
"critical": [
|
|
1448
|
+
"NEVER use yellow (#de8e0f) for buttons - yellow is accent only",
|
|
1449
|
+
"Blue (#004fff) is ONLY for clickable text links",
|
|
1450
|
+
"AlertDialog headers: title + description only, NO icons or decoration",
|
|
1451
|
+
"Icon-only buttons MUST have aria-label",
|
|
1452
|
+
"Inputs MUST be paired with Label using htmlFor"
|
|
1453
|
+
],
|
|
1454
|
+
"guidelines": [
|
|
1455
|
+
"Use CSS variables instead of hardcoded hex values",
|
|
1456
|
+
"Match shadow level to element importance: card < tag < elevated",
|
|
1457
|
+
"Use Cabinet Grotesk (display-*) sparingly for hero headlines",
|
|
1458
|
+
"Use stat-mono for numerical data and statistics",
|
|
1459
|
+
"Add max-h-[90vh] overflow-y-auto to Dialog for mobile"
|
|
1460
|
+
],
|
|
1461
|
+
"antiPatterns": [
|
|
1462
|
+
{
|
|
1463
|
+
"bad": "Yellow buttons",
|
|
1464
|
+
"fix": "Use Button variant='default' (black)"
|
|
1465
|
+
},
|
|
1466
|
+
{
|
|
1467
|
+
"bad": "Home icon in breadcrumb",
|
|
1468
|
+
"fix": "Use 'Home' text instead"
|
|
1469
|
+
},
|
|
1470
|
+
{
|
|
1471
|
+
"bad": "Decorated AlertDialog headers",
|
|
1472
|
+
"fix": "Title + description only"
|
|
1473
|
+
},
|
|
1474
|
+
{
|
|
1475
|
+
"bad": "Missing input labels",
|
|
1476
|
+
"fix": "Always pair Input with Label htmlFor"
|
|
1477
|
+
},
|
|
1478
|
+
{
|
|
1479
|
+
"bad": "Hardcoded colors",
|
|
1480
|
+
"fix": "Use CSS variables or semantic classes"
|
|
1481
|
+
},
|
|
1482
|
+
{
|
|
1483
|
+
"bad": "Overusing premium styling",
|
|
1484
|
+
"fix": "Reserve for actual premium content"
|
|
1485
|
+
}
|
|
1486
|
+
]
|
|
1487
|
+
}
|
|
1488
|
+
}
|