@polyxd/ds-shadcn 0.1.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,459 @@
1
+ {
2
+ "$description": "Polyxd semantic tier for shadcn/ui on Tailwind v4. Every token aliases a shadcn variable or a Tailwind scale wherever one exists; polyxd.* marks what shadcn's default theme leaves out (status colours, chart hues). The file is the same in both modes.",
3
+ "color": {
4
+ "$type": "color",
5
+ "surface": {
6
+ "default": {
7
+ "$value": "{shadcn.background}"
8
+ },
9
+ "subtle": {
10
+ "$value": "{shadcn.muted}",
11
+ "$description": "shadcn's muted fill, used for table headers and wells"
12
+ },
13
+ "raised": {
14
+ "$value": "{shadcn.card}",
15
+ "$description": "shadcn's card surface"
16
+ },
17
+ "overlay": {
18
+ "$value": "{shadcn.popover}",
19
+ "$description": "shadcn's popover and dialog surface"
20
+ },
21
+ "inverse": {
22
+ "$value": "{shadcn.primary}"
23
+ }
24
+ },
25
+ "scrim": {
26
+ "$value": "rgba(0, 0, 0, 0.5)",
27
+ "$description": "shadcn's overlay is bg-black/50"
28
+ },
29
+ "text": {
30
+ "default": {
31
+ "$value": "{shadcn.foreground}"
32
+ },
33
+ "muted": {
34
+ "$value": "{polyxd.sys.text-muted}"
35
+ },
36
+ "inverse": {
37
+ "$value": "{shadcn.primary-foreground}"
38
+ },
39
+ "link": {
40
+ "$value": "{shadcn.foreground}",
41
+ "$description": "shadcn links are the foreground colour with an underline; the default theme has no separate link colour"
42
+ }
43
+ },
44
+ "border": {
45
+ "default": {
46
+ "$value": "{shadcn.border}"
47
+ },
48
+ "strong": {
49
+ "$value": "{polyxd.sys.border-strong}"
50
+ },
51
+ "focus": {
52
+ "$value": "{polyxd.sys.focus-ring}"
53
+ }
54
+ },
55
+ "action": {
56
+ "primary": {
57
+ "background": {
58
+ "$value": "{shadcn.primary}"
59
+ },
60
+ "foreground": {
61
+ "$value": "{shadcn.primary-foreground}"
62
+ }
63
+ },
64
+ "secondary": {
65
+ "background": {
66
+ "$value": "{shadcn.secondary}"
67
+ },
68
+ "foreground": {
69
+ "$value": "{shadcn.secondary-foreground}"
70
+ },
71
+ "border": {
72
+ "$value": "{shadcn.border}"
73
+ }
74
+ },
75
+ "danger": {
76
+ "background": {
77
+ "$value": "{shadcn.destructive}"
78
+ },
79
+ "foreground": {
80
+ "$value": "{shadcn.background}",
81
+ "$description": "White on shadcn's destructive red; its own destructive-foreground is a near-red that doesn't carry text"
82
+ }
83
+ }
84
+ },
85
+ "selection": {
86
+ "background": {
87
+ "$value": "{shadcn.accent}",
88
+ "$description": "shadcn's accent fill marks selection"
89
+ },
90
+ "foreground": {
91
+ "$value": "{shadcn.accent-foreground}"
92
+ }
93
+ },
94
+ "status": {
95
+ "info": {
96
+ "background": {
97
+ "$value": "{polyxd.sys.status-info-background}"
98
+ },
99
+ "foreground": {
100
+ "$value": "{polyxd.sys.status-info-foreground}"
101
+ },
102
+ "emphasis": {
103
+ "$value": "{polyxd.sys.status-info-emphasis}"
104
+ }
105
+ },
106
+ "success": {
107
+ "background": {
108
+ "$value": "{polyxd.sys.status-success-background}"
109
+ },
110
+ "foreground": {
111
+ "$value": "{polyxd.sys.status-success-foreground}"
112
+ },
113
+ "emphasis": {
114
+ "$value": "{polyxd.sys.status-success-emphasis}"
115
+ }
116
+ },
117
+ "warning": {
118
+ "background": {
119
+ "$value": "{polyxd.sys.status-warning-background}"
120
+ },
121
+ "foreground": {
122
+ "$value": "{polyxd.sys.status-warning-foreground}"
123
+ },
124
+ "emphasis": {
125
+ "$value": "{polyxd.sys.status-warning-emphasis}"
126
+ }
127
+ },
128
+ "danger": {
129
+ "background": {
130
+ "$value": "{polyxd.sys.status-danger-background}"
131
+ },
132
+ "foreground": {
133
+ "$value": "{polyxd.sys.status-danger-foreground}"
134
+ },
135
+ "emphasis": {
136
+ "$value": "{polyxd.sys.status-danger-emphasis}"
137
+ }
138
+ }
139
+ },
140
+ "data": {
141
+ "categorical": {
142
+ "1": {
143
+ "$value": "{polyxd.sys.data-1}"
144
+ },
145
+ "2": {
146
+ "$value": "{polyxd.sys.data-2}"
147
+ },
148
+ "3": {
149
+ "$value": "{polyxd.sys.data-3}"
150
+ },
151
+ "4": {
152
+ "$value": "{polyxd.sys.data-4}"
153
+ },
154
+ "5": {
155
+ "$value": "{polyxd.sys.data-5}"
156
+ },
157
+ "6": {
158
+ "$value": "{polyxd.sys.data-6}"
159
+ }
160
+ },
161
+ "positive": {
162
+ "$value": "{polyxd.sys.data-positive}"
163
+ },
164
+ "negative": {
165
+ "$value": "{polyxd.sys.data-negative}"
166
+ },
167
+ "neutral": {
168
+ "$value": "{polyxd.sys.data-neutral}"
169
+ }
170
+ }
171
+ },
172
+ "type": {
173
+ "$type": "typography",
174
+ "title": {
175
+ "page": {
176
+ "$value": {
177
+ "fontFamily": "{tailwind.font.sans}",
178
+ "fontSize": "{tailwind.text.3xl}",
179
+ "fontWeight": "{tailwind.weight.semibold}",
180
+ "lineHeight": 1.5,
181
+ "letterSpacing": {
182
+ "value": 0,
183
+ "unit": "px"
184
+ }
185
+ }
186
+ },
187
+ "section": {
188
+ "$value": {
189
+ "fontFamily": "{tailwind.font.sans}",
190
+ "fontSize": "{tailwind.text.xl}",
191
+ "fontWeight": "{tailwind.weight.semibold}",
192
+ "lineHeight": 1.5,
193
+ "letterSpacing": {
194
+ "value": 0,
195
+ "unit": "px"
196
+ }
197
+ }
198
+ },
199
+ "item": {
200
+ "$value": {
201
+ "fontFamily": "{tailwind.font.sans}",
202
+ "fontSize": "{tailwind.text.base}",
203
+ "fontWeight": "{tailwind.weight.semibold}",
204
+ "lineHeight": 1.5,
205
+ "letterSpacing": {
206
+ "value": 0,
207
+ "unit": "px"
208
+ }
209
+ }
210
+ }
211
+ },
212
+ "body": {
213
+ "default": {
214
+ "$value": {
215
+ "fontFamily": "{tailwind.font.sans}",
216
+ "fontSize": "{tailwind.text.base}",
217
+ "fontWeight": "{tailwind.weight.normal}",
218
+ "lineHeight": 1.5,
219
+ "letterSpacing": {
220
+ "value": 0,
221
+ "unit": "px"
222
+ }
223
+ }
224
+ },
225
+ "small": {
226
+ "$value": {
227
+ "fontFamily": "{tailwind.font.sans}",
228
+ "fontSize": "{tailwind.text.sm}",
229
+ "fontWeight": "{tailwind.weight.normal}",
230
+ "lineHeight": 1.5,
231
+ "letterSpacing": {
232
+ "value": 0,
233
+ "unit": "px"
234
+ }
235
+ }
236
+ }
237
+ },
238
+ "label": {
239
+ "default": {
240
+ "$value": {
241
+ "fontFamily": "{tailwind.font.sans}",
242
+ "fontSize": "{tailwind.text.sm}",
243
+ "fontWeight": "{tailwind.weight.medium}",
244
+ "lineHeight": 1.5,
245
+ "letterSpacing": {
246
+ "value": 0,
247
+ "unit": "px"
248
+ }
249
+ }
250
+ },
251
+ "small": {
252
+ "$value": {
253
+ "fontFamily": "{tailwind.font.sans}",
254
+ "fontSize": "{tailwind.text.xs}",
255
+ "fontWeight": "{tailwind.weight.medium}",
256
+ "lineHeight": 1.5,
257
+ "letterSpacing": {
258
+ "value": 0,
259
+ "unit": "px"
260
+ }
261
+ }
262
+ }
263
+ },
264
+ "numeric": {
265
+ "display": {
266
+ "$value": {
267
+ "fontFamily": "{tailwind.font.sans}",
268
+ "fontSize": "{tailwind.text.2xl}",
269
+ "fontWeight": "{tailwind.weight.semibold}",
270
+ "lineHeight": 1.5,
271
+ "letterSpacing": {
272
+ "value": 0,
273
+ "unit": "px"
274
+ }
275
+ },
276
+ "$extensions": {
277
+ "com.polyxd": {
278
+ "numeric": "tabular"
279
+ }
280
+ }
281
+ }
282
+ }
283
+ },
284
+ "space": {
285
+ "$type": "dimension",
286
+ "inset": {
287
+ "compact": {
288
+ "$value": "{tailwind.space.2}"
289
+ },
290
+ "default": {
291
+ "$value": "{tailwind.space.4}"
292
+ },
293
+ "comfortable": {
294
+ "$value": "{tailwind.space.6}"
295
+ }
296
+ },
297
+ "stack": {
298
+ "tight": {
299
+ "$value": "{tailwind.space.1}"
300
+ },
301
+ "default": {
302
+ "$value": "{tailwind.space.2}"
303
+ },
304
+ "loose": {
305
+ "$value": "{tailwind.space.4}"
306
+ },
307
+ "section": {
308
+ "$value": "{tailwind.space.8}"
309
+ }
310
+ },
311
+ "inline": {
312
+ "tight": {
313
+ "$value": "{tailwind.space.1}"
314
+ },
315
+ "default": {
316
+ "$value": "{tailwind.space.2}"
317
+ },
318
+ "loose": {
319
+ "$value": "{tailwind.space.4}"
320
+ }
321
+ }
322
+ },
323
+ "size": {
324
+ "$type": "dimension",
325
+ "target": {
326
+ "min": {
327
+ "$value": {
328
+ "value": 44,
329
+ "unit": "px"
330
+ },
331
+ "$description": "shadcn's default button is 36px (h-9); 44px is the touch target a generated surface is held to"
332
+ }
333
+ },
334
+ "icon": {
335
+ "small": {
336
+ "$value": "{tailwind.text.sm}"
337
+ },
338
+ "default": {
339
+ "$value": "{tailwind.text.lg}"
340
+ }
341
+ }
342
+ },
343
+ "radius": {
344
+ "$type": "dimension",
345
+ "small": {
346
+ "$value": "{shadcn.radius.sm}"
347
+ },
348
+ "control": {
349
+ "$value": "{shadcn.radius.md}",
350
+ "$description": "shadcn buttons are rounded-md"
351
+ },
352
+ "default": {
353
+ "$value": "{shadcn.radius.md}"
354
+ },
355
+ "large": {
356
+ "$value": "{shadcn.radius.lg}"
357
+ },
358
+ "full": {
359
+ "$value": "{shadcn.radius.full}"
360
+ }
361
+ },
362
+ "border": {
363
+ "width": {
364
+ "$type": "dimension",
365
+ "default": {
366
+ "$value": {
367
+ "value": 1,
368
+ "unit": "px"
369
+ }
370
+ },
371
+ "strong": {
372
+ "$value": {
373
+ "value": 2,
374
+ "unit": "px"
375
+ }
376
+ }
377
+ }
378
+ },
379
+ "focus": {
380
+ "ring": {
381
+ "$type": "dimension",
382
+ "width": {
383
+ "$value": {
384
+ "value": 3,
385
+ "unit": "px"
386
+ },
387
+ "$description": "shadcn's focus-visible:ring-[3px]"
388
+ },
389
+ "offset": {
390
+ "$value": {
391
+ "value": 2,
392
+ "unit": "px"
393
+ }
394
+ }
395
+ }
396
+ },
397
+ "measure": {
398
+ "max": {
399
+ "$value": 65,
400
+ "$type": "number",
401
+ "$description": "Characters per line for running text (Polyxd; Tailwind has no measure token beyond prose)"
402
+ }
403
+ },
404
+ "opacity": {
405
+ "state": {
406
+ "$type": "number",
407
+ "hover": {
408
+ "$value": "{polyxd.sys.state.hover}"
409
+ },
410
+ "pressed": {
411
+ "$value": "{polyxd.sys.state.pressed}"
412
+ },
413
+ "focus": {
414
+ "$value": "{polyxd.sys.state.focus}"
415
+ },
416
+ "disabled": {
417
+ "$value": "{polyxd.sys.state.disabled}"
418
+ }
419
+ }
420
+ },
421
+ "shadow": {
422
+ "$type": "shadow",
423
+ "raised": {
424
+ "$value": "{tailwind.shadow.sm}"
425
+ },
426
+ "overlay": {
427
+ "$value": "{tailwind.shadow.lg}"
428
+ }
429
+ },
430
+ "motion": {
431
+ "duration": {
432
+ "$type": "duration",
433
+ "instant": {
434
+ "$value": "{tailwind.duration.75}"
435
+ },
436
+ "short": {
437
+ "$value": "{tailwind.duration.150}"
438
+ },
439
+ "medium": {
440
+ "$value": "{tailwind.duration.200}"
441
+ },
442
+ "long": {
443
+ "$value": "{tailwind.duration.300}"
444
+ }
445
+ },
446
+ "easing": {
447
+ "$type": "cubicBezier",
448
+ "standard": {
449
+ "$value": "{tailwind.ease.in-out}"
450
+ },
451
+ "enter": {
452
+ "$value": "{tailwind.ease.out}"
453
+ },
454
+ "exit": {
455
+ "$value": "{tailwind.ease.in}"
456
+ }
457
+ }
458
+ }
459
+ }