@polyxd/ds-radix 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.
- package/LICENSE +202 -0
- package/NOTICE +177 -0
- package/README.md +30 -0
- package/manifest.json +27 -0
- package/package.json +30 -0
- package/scripts/sources/radix/LICENSE +21 -0
- package/tokens/semantic.json +461 -0
- package/tokens/system.dark.json +4798 -0
- package/tokens/system.light.json +4798 -0
|
@@ -0,0 +1,461 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$description": "Polyxd semantic tier for Radix Themes 3 (indigo accent, medium radius, 100% scaling — its own defaults). Radix's steps carry meaning: 9 is a solid fill, 11 is text that passes on its scale's background, 12 is high-contrast text.",
|
|
3
|
+
"color": {
|
|
4
|
+
"$type": "color",
|
|
5
|
+
"surface": {
|
|
6
|
+
"default": {
|
|
7
|
+
"$value": "{radix.color-background}"
|
|
8
|
+
},
|
|
9
|
+
"subtle": {
|
|
10
|
+
"$value": "{radix.gray-2}",
|
|
11
|
+
"$description": "Radix's second step: a subtle background"
|
|
12
|
+
},
|
|
13
|
+
"raised": {
|
|
14
|
+
"$value": "{radix.color-panel-solid}",
|
|
15
|
+
"$description": "Radix's solid panel"
|
|
16
|
+
},
|
|
17
|
+
"overlay": {
|
|
18
|
+
"$value": "{radix.color-panel-solid}"
|
|
19
|
+
},
|
|
20
|
+
"inverse": {
|
|
21
|
+
"$value": "{radix.gray-12}"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"scrim": {
|
|
25
|
+
"$value": "{radix.color-overlay}",
|
|
26
|
+
"$description": "Radix's overlay colour"
|
|
27
|
+
},
|
|
28
|
+
"text": {
|
|
29
|
+
"default": {
|
|
30
|
+
"$value": "{radix.gray-12}",
|
|
31
|
+
"$description": "Radix's high-contrast text step"
|
|
32
|
+
},
|
|
33
|
+
"muted": {
|
|
34
|
+
"$value": "{radix.gray-11}",
|
|
35
|
+
"$description": "Radix's step 11, which passes 4.5:1 on steps 1–2 by construction"
|
|
36
|
+
},
|
|
37
|
+
"inverse": {
|
|
38
|
+
"$value": "{radix.gray-1}"
|
|
39
|
+
},
|
|
40
|
+
"link": {
|
|
41
|
+
"$value": "{radix.accent-11}"
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"border": {
|
|
45
|
+
"default": {
|
|
46
|
+
"$value": "{radix.gray-6}",
|
|
47
|
+
"$description": "Radix's subtle border step"
|
|
48
|
+
},
|
|
49
|
+
"strong": {
|
|
50
|
+
"$value": "{radix.gray-9}",
|
|
51
|
+
"$description": "Radix's gray-8 is its strong border but only 1.86:1 in light mode; gray-9 is the next step and carries 3:1"
|
|
52
|
+
},
|
|
53
|
+
"focus": {
|
|
54
|
+
"$value": "{radix.accent-9}",
|
|
55
|
+
"$description": "Radix's focus-8 is 2.36:1 on a light page; accent-9 is the same hue one step on, at 5.08:1"
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
"action": {
|
|
59
|
+
"primary": {
|
|
60
|
+
"background": {
|
|
61
|
+
"$value": "{radix.accent-9}",
|
|
62
|
+
"$description": "Radix's solid accent fill"
|
|
63
|
+
},
|
|
64
|
+
"foreground": {
|
|
65
|
+
"$value": "{radix.accent-contrast}",
|
|
66
|
+
"$description": "The text colour Radix pairs with step 9"
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
"secondary": {
|
|
70
|
+
"background": {
|
|
71
|
+
"$value": "{radix.gray-3}"
|
|
72
|
+
},
|
|
73
|
+
"foreground": {
|
|
74
|
+
"$value": "{radix.gray-12}"
|
|
75
|
+
},
|
|
76
|
+
"border": {
|
|
77
|
+
"$value": "{radix.gray-7}"
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
"danger": {
|
|
81
|
+
"background": {
|
|
82
|
+
"$value": "{radix.red-11}",
|
|
83
|
+
"$description": "Radix's solid red steps carry white at 3.91:1 at best; step 11 with step 1 passes in both modes"
|
|
84
|
+
},
|
|
85
|
+
"foreground": {
|
|
86
|
+
"$value": "{radix.gray-1}"
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
"selection": {
|
|
91
|
+
"background": {
|
|
92
|
+
"$value": "{radix.accent-4}",
|
|
93
|
+
"$description": "Radix's selected component fill"
|
|
94
|
+
},
|
|
95
|
+
"foreground": {
|
|
96
|
+
"$value": "{radix.accent-12}"
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
"status": {
|
|
100
|
+
"info": {
|
|
101
|
+
"background": {
|
|
102
|
+
"$value": "{radix.blue-3}"
|
|
103
|
+
},
|
|
104
|
+
"foreground": {
|
|
105
|
+
"$value": "{radix.blue-12}",
|
|
106
|
+
"$description": "Radix's blue-11 on blue-3 is 4.25:1, under 4.5:1 for text"
|
|
107
|
+
},
|
|
108
|
+
"emphasis": {
|
|
109
|
+
"$value": "{radix.blue-11}"
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
"success": {
|
|
113
|
+
"background": {
|
|
114
|
+
"$value": "{radix.green-3}"
|
|
115
|
+
},
|
|
116
|
+
"foreground": {
|
|
117
|
+
"$value": "{radix.green-12}",
|
|
118
|
+
"$description": "Radix's green-11 on green-3 is 4.21:1"
|
|
119
|
+
},
|
|
120
|
+
"emphasis": {
|
|
121
|
+
"$value": "{radix.green-11}"
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
"warning": {
|
|
125
|
+
"background": {
|
|
126
|
+
"$value": "{radix.amber-3}"
|
|
127
|
+
},
|
|
128
|
+
"foreground": {
|
|
129
|
+
"$value": "{radix.amber-12}",
|
|
130
|
+
"$description": "Radix's amber-11 on amber-3 is 4.25:1"
|
|
131
|
+
},
|
|
132
|
+
"emphasis": {
|
|
133
|
+
"$value": "{radix.amber-11}",
|
|
134
|
+
"$description": "Radix's amber-9 is a bright fill: 1.54:1 on the page, so the accent uses step 11"
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
"danger": {
|
|
138
|
+
"background": {
|
|
139
|
+
"$value": "{radix.red-3}"
|
|
140
|
+
},
|
|
141
|
+
"foreground": {
|
|
142
|
+
"$value": "{radix.red-12}",
|
|
143
|
+
"$description": "Radix's red-11 on red-3 is 4.54:1 in light and passes, but dark mode pairs 12 with 3 the same way"
|
|
144
|
+
},
|
|
145
|
+
"emphasis": {
|
|
146
|
+
"$value": "{radix.red-11}"
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
"data": {
|
|
151
|
+
"categorical": {
|
|
152
|
+
"1": {
|
|
153
|
+
"$value": "{radix.indigo-11}"
|
|
154
|
+
},
|
|
155
|
+
"2": {
|
|
156
|
+
"$value": "{radix.green-11}"
|
|
157
|
+
},
|
|
158
|
+
"3": {
|
|
159
|
+
"$value": "{radix.purple-11}"
|
|
160
|
+
},
|
|
161
|
+
"4": {
|
|
162
|
+
"$value": "{radix.amber-11}"
|
|
163
|
+
},
|
|
164
|
+
"5": {
|
|
165
|
+
"$value": "{radix.crimson-11}"
|
|
166
|
+
},
|
|
167
|
+
"6": {
|
|
168
|
+
"$value": "{radix.cyan-11}"
|
|
169
|
+
}
|
|
170
|
+
},
|
|
171
|
+
"positive": {
|
|
172
|
+
"$value": "{radix.green-11}"
|
|
173
|
+
},
|
|
174
|
+
"negative": {
|
|
175
|
+
"$value": "{radix.red-11}"
|
|
176
|
+
},
|
|
177
|
+
"neutral": {
|
|
178
|
+
"$value": "{radix.gray-11}"
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
},
|
|
182
|
+
"type": {
|
|
183
|
+
"$type": "typography",
|
|
184
|
+
"title": {
|
|
185
|
+
"page": {
|
|
186
|
+
"$value": {
|
|
187
|
+
"fontFamily": "{radix.default-font-family}",
|
|
188
|
+
"fontSize": "{radix.font-size-7}",
|
|
189
|
+
"fontWeight": "{radix.font-weight-bold}",
|
|
190
|
+
"lineHeight": "{radix.line-height-7}",
|
|
191
|
+
"letterSpacing": {
|
|
192
|
+
"value": 0,
|
|
193
|
+
"unit": "px"
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
},
|
|
197
|
+
"section": {
|
|
198
|
+
"$value": {
|
|
199
|
+
"fontFamily": "{radix.default-font-family}",
|
|
200
|
+
"fontSize": "{radix.font-size-5}",
|
|
201
|
+
"fontWeight": "{radix.font-weight-bold}",
|
|
202
|
+
"lineHeight": "{radix.line-height-5}",
|
|
203
|
+
"letterSpacing": {
|
|
204
|
+
"value": 0,
|
|
205
|
+
"unit": "px"
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
},
|
|
209
|
+
"item": {
|
|
210
|
+
"$value": {
|
|
211
|
+
"fontFamily": "{radix.default-font-family}",
|
|
212
|
+
"fontSize": "{radix.font-size-3}",
|
|
213
|
+
"fontWeight": "{radix.font-weight-medium}",
|
|
214
|
+
"lineHeight": "{radix.line-height-3}",
|
|
215
|
+
"letterSpacing": {
|
|
216
|
+
"value": 0,
|
|
217
|
+
"unit": "px"
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
},
|
|
222
|
+
"body": {
|
|
223
|
+
"default": {
|
|
224
|
+
"$value": {
|
|
225
|
+
"fontFamily": "{radix.default-font-family}",
|
|
226
|
+
"fontSize": "{radix.font-size-3}",
|
|
227
|
+
"fontWeight": "{radix.font-weight-regular}",
|
|
228
|
+
"lineHeight": "{radix.line-height-3}",
|
|
229
|
+
"letterSpacing": {
|
|
230
|
+
"value": 0,
|
|
231
|
+
"unit": "px"
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
},
|
|
235
|
+
"small": {
|
|
236
|
+
"$value": {
|
|
237
|
+
"fontFamily": "{radix.default-font-family}",
|
|
238
|
+
"fontSize": "{radix.font-size-2}",
|
|
239
|
+
"fontWeight": "{radix.font-weight-regular}",
|
|
240
|
+
"lineHeight": "{radix.line-height-2}",
|
|
241
|
+
"letterSpacing": {
|
|
242
|
+
"value": 0,
|
|
243
|
+
"unit": "px"
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
},
|
|
248
|
+
"label": {
|
|
249
|
+
"default": {
|
|
250
|
+
"$value": {
|
|
251
|
+
"fontFamily": "{radix.default-font-family}",
|
|
252
|
+
"fontSize": "{radix.font-size-2}",
|
|
253
|
+
"fontWeight": "{radix.font-weight-medium}",
|
|
254
|
+
"lineHeight": "{radix.line-height-2}",
|
|
255
|
+
"letterSpacing": {
|
|
256
|
+
"value": 0,
|
|
257
|
+
"unit": "px"
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
},
|
|
261
|
+
"small": {
|
|
262
|
+
"$value": {
|
|
263
|
+
"fontFamily": "{radix.default-font-family}",
|
|
264
|
+
"fontSize": "{radix.font-size-1}",
|
|
265
|
+
"fontWeight": "{radix.font-weight-medium}",
|
|
266
|
+
"lineHeight": "{radix.line-height-1}",
|
|
267
|
+
"letterSpacing": {
|
|
268
|
+
"value": 0,
|
|
269
|
+
"unit": "px"
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
},
|
|
274
|
+
"numeric": {
|
|
275
|
+
"display": {
|
|
276
|
+
"$value": {
|
|
277
|
+
"fontFamily": "{radix.default-font-family}",
|
|
278
|
+
"fontSize": "{radix.font-size-8}",
|
|
279
|
+
"fontWeight": "{radix.font-weight-bold}",
|
|
280
|
+
"lineHeight": "{radix.line-height-8}",
|
|
281
|
+
"letterSpacing": {
|
|
282
|
+
"value": 0,
|
|
283
|
+
"unit": "px"
|
|
284
|
+
}
|
|
285
|
+
},
|
|
286
|
+
"$extensions": {
|
|
287
|
+
"com.polyxd": {
|
|
288
|
+
"numeric": "tabular"
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
},
|
|
294
|
+
"space": {
|
|
295
|
+
"$type": "dimension",
|
|
296
|
+
"inset": {
|
|
297
|
+
"compact": {
|
|
298
|
+
"$value": "{radix.space-2}"
|
|
299
|
+
},
|
|
300
|
+
"default": {
|
|
301
|
+
"$value": "{radix.space-3}"
|
|
302
|
+
},
|
|
303
|
+
"comfortable": {
|
|
304
|
+
"$value": "{radix.space-5}"
|
|
305
|
+
}
|
|
306
|
+
},
|
|
307
|
+
"stack": {
|
|
308
|
+
"tight": {
|
|
309
|
+
"$value": "{radix.space-1}"
|
|
310
|
+
},
|
|
311
|
+
"default": {
|
|
312
|
+
"$value": "{radix.space-2}"
|
|
313
|
+
},
|
|
314
|
+
"loose": {
|
|
315
|
+
"$value": "{radix.space-4}"
|
|
316
|
+
},
|
|
317
|
+
"section": {
|
|
318
|
+
"$value": "{radix.space-6}"
|
|
319
|
+
}
|
|
320
|
+
},
|
|
321
|
+
"inline": {
|
|
322
|
+
"tight": {
|
|
323
|
+
"$value": "{radix.space-1}"
|
|
324
|
+
},
|
|
325
|
+
"default": {
|
|
326
|
+
"$value": "{radix.space-2}"
|
|
327
|
+
},
|
|
328
|
+
"loose": {
|
|
329
|
+
"$value": "{radix.space-4}"
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
},
|
|
333
|
+
"size": {
|
|
334
|
+
"$type": "dimension",
|
|
335
|
+
"target": {
|
|
336
|
+
"min": {
|
|
337
|
+
"$value": "{polyxd.sys.target.min}"
|
|
338
|
+
}
|
|
339
|
+
},
|
|
340
|
+
"icon": {
|
|
341
|
+
"small": {
|
|
342
|
+
"$value": "{radix.font-size-2}"
|
|
343
|
+
},
|
|
344
|
+
"default": {
|
|
345
|
+
"$value": "{radix.font-size-5}"
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
},
|
|
349
|
+
"radius": {
|
|
350
|
+
"$type": "dimension",
|
|
351
|
+
"small": {
|
|
352
|
+
"$value": "{radix.radius-1}"
|
|
353
|
+
},
|
|
354
|
+
"control": {
|
|
355
|
+
"$value": "{radix.radius-3}",
|
|
356
|
+
"$description": "Radix's control radius at its default medium setting"
|
|
357
|
+
},
|
|
358
|
+
"default": {
|
|
359
|
+
"$value": "{radix.radius-3}"
|
|
360
|
+
},
|
|
361
|
+
"large": {
|
|
362
|
+
"$value": "{radix.radius-4}"
|
|
363
|
+
},
|
|
364
|
+
"full": {
|
|
365
|
+
"$value": {
|
|
366
|
+
"value": 9999,
|
|
367
|
+
"unit": "px"
|
|
368
|
+
},
|
|
369
|
+
"$description": "Radix's --radius-full"
|
|
370
|
+
}
|
|
371
|
+
},
|
|
372
|
+
"border": {
|
|
373
|
+
"width": {
|
|
374
|
+
"$type": "dimension",
|
|
375
|
+
"default": {
|
|
376
|
+
"$value": {
|
|
377
|
+
"value": 1,
|
|
378
|
+
"unit": "px"
|
|
379
|
+
}
|
|
380
|
+
},
|
|
381
|
+
"strong": {
|
|
382
|
+
"$value": "{polyxd.sys.border.strong}"
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
},
|
|
386
|
+
"focus": {
|
|
387
|
+
"ring": {
|
|
388
|
+
"$type": "dimension",
|
|
389
|
+
"width": {
|
|
390
|
+
"$value": "{polyxd.sys.focusRing.width}"
|
|
391
|
+
},
|
|
392
|
+
"offset": {
|
|
393
|
+
"$value": "{polyxd.sys.focusRing.offset}"
|
|
394
|
+
}
|
|
395
|
+
}
|
|
396
|
+
},
|
|
397
|
+
"measure": {
|
|
398
|
+
"max": {
|
|
399
|
+
"$value": 65,
|
|
400
|
+
"$type": "number",
|
|
401
|
+
"$description": "Characters per line for running text (Polyxd; Radix has no measure token)"
|
|
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": "{radix.shadow-2}",
|
|
425
|
+
"$description": "Radix's second elevation"
|
|
426
|
+
},
|
|
427
|
+
"overlay": {
|
|
428
|
+
"$value": "{radix.shadow-5}",
|
|
429
|
+
"$description": "Radix's dialog elevation"
|
|
430
|
+
}
|
|
431
|
+
},
|
|
432
|
+
"motion": {
|
|
433
|
+
"duration": {
|
|
434
|
+
"$type": "duration",
|
|
435
|
+
"instant": {
|
|
436
|
+
"$value": "{polyxd.sys.motion.instant}"
|
|
437
|
+
},
|
|
438
|
+
"short": {
|
|
439
|
+
"$value": "{polyxd.sys.motion.short}"
|
|
440
|
+
},
|
|
441
|
+
"medium": {
|
|
442
|
+
"$value": "{polyxd.sys.motion.medium}"
|
|
443
|
+
},
|
|
444
|
+
"long": {
|
|
445
|
+
"$value": "{polyxd.sys.motion.long}"
|
|
446
|
+
}
|
|
447
|
+
},
|
|
448
|
+
"easing": {
|
|
449
|
+
"$type": "cubicBezier",
|
|
450
|
+
"standard": {
|
|
451
|
+
"$value": "{polyxd.sys.easing.standard}"
|
|
452
|
+
},
|
|
453
|
+
"enter": {
|
|
454
|
+
"$value": "{polyxd.sys.easing.enter}"
|
|
455
|
+
},
|
|
456
|
+
"exit": {
|
|
457
|
+
"$value": "{polyxd.sys.easing.exit}"
|
|
458
|
+
}
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
}
|