@polyxd/ds-antd 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,453 @@
1
+ {
2
+ "$description": "Polyxd semantic tier for Ant Design. Every token aliases an antd token (antd.token.* / antd.palette*.*) or, where antd has no opaque or passing equivalent, a polyxd.sys.* addition documented in the README.",
3
+ "color": {
4
+ "$type": "color",
5
+ "surface": {
6
+ "default": {
7
+ "$value": "{antd.token.colorBgContainer}"
8
+ },
9
+ "subtle": {
10
+ "$value": "{polyxd.sys.color.solid.colorFillAlter}",
11
+ "$description": "table header / collapse header background"
12
+ },
13
+ "raised": {
14
+ "$value": "{antd.token.colorBgContainer}",
15
+ "$description": "antd Card background (cards are separated by colorBorderSecondary, not tone)"
16
+ },
17
+ "overlay": {
18
+ "$value": "{antd.token.colorBgElevated}",
19
+ "$description": "Modal / Popover / Dropdown background"
20
+ },
21
+ "inverse": {
22
+ "$value": "{polyxd.sys.color.solid.colorBgSpotlight}",
23
+ "$description": "Tooltip background"
24
+ }
25
+ },
26
+ "scrim": {
27
+ "$value": "{antd.token.colorBgMask}"
28
+ },
29
+ "text": {
30
+ "default": {
31
+ "$value": "{polyxd.sys.color.solid.colorText}"
32
+ },
33
+ "muted": {
34
+ "$value": "{polyxd.sys.color.solid.colorTextSecondary}"
35
+ },
36
+ "inverse": {
37
+ "$value": "{antd.token.colorTextLightSolid}"
38
+ },
39
+ "link": {
40
+ "$value": "{polyxd.sys.color.text-link}",
41
+ "$description": "Contrast adjustment (light, dark): natural antd.token.colorLink moved to the nearest step of the info palette that passes; see README"
42
+ }
43
+ },
44
+ "border": {
45
+ "default": {
46
+ "$value": "{antd.token.colorBorderSecondary}"
47
+ },
48
+ "strong": {
49
+ "$value": "{polyxd.sys.color.solid.colorTextTertiary}",
50
+ "$description": "Contrast adjustment (light, dark): natural antd.token.colorBorder moved to the nearest step of antd's neutral ladder that passes; see README"
51
+ },
52
+ "focus": {
53
+ "$value": "{polyxd.sys.color.border-focus}",
54
+ "$description": "genFocusOutline: outline lineWidthFocus solid colorPrimaryBorder. Contrast adjustment (light, dark): natural antd.token.colorPrimaryBorder moved to the nearest step of the primary palette that passes; see README"
55
+ }
56
+ },
57
+ "action": {
58
+ "primary": {
59
+ "background": {
60
+ "$value": "{polyxd.sys.color.action-primary-background}",
61
+ "$description": "Contrast adjustment (light): natural antd.token.colorPrimary moved to the nearest step of the primary palette that passes; see README"
62
+ },
63
+ "foreground": {
64
+ "$value": "{antd.token.colorTextLightSolid}"
65
+ }
66
+ },
67
+ "secondary": {
68
+ "background": {
69
+ "$value": "{antd.token.colorBgContainer}",
70
+ "$description": "antd default Button"
71
+ },
72
+ "foreground": {
73
+ "$value": "{polyxd.sys.color.solid.colorText}"
74
+ },
75
+ "border": {
76
+ "$value": "{antd.token.colorBorder}"
77
+ }
78
+ },
79
+ "danger": {
80
+ "background": {
81
+ "$value": "{polyxd.sys.color.action-danger-background}",
82
+ "$description": "Contrast adjustment (light, dark): natural antd.token.colorError moved to the nearest step of the error palette that passes; see README"
83
+ },
84
+ "foreground": {
85
+ "$value": "{antd.token.colorTextLightSolid}"
86
+ }
87
+ }
88
+ },
89
+ "selection": {
90
+ "background": {
91
+ "$value": "{antd.token.controlItemBgActive}",
92
+ "$description": "selected Select option / Menu item"
93
+ },
94
+ "foreground": {
95
+ "$value": "{polyxd.sys.color.solid.colorText}"
96
+ }
97
+ },
98
+ "status": {
99
+ "info": {
100
+ "background": {
101
+ "$value": "{antd.token.colorInfoBg}"
102
+ },
103
+ "foreground": {
104
+ "$value": "{polyxd.sys.color.status-info-foreground}",
105
+ "$description": "Contrast adjustment (light, dark): natural antd.token.colorInfoText moved to the nearest step of the info palette that passes; see README"
106
+ },
107
+ "emphasis": {
108
+ "$value": "{antd.token.colorInfo}"
109
+ }
110
+ },
111
+ "success": {
112
+ "background": {
113
+ "$value": "{antd.token.colorSuccessBg}"
114
+ },
115
+ "foreground": {
116
+ "$value": "{polyxd.sys.color.status-success-foreground}",
117
+ "$description": "Contrast adjustment (light): natural antd.token.colorSuccessText moved to the nearest step of the success palette that passes; see README"
118
+ },
119
+ "emphasis": {
120
+ "$value": "{polyxd.sys.color.status-success-emphasis}",
121
+ "$description": "Contrast adjustment (light): natural antd.token.colorSuccess moved to the nearest step of the success palette that passes; see README"
122
+ }
123
+ },
124
+ "warning": {
125
+ "background": {
126
+ "$value": "{antd.token.colorWarningBg}"
127
+ },
128
+ "foreground": {
129
+ "$value": "{polyxd.sys.color.status-warning-foreground}",
130
+ "$description": "Contrast adjustment (light): natural antd.token.colorWarningText moved to the nearest step of the warning palette that passes; see README"
131
+ },
132
+ "emphasis": {
133
+ "$value": "{polyxd.sys.color.status-warning-emphasis}",
134
+ "$description": "Contrast adjustment (light): natural antd.token.colorWarning moved to the nearest step of the warning palette that passes; see README"
135
+ }
136
+ },
137
+ "danger": {
138
+ "background": {
139
+ "$value": "{antd.token.colorErrorBg}"
140
+ },
141
+ "foreground": {
142
+ "$value": "{polyxd.sys.color.status-danger-foreground}",
143
+ "$description": "Contrast adjustment (light, dark): natural antd.token.colorErrorText moved to the nearest step of the error palette that passes; see README"
144
+ },
145
+ "emphasis": {
146
+ "$value": "{antd.token.colorError}"
147
+ }
148
+ }
149
+ },
150
+ "data": {
151
+ "categorical": {
152
+ "1": {
153
+ "$value": "{polyxd.sys.color.data-categorical-1}",
154
+ "$description": "antd preset blue palette, step 6 (light: presetPalettes, dark: presetDarkPalettes)"
155
+ },
156
+ "2": {
157
+ "$value": "{polyxd.sys.color.data-categorical-2}",
158
+ "$description": "antd preset orange palette, step 6 (light: presetPalettes, dark: presetDarkPalettes). Contrast adjustment (light): natural preset orange step 6 moved to the nearest step of the orange palette that passes; see README"
159
+ },
160
+ "3": {
161
+ "$value": "{polyxd.sys.color.data-categorical-3}",
162
+ "$description": "antd preset cyan palette, step 6 (light: presetPalettes, dark: presetDarkPalettes). Contrast adjustment (light): natural preset cyan step 6 moved to the nearest step of the cyan palette that passes; see README"
163
+ },
164
+ "4": {
165
+ "$value": "{polyxd.sys.color.data-categorical-4}",
166
+ "$description": "antd preset magenta palette, step 6 (light: presetPalettes, dark: presetDarkPalettes)"
167
+ },
168
+ "5": {
169
+ "$value": "{polyxd.sys.color.data-categorical-5}",
170
+ "$description": "antd preset green palette, step 6 (light: presetPalettes, dark: presetDarkPalettes). Contrast adjustment (light): natural preset green step 6 moved to the nearest step of the green palette that passes; see README"
171
+ },
172
+ "6": {
173
+ "$value": "{polyxd.sys.color.data-categorical-6}",
174
+ "$description": "antd preset purple palette, step 6 (light: presetPalettes, dark: presetDarkPalettes). Contrast adjustment (dark): natural preset purple step 6 moved to the nearest step of the purple palette that passes; see README"
175
+ }
176
+ },
177
+ "positive": {
178
+ "$value": "{polyxd.sys.color.data-positive}",
179
+ "$description": "Contrast adjustment (light): natural antd.token.colorSuccess moved to the nearest step of the success palette that passes; see README"
180
+ },
181
+ "negative": {
182
+ "$value": "{antd.token.colorError}"
183
+ },
184
+ "neutral": {
185
+ "$value": "{polyxd.sys.color.solid.colorTextTertiary}",
186
+ "$description": "antd's icon / tertiary grey (colorIcon)"
187
+ }
188
+ }
189
+ },
190
+ "type": {
191
+ "$type": "typography",
192
+ "title": {
193
+ "page": {
194
+ "$value": {
195
+ "fontFamily": "{antd.token.fontFamily}",
196
+ "fontSize": "{antd.token.fontSizeHeading2}",
197
+ "fontWeight": "{antd.token.fontWeightStrong}",
198
+ "lineHeight": "{antd.token.lineHeightHeading2}",
199
+ "letterSpacing": "{polyxd.sys.font.letter-spacing}"
200
+ },
201
+ "$description": "Typography.Title level 2: fontSizeHeading2 30px, lineHeightHeading2 1.2667 (38px), fontWeightStrong 600"
202
+ },
203
+ "section": {
204
+ "$value": {
205
+ "fontFamily": "{antd.token.fontFamily}",
206
+ "fontSize": "{antd.token.fontSizeHeading4}",
207
+ "fontWeight": "{antd.token.fontWeightStrong}",
208
+ "lineHeight": "{antd.token.lineHeightHeading4}",
209
+ "letterSpacing": "{polyxd.sys.font.letter-spacing}"
210
+ },
211
+ "$description": "Typography.Title level 4: fontSizeHeading4 20px, lineHeightHeading4 1.4 (28px), fontWeightStrong 600"
212
+ },
213
+ "item": {
214
+ "$value": {
215
+ "fontFamily": "{antd.token.fontFamily}",
216
+ "fontSize": "{antd.token.fontSizeHeading5}",
217
+ "fontWeight": "{antd.token.fontWeightStrong}",
218
+ "lineHeight": "{antd.token.lineHeightHeading5}",
219
+ "letterSpacing": "{polyxd.sys.font.letter-spacing}"
220
+ },
221
+ "$description": "Typography.Title level 5 (also Card / Modal title size, fontSizeLG): fontSizeHeading5 16px, lineHeightHeading5 1.5 (24px), fontWeightStrong 600"
222
+ }
223
+ },
224
+ "body": {
225
+ "default": {
226
+ "$value": {
227
+ "fontFamily": "{antd.token.fontFamily}",
228
+ "fontSize": "{antd.token.fontSizeLG}",
229
+ "fontWeight": "{polyxd.sys.font.weight-regular}",
230
+ "lineHeight": "{antd.token.lineHeightLG}",
231
+ "letterSpacing": "{polyxd.sys.font.letter-spacing}"
232
+ },
233
+ "$description": "Judgement call: antd's base fontSize is 14px but the contract needs >= 16px body text, so this is antd's large text size: fontSizeLG 16px, lineHeightLG 1.5 (24px), 400"
234
+ },
235
+ "small": {
236
+ "$value": {
237
+ "fontFamily": "{antd.token.fontFamily}",
238
+ "fontSize": "{antd.token.fontSize}",
239
+ "fontWeight": "{polyxd.sys.font.weight-regular}",
240
+ "lineHeight": "{antd.token.lineHeight}",
241
+ "letterSpacing": "{polyxd.sys.font.letter-spacing}"
242
+ },
243
+ "$description": "antd base text (fontSize): fontSize 14px, lineHeight 1.5714 (22px), 400"
244
+ }
245
+ },
246
+ "label": {
247
+ "default": {
248
+ "$value": {
249
+ "fontFamily": "{antd.token.fontFamily}",
250
+ "fontSize": "{antd.token.fontSize}",
251
+ "fontWeight": "{polyxd.sys.font.weight-regular}",
252
+ "lineHeight": "{antd.token.lineHeight}",
253
+ "letterSpacing": "{polyxd.sys.font.letter-spacing}"
254
+ },
255
+ "$description": "antd control text (Button, Input, Form label): fontSize 14px, lineHeight 1.5714 (22px), 400"
256
+ },
257
+ "small": {
258
+ "$value": {
259
+ "fontFamily": "{antd.token.fontFamily}",
260
+ "fontSize": "{antd.token.fontSizeSM}",
261
+ "fontWeight": "{polyxd.sys.font.weight-regular}",
262
+ "lineHeight": "{antd.token.lineHeightSM}",
263
+ "letterSpacing": "{polyxd.sys.font.letter-spacing}"
264
+ },
265
+ "$description": "antd small text (Tag, Badge, small controls): fontSizeSM 12px, lineHeightSM 1.6667 (20px), 400"
266
+ }
267
+ },
268
+ "numeric": {
269
+ "display": {
270
+ "$value": {
271
+ "fontFamily": "{antd.token.fontFamily}",
272
+ "fontSize": "{antd.token.fontSizeHeading3}",
273
+ "fontWeight": "{polyxd.sys.font.weight-regular}",
274
+ "lineHeight": "{antd.token.lineHeightHeading3}",
275
+ "letterSpacing": "{polyxd.sys.font.letter-spacing}"
276
+ },
277
+ "$description": "antd Statistic value (contentFontSize = fontSizeHeading3): fontSizeHeading3 24px, lineHeightHeading3 1.3333 (32px), 400"
278
+ }
279
+ }
280
+ },
281
+ "space": {
282
+ "$type": "dimension",
283
+ "$description": "antd size ladder (sizeUnit 4 x sizeStep): XXS 4, XS 8, SM 12, base 16, MD 20, LG 24, XL 32, XXL 48",
284
+ "inset": {
285
+ "compact": {
286
+ "$value": "{antd.token.paddingSM}",
287
+ "$description": "Card size=small body padding"
288
+ },
289
+ "default": {
290
+ "$value": "{antd.token.padding}"
291
+ },
292
+ "comfortable": {
293
+ "$value": "{antd.token.paddingLG}",
294
+ "$description": "Card body padding"
295
+ }
296
+ },
297
+ "stack": {
298
+ "tight": {
299
+ "$value": "{antd.token.marginXXS}"
300
+ },
301
+ "default": {
302
+ "$value": "{antd.token.marginXS}"
303
+ },
304
+ "loose": {
305
+ "$value": "{antd.token.margin}"
306
+ },
307
+ "section": {
308
+ "$value": "{antd.token.marginXL}"
309
+ }
310
+ },
311
+ "inline": {
312
+ "tight": {
313
+ "$value": "{antd.token.marginXXS}"
314
+ },
315
+ "default": {
316
+ "$value": "{antd.token.marginXS}",
317
+ "$description": "Space size=small"
318
+ },
319
+ "loose": {
320
+ "$value": "{antd.token.margin}",
321
+ "$description": "Space size=middle"
322
+ }
323
+ }
324
+ },
325
+ "size": {
326
+ "$type": "dimension",
327
+ "target": {
328
+ "min": {
329
+ "$value": "{antd.token.controlHeight}",
330
+ "$description": "antd default control height, 32px. Judgement call: antd's default density is below the 44-48px touch guidance of iOS/Material; it meets WCAG 2.5.8 (24px). Use controlHeightLG (40px) for touch-first surfaces"
331
+ }
332
+ },
333
+ "icon": {
334
+ "small": {
335
+ "$value": "{antd.token.fontSizeIcon}",
336
+ "$description": "antd small icon size (fontSizeSM)"
337
+ },
338
+ "default": {
339
+ "$value": "{antd.token.fontSize}",
340
+ "$description": "antd icons inherit the text size (14px)"
341
+ }
342
+ }
343
+ },
344
+ "radius": {
345
+ "$type": "dimension",
346
+ "small": {
347
+ "$value": "{antd.token.borderRadiusSM}"
348
+ },
349
+ "control": {
350
+ "$value": "{antd.token.borderRadius}",
351
+ "$description": "antd buttons and inputs use the default radius"
352
+ },
353
+ "default": {
354
+ "$value": "{antd.token.borderRadius}"
355
+ },
356
+ "large": {
357
+ "$value": "{antd.token.borderRadiusLG}"
358
+ },
359
+ "full": {
360
+ "$value": "{polyxd.sys.radius.full}"
361
+ }
362
+ },
363
+ "border": {
364
+ "width": {
365
+ "$type": "dimension",
366
+ "default": {
367
+ "$value": "{antd.token.lineWidth}"
368
+ },
369
+ "strong": {
370
+ "$value": "{antd.token.lineWidthBold}"
371
+ }
372
+ }
373
+ },
374
+ "focus": {
375
+ "ring": {
376
+ "$type": "dimension",
377
+ "width": {
378
+ "$value": "{antd.token.lineWidthFocus}",
379
+ "$description": "genFocusOutline outline width"
380
+ },
381
+ "offset": {
382
+ "$value": "{polyxd.sys.focus.ring-offset}",
383
+ "$description": "genFocusOutline outline-offset"
384
+ }
385
+ }
386
+ },
387
+ "measure": {
388
+ "max": {
389
+ "$value": 65,
390
+ "$type": "number",
391
+ "$description": "Characters per line for running text (Polyxd; antd has no measure token)"
392
+ }
393
+ },
394
+ "opacity": {
395
+ "state": {
396
+ "$type": "number",
397
+ "hover": {
398
+ "$value": "{polyxd.sys.state.hover}"
399
+ },
400
+ "pressed": {
401
+ "$value": "{polyxd.sys.state.pressed}"
402
+ },
403
+ "focus": {
404
+ "$value": "{polyxd.sys.state.focus}"
405
+ },
406
+ "disabled": {
407
+ "$value": "{polyxd.sys.state.disabled}"
408
+ }
409
+ }
410
+ },
411
+ "shadow": {
412
+ "$type": "shadow",
413
+ "raised": {
414
+ "$value": "{antd.token.boxShadowTertiary}",
415
+ "$description": "antd's low elevation (Segmented thumb, hoverable surfaces)"
416
+ },
417
+ "overlay": {
418
+ "$value": "{antd.token.boxShadowSecondary}",
419
+ "$description": "Popover / Dropdown / Select popup; identical to boxShadow (Modal) in antd 6"
420
+ }
421
+ },
422
+ "motion": {
423
+ "duration": {
424
+ "$type": "duration",
425
+ "instant": {
426
+ "$value": "{antd.token.motionDurationFast}"
427
+ },
428
+ "short": {
429
+ "$value": "{antd.token.motionDurationMid}"
430
+ },
431
+ "medium": {
432
+ "$value": "{antd.token.motionDurationSlow}"
433
+ },
434
+ "long": {
435
+ "$value": "{polyxd.sys.motion.duration-long}"
436
+ }
437
+ },
438
+ "easing": {
439
+ "$type": "cubicBezier",
440
+ "standard": {
441
+ "$value": "{antd.token.motionEaseInOut}"
442
+ },
443
+ "enter": {
444
+ "$value": "{antd.token.motionEaseOutCirc}",
445
+ "$description": "antd zoom motion (Modal, Popover) enter"
446
+ },
447
+ "exit": {
448
+ "$value": "{antd.token.motionEaseInOutCirc}",
449
+ "$description": "antd zoom motion (Modal, Popover) leave"
450
+ }
451
+ }
452
+ }
453
+ }