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