@primer/primitives 11.4.0 → 11.4.1-rc.4e2d1de5

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.
Files changed (131) hide show
  1. package/DESIGN_TOKENS_GUIDE.md +185 -0
  2. package/DESIGN_TOKENS_SPEC.md +565 -0
  3. package/dist/build/formats/markdownLlmGuidelines.d.ts +7 -6
  4. package/dist/build/formats/markdownLlmGuidelines.js +1034 -60
  5. package/dist/build/schemas/borderToken.d.ts +16 -2
  6. package/dist/build/schemas/dimensionToken.d.ts +8 -1
  7. package/dist/build/schemas/dimensionValue.d.ts +24 -1
  8. package/dist/build/schemas/dimensionValue.js +20 -1
  9. package/dist/build/schemas/durationToken.d.ts +7 -1
  10. package/dist/build/schemas/durationValue.d.ts +11 -1
  11. package/dist/build/schemas/durationValue.js +13 -3
  12. package/dist/build/schemas/shadowToken.d.ts +672 -84
  13. package/dist/build/schemas/transitionToken.d.ts +14 -2
  14. package/dist/build/schemas/typographyToken.d.ts +32 -4
  15. package/dist/build/transformers/dimensionToPixelUnitless.d.ts +3 -2
  16. package/dist/build/transformers/dimensionToPixelUnitless.js +22 -26
  17. package/dist/build/transformers/dimensionToRem.d.ts +2 -1
  18. package/dist/build/transformers/dimensionToRem.js +21 -22
  19. package/dist/build/transformers/dimensionToRemPxArray.d.ts +2 -1
  20. package/dist/build/transformers/dimensionToRemPxArray.js +21 -22
  21. package/dist/build/transformers/durationToCss.d.ts +2 -1
  22. package/dist/build/transformers/durationToCss.js +18 -11
  23. package/dist/build/transformers/utilities/parseDimension.d.ts +12 -0
  24. package/dist/build/transformers/utilities/parseDimension.js +31 -0
  25. package/dist/build/types/dimensionTokenValue.d.ts +9 -0
  26. package/dist/css/functional/themes/dark-colorblind-high-contrast.css +18 -14
  27. package/dist/css/functional/themes/dark-colorblind.css +18 -14
  28. package/dist/css/functional/themes/dark-dimmed-high-contrast.css +18 -14
  29. package/dist/css/functional/themes/dark-dimmed.css +18 -14
  30. package/dist/css/functional/themes/dark-high-contrast.css +18 -14
  31. package/dist/css/functional/themes/dark-tritanopia-high-contrast.css +18 -14
  32. package/dist/css/functional/themes/dark-tritanopia.css +18 -14
  33. package/dist/css/functional/themes/dark.css +18 -14
  34. package/dist/css/functional/themes/light-colorblind-high-contrast.css +18 -14
  35. package/dist/css/functional/themes/light-colorblind.css +18 -14
  36. package/dist/css/functional/themes/light-high-contrast.css +18 -14
  37. package/dist/css/functional/themes/light-tritanopia-high-contrast.css +18 -14
  38. package/dist/css/functional/themes/light-tritanopia.css +18 -14
  39. package/dist/css/functional/themes/light.css +18 -14
  40. package/dist/css/primitives.css +4 -0
  41. package/dist/docs/base/motion/motion.json +96 -24
  42. package/dist/docs/base/size/size.json +76 -19
  43. package/dist/docs/base/typography/typography.json +24 -6
  44. package/dist/docs/functional/size/border.json +20 -5
  45. package/dist/docs/functional/size/breakpoints.json +24 -6
  46. package/dist/docs/functional/size/radius.json +16 -4
  47. package/dist/docs/functional/size/size.json +60 -15
  48. package/dist/docs/functional/themes/dark-colorblind-high-contrast.json +109 -7
  49. package/dist/docs/functional/themes/dark-colorblind.json +109 -7
  50. package/dist/docs/functional/themes/dark-dimmed-high-contrast.json +109 -7
  51. package/dist/docs/functional/themes/dark-dimmed.json +109 -7
  52. package/dist/docs/functional/themes/dark-high-contrast.json +109 -7
  53. package/dist/docs/functional/themes/dark-tritanopia-high-contrast.json +109 -7
  54. package/dist/docs/functional/themes/dark-tritanopia.json +109 -7
  55. package/dist/docs/functional/themes/dark.json +109 -7
  56. package/dist/docs/functional/themes/light-colorblind-high-contrast.json +115 -13
  57. package/dist/docs/functional/themes/light-colorblind.json +115 -13
  58. package/dist/docs/functional/themes/light-high-contrast.json +115 -13
  59. package/dist/docs/functional/themes/light-tritanopia-high-contrast.json +115 -13
  60. package/dist/docs/functional/themes/light-tritanopia.json +115 -13
  61. package/dist/docs/functional/themes/light.json +115 -13
  62. package/dist/docs/functional/typography/typography.json +8 -2
  63. package/dist/fallbacks/base/motion/motion.json +48 -12
  64. package/dist/figma/themes/light-colorblind.json +4 -4
  65. package/dist/figma/themes/light-high-contrast.json +4 -4
  66. package/dist/figma/themes/light-tritanopia.json +4 -4
  67. package/dist/figma/themes/light.json +4 -4
  68. package/dist/internalCss/dark-colorblind-high-contrast.css +14 -14
  69. package/dist/internalCss/dark-colorblind.css +14 -14
  70. package/dist/internalCss/dark-dimmed-high-contrast.css +14 -14
  71. package/dist/internalCss/dark-dimmed.css +14 -14
  72. package/dist/internalCss/dark-high-contrast.css +14 -14
  73. package/dist/internalCss/dark-tritanopia-high-contrast.css +14 -14
  74. package/dist/internalCss/dark-tritanopia.css +14 -14
  75. package/dist/internalCss/dark.css +14 -14
  76. package/dist/internalCss/light-colorblind-high-contrast.css +14 -14
  77. package/dist/internalCss/light-colorblind.css +14 -14
  78. package/dist/internalCss/light-high-contrast.css +14 -14
  79. package/dist/internalCss/light-tritanopia-high-contrast.css +14 -14
  80. package/dist/internalCss/light-tritanopia.css +14 -14
  81. package/dist/internalCss/light.css +14 -14
  82. package/dist/styleLint/base/motion/motion.json +96 -24
  83. package/dist/styleLint/base/size/size.json +76 -19
  84. package/dist/styleLint/base/typography/typography.json +30 -12
  85. package/dist/styleLint/functional/size/border.json +21 -6
  86. package/dist/styleLint/functional/size/breakpoints.json +24 -6
  87. package/dist/styleLint/functional/size/radius.json +17 -5
  88. package/dist/styleLint/functional/size/size-coarse.json +3 -3
  89. package/dist/styleLint/functional/size/size-fine.json +3 -3
  90. package/dist/styleLint/functional/size/size.json +111 -66
  91. package/dist/styleLint/functional/themes/dark-colorblind-high-contrast.json +129 -27
  92. package/dist/styleLint/functional/themes/dark-colorblind.json +129 -27
  93. package/dist/styleLint/functional/themes/dark-dimmed-high-contrast.json +129 -27
  94. package/dist/styleLint/functional/themes/dark-dimmed.json +129 -27
  95. package/dist/styleLint/functional/themes/dark-high-contrast.json +129 -27
  96. package/dist/styleLint/functional/themes/dark-tritanopia-high-contrast.json +129 -27
  97. package/dist/styleLint/functional/themes/dark-tritanopia.json +129 -27
  98. package/dist/styleLint/functional/themes/dark.json +129 -27
  99. package/dist/styleLint/functional/themes/light-colorblind-high-contrast.json +135 -33
  100. package/dist/styleLint/functional/themes/light-colorblind.json +135 -33
  101. package/dist/styleLint/functional/themes/light-high-contrast.json +135 -33
  102. package/dist/styleLint/functional/themes/light-tritanopia-high-contrast.json +135 -33
  103. package/dist/styleLint/functional/themes/light-tritanopia.json +135 -33
  104. package/dist/styleLint/functional/themes/light.json +135 -33
  105. package/dist/styleLint/functional/typography/typography.json +28 -22
  106. package/package.json +6 -5
  107. package/src/tokens/base/motion/timing.json5 +12 -12
  108. package/src/tokens/base/size/size.json5 +19 -19
  109. package/src/tokens/base/typography/typography.json5 +6 -6
  110. package/src/tokens/functional/color/bgColor.json5 +8 -0
  111. package/src/tokens/functional/color/display.json5 +7 -0
  112. package/src/tokens/functional/color/fgColor.json5 +8 -0
  113. package/src/tokens/functional/color/syntax.json5 +14 -0
  114. package/src/tokens/functional/shadow/shadow.json5 +39 -4
  115. package/src/tokens/functional/size/border.json5 +5 -5
  116. package/src/tokens/functional/size/breakpoints.json5 +6 -6
  117. package/src/tokens/functional/size/radius.json5 +4 -4
  118. package/src/tokens/functional/size/size.json5 +15 -15
  119. package/src/tokens/functional/typography/typography.json5 +8 -4
  120. package/dist/build/parsers/index.d.ts +0 -1
  121. package/dist/build/parsers/index.js +0 -1
  122. package/dist/build/parsers/w3cJsonParser.d.ts +0 -6
  123. package/dist/build/parsers/w3cJsonParser.js +0 -25
  124. package/dist/removed/testing.json5 +0 -4
  125. package/guidelines/color.llm.md +0 -16
  126. package/guidelines/guidelines.llm.md +0 -34
  127. package/guidelines/motion.llm.md +0 -41
  128. package/guidelines/spacing.llm.md +0 -20
  129. package/guidelines/typography.llm.md +0 -14
  130. package/src/tokens/removed/testing.json5 +0 -4
  131. package/token-guidelines.llm.md +0 -695
@@ -12,7 +12,10 @@
12
12
  "filePath": "src/tokens/base/size/size.json5",
13
13
  "isSource": true,
14
14
  "original": {
15
- "$value": "112px",
15
+ "$value": {
16
+ "value": 112,
17
+ "unit": "px"
18
+ },
16
19
  "$type": "dimension",
17
20
  "$extensions": {
18
21
  "org.primer.figma": {
@@ -39,7 +42,10 @@
39
42
  "filePath": "src/tokens/base/size/size.json5",
40
43
  "isSource": true,
41
44
  "original": {
42
- "$value": "12px",
45
+ "$value": {
46
+ "value": 12,
47
+ "unit": "px"
48
+ },
43
49
  "$type": "dimension",
44
50
  "$extensions": {
45
51
  "org.primer.figma": {
@@ -66,7 +72,10 @@
66
72
  "filePath": "src/tokens/base/size/size.json5",
67
73
  "isSource": true,
68
74
  "original": {
69
- "$value": "128px",
75
+ "$value": {
76
+ "value": 128,
77
+ "unit": "px"
78
+ },
70
79
  "$type": "dimension",
71
80
  "$extensions": {
72
81
  "org.primer.figma": {
@@ -93,7 +102,10 @@
93
102
  "filePath": "src/tokens/base/size/size.json5",
94
103
  "isSource": true,
95
104
  "original": {
96
- "$value": "16px",
105
+ "$value": {
106
+ "value": 16,
107
+ "unit": "px"
108
+ },
97
109
  "$type": "dimension",
98
110
  "$extensions": {
99
111
  "org.primer.figma": {
@@ -120,7 +132,10 @@
120
132
  "filePath": "src/tokens/base/size/size.json5",
121
133
  "isSource": true,
122
134
  "original": {
123
- "$value": "2px",
135
+ "$value": {
136
+ "value": 2,
137
+ "unit": "px"
138
+ },
124
139
  "$type": "dimension",
125
140
  "$extensions": {
126
141
  "org.primer.figma": {
@@ -147,7 +162,10 @@
147
162
  "filePath": "src/tokens/base/size/size.json5",
148
163
  "isSource": true,
149
164
  "original": {
150
- "$value": "20px",
165
+ "$value": {
166
+ "value": 20,
167
+ "unit": "px"
168
+ },
151
169
  "$type": "dimension",
152
170
  "$extensions": {
153
171
  "org.primer.figma": {
@@ -174,7 +192,10 @@
174
192
  "filePath": "src/tokens/base/size/size.json5",
175
193
  "isSource": true,
176
194
  "original": {
177
- "$value": "24px",
195
+ "$value": {
196
+ "value": 24,
197
+ "unit": "px"
198
+ },
178
199
  "$type": "dimension",
179
200
  "$extensions": {
180
201
  "org.primer.figma": {
@@ -201,7 +222,10 @@
201
222
  "filePath": "src/tokens/base/size/size.json5",
202
223
  "isSource": true,
203
224
  "original": {
204
- "$value": "28px",
225
+ "$value": {
226
+ "value": 28,
227
+ "unit": "px"
228
+ },
205
229
  "$type": "dimension",
206
230
  "$extensions": {
207
231
  "org.primer.figma": {
@@ -228,7 +252,10 @@
228
252
  "filePath": "src/tokens/base/size/size.json5",
229
253
  "isSource": true,
230
254
  "original": {
231
- "$value": "32px",
255
+ "$value": {
256
+ "value": 32,
257
+ "unit": "px"
258
+ },
232
259
  "$type": "dimension",
233
260
  "$extensions": {
234
261
  "org.primer.figma": {
@@ -255,7 +282,10 @@
255
282
  "filePath": "src/tokens/base/size/size.json5",
256
283
  "isSource": true,
257
284
  "original": {
258
- "$value": "36px",
285
+ "$value": {
286
+ "value": 36,
287
+ "unit": "px"
288
+ },
259
289
  "$type": "dimension",
260
290
  "$extensions": {
261
291
  "org.primer.figma": {
@@ -282,7 +312,10 @@
282
312
  "filePath": "src/tokens/base/size/size.json5",
283
313
  "isSource": true,
284
314
  "original": {
285
- "$value": "4px",
315
+ "$value": {
316
+ "value": 4,
317
+ "unit": "px"
318
+ },
286
319
  "$type": "dimension",
287
320
  "$extensions": {
288
321
  "org.primer.figma": {
@@ -309,7 +342,10 @@
309
342
  "filePath": "src/tokens/base/size/size.json5",
310
343
  "isSource": true,
311
344
  "original": {
312
- "$value": "40px",
345
+ "$value": {
346
+ "value": 40,
347
+ "unit": "px"
348
+ },
313
349
  "$type": "dimension",
314
350
  "$extensions": {
315
351
  "org.primer.figma": {
@@ -336,7 +372,10 @@
336
372
  "filePath": "src/tokens/base/size/size.json5",
337
373
  "isSource": true,
338
374
  "original": {
339
- "$value": "44px",
375
+ "$value": {
376
+ "value": 44,
377
+ "unit": "px"
378
+ },
340
379
  "$type": "dimension",
341
380
  "$extensions": {
342
381
  "org.primer.figma": {
@@ -363,7 +402,10 @@
363
402
  "filePath": "src/tokens/base/size/size.json5",
364
403
  "isSource": true,
365
404
  "original": {
366
- "$value": "48px",
405
+ "$value": {
406
+ "value": 48,
407
+ "unit": "px"
408
+ },
367
409
  "$type": "dimension",
368
410
  "$extensions": {
369
411
  "org.primer.figma": {
@@ -390,7 +432,10 @@
390
432
  "filePath": "src/tokens/base/size/size.json5",
391
433
  "isSource": true,
392
434
  "original": {
393
- "$value": "6px",
435
+ "$value": {
436
+ "value": 6,
437
+ "unit": "px"
438
+ },
394
439
  "$type": "dimension",
395
440
  "$extensions": {
396
441
  "org.primer.figma": {
@@ -417,7 +462,10 @@
417
462
  "filePath": "src/tokens/base/size/size.json5",
418
463
  "isSource": true,
419
464
  "original": {
420
- "$value": "64px",
465
+ "$value": {
466
+ "value": 64,
467
+ "unit": "px"
468
+ },
421
469
  "$type": "dimension",
422
470
  "$extensions": {
423
471
  "org.primer.figma": {
@@ -444,7 +492,10 @@
444
492
  "filePath": "src/tokens/base/size/size.json5",
445
493
  "isSource": true,
446
494
  "original": {
447
- "$value": "8px",
495
+ "$value": {
496
+ "value": 8,
497
+ "unit": "px"
498
+ },
448
499
  "$type": "dimension",
449
500
  "$extensions": {
450
501
  "org.primer.figma": {
@@ -471,7 +522,10 @@
471
522
  "filePath": "src/tokens/base/size/size.json5",
472
523
  "isSource": true,
473
524
  "original": {
474
- "$value": "80px",
525
+ "$value": {
526
+ "value": 80,
527
+ "unit": "px"
528
+ },
475
529
  "$type": "dimension",
476
530
  "$extensions": {
477
531
  "org.primer.figma": {
@@ -498,7 +552,10 @@
498
552
  "filePath": "src/tokens/base/size/size.json5",
499
553
  "isSource": true,
500
554
  "original": {
501
- "$value": "96px",
555
+ "$value": {
556
+ "value": 96,
557
+ "unit": "px"
558
+ },
502
559
  "$type": "dimension",
503
560
  "$extensions": {
504
561
  "org.primer.figma": {
@@ -146,7 +146,7 @@
146
146
  },
147
147
  "base-text-size-2xl": {
148
148
  "key": "{base.text.size.2xl}",
149
- "$value": [null, "40px"],
149
+ "$value": ["2.5rem", "40px"],
150
150
  "$type": "dimension",
151
151
  "$description": "40px - Display text for hero sections.",
152
152
  "$extensions": {
@@ -158,7 +158,10 @@
158
158
  "filePath": "src/tokens/base/typography/typography.json5",
159
159
  "isSource": true,
160
160
  "original": {
161
- "$value": "2.5rem",
161
+ "$value": {
162
+ "value": 2.5,
163
+ "unit": "rem"
164
+ },
162
165
  "$type": "dimension",
163
166
  "$description": "40px - Display text for hero sections.",
164
167
  "$extensions": {
@@ -175,7 +178,7 @@
175
178
  },
176
179
  "base-text-size-lg": {
177
180
  "key": "{base.text.size.lg}",
178
- "$value": [null, "20px"],
181
+ "$value": ["1.25rem", "20px"],
179
182
  "$type": "dimension",
180
183
  "$description": "20px - Medium titles and subtitles.",
181
184
  "$extensions": {
@@ -187,7 +190,10 @@
187
190
  "filePath": "src/tokens/base/typography/typography.json5",
188
191
  "isSource": true,
189
192
  "original": {
190
- "$value": "1.25rem",
193
+ "$value": {
194
+ "value": 1.25,
195
+ "unit": "rem"
196
+ },
191
197
  "$type": "dimension",
192
198
  "$description": "20px - Medium titles and subtitles.",
193
199
  "$extensions": {
@@ -204,7 +210,7 @@
204
210
  },
205
211
  "base-text-size-md": {
206
212
  "key": "{base.text.size.md}",
207
- "$value": [null, "16px"],
213
+ "$value": ["1rem", "16px"],
208
214
  "$type": "dimension",
209
215
  "$description": "16px - Large body text and small titles.",
210
216
  "$extensions": {
@@ -216,7 +222,10 @@
216
222
  "filePath": "src/tokens/base/typography/typography.json5",
217
223
  "isSource": true,
218
224
  "original": {
219
- "$value": "1rem",
225
+ "$value": {
226
+ "value": 1,
227
+ "unit": "rem"
228
+ },
220
229
  "$type": "dimension",
221
230
  "$description": "16px - Large body text and small titles.",
222
231
  "$extensions": {
@@ -233,7 +242,7 @@
233
242
  },
234
243
  "base-text-size-sm": {
235
244
  "key": "{base.text.size.sm}",
236
- "$value": [null, "14px"],
245
+ "$value": ["0.875rem", "14px"],
237
246
  "$type": "dimension",
238
247
  "$description": "14px - Default body text size for UI.",
239
248
  "$extensions": {
@@ -245,7 +254,10 @@
245
254
  "filePath": "src/tokens/base/typography/typography.json5",
246
255
  "isSource": true,
247
256
  "original": {
248
- "$value": "0.875rem",
257
+ "$value": {
258
+ "value": 0.875,
259
+ "unit": "rem"
260
+ },
249
261
  "$type": "dimension",
250
262
  "$description": "14px - Default body text size for UI.",
251
263
  "$extensions": {
@@ -262,7 +274,7 @@
262
274
  },
263
275
  "base-text-size-xl": {
264
276
  "key": "{base.text.size.xl}",
265
- "$value": [null, "32px"],
277
+ "$value": ["2rem", "32px"],
266
278
  "$type": "dimension",
267
279
  "$description": "32px - Large titles and page headings.",
268
280
  "$extensions": {
@@ -274,7 +286,10 @@
274
286
  "filePath": "src/tokens/base/typography/typography.json5",
275
287
  "isSource": true,
276
288
  "original": {
277
- "$value": "2rem",
289
+ "$value": {
290
+ "value": 2,
291
+ "unit": "rem"
292
+ },
278
293
  "$type": "dimension",
279
294
  "$description": "32px - Large titles and page headings.",
280
295
  "$extensions": {
@@ -291,7 +306,7 @@
291
306
  },
292
307
  "base-text-size-xs": {
293
308
  "key": "{base.text.size.xs}",
294
- "$value": [null, "12px"],
309
+ "$value": ["0.75rem", "12px"],
295
310
  "$type": "dimension",
296
311
  "$description": "12px - Smallest text size for captions and compact UI elements.",
297
312
  "$extensions": {
@@ -303,7 +318,10 @@
303
318
  "filePath": "src/tokens/base/typography/typography.json5",
304
319
  "isSource": true,
305
320
  "original": {
306
- "$value": "0.75rem",
321
+ "$value": {
322
+ "value": 0.75,
323
+ "unit": "rem"
324
+ },
307
325
  "$type": "dimension",
308
326
  "$description": "12px - Smallest text size for captions and compact UI elements.",
309
327
  "$extensions": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "borderWidth-default": {
3
3
  "key": "{borderWidth.default}",
4
- "$value": ["0.00390625rem", "0.0625px"],
4
+ "$value": ["0.0625rem", "1px"],
5
5
  "$description": "Default border width for most UI elements. Alias of borderWidth.thin (1px)",
6
6
  "$type": "dimension",
7
7
  "$extensions": {
@@ -46,7 +46,10 @@
46
46
  "filePath": "src/tokens/functional/size/border.json5",
47
47
  "isSource": true,
48
48
  "original": {
49
- "$value": "2px",
49
+ "$value": {
50
+ "value": 2,
51
+ "unit": "px"
52
+ },
50
53
  "$description": "Thick 2px border for emphasis. Use for focus indicators, selected states, or to emphasize important boundaries",
51
54
  "$type": "dimension",
52
55
  "$extensions": {
@@ -79,7 +82,10 @@
79
82
  "filePath": "src/tokens/functional/size/border.json5",
80
83
  "isSource": true,
81
84
  "original": {
82
- "$value": "4px",
85
+ "$value": {
86
+ "value": 4,
87
+ "unit": "px"
88
+ },
83
89
  "$description": "Extra thick 4px border for maximum emphasis. Use sparingly for high-contrast focus indicators or critical visual separators",
84
90
  "$type": "dimension",
85
91
  "$extensions": {
@@ -108,7 +114,10 @@
108
114
  "filePath": "src/tokens/functional/size/border.json5",
109
115
  "isSource": true,
110
116
  "original": {
111
- "$value": "1px",
117
+ "$value": {
118
+ "value": 1,
119
+ "unit": "px"
120
+ },
112
121
  "$description": "Standard 1px border width. Use for most borders, dividers, and outlines throughout the interface",
113
122
  "$type": "dimension",
114
123
  "$extensions": {
@@ -188,7 +197,10 @@
188
197
  "filePath": "src/tokens/functional/size/border.json5",
189
198
  "isSource": true,
190
199
  "original": {
191
- "$value": "-2px",
200
+ "$value": {
201
+ "value": -2,
202
+ "unit": "px"
203
+ },
192
204
  "$description": "Focus outline offset (-2px). Negative value creates an inset outline for keyboard focus indicators, ensuring the focus ring stays within the element bounds",
193
205
  "$type": "dimension",
194
206
  "$extensions": {
@@ -221,7 +233,10 @@
221
233
  "filePath": "src/tokens/functional/size/border.json5",
222
234
  "isSource": true,
223
235
  "original": {
224
- "$value": "2px",
236
+ "$value": {
237
+ "value": 2,
238
+ "unit": "px"
239
+ },
225
240
  "$description": "Focus outline width (2px). Standard width for keyboard focus indicators to meet WCAG 2.4.7 accessibility requirements",
226
241
  "$type": "dimension",
227
242
  "$extensions": {
@@ -12,7 +12,10 @@
12
12
  "filePath": "src/tokens/functional/size/breakpoints.json5",
13
13
  "isSource": true,
14
14
  "original": {
15
- "$value": "1012px",
15
+ "$value": {
16
+ "value": 1012,
17
+ "unit": "px"
18
+ },
16
19
  "$type": "dimension",
17
20
  "$extensions": {
18
21
  "org.primer.figma": {
@@ -39,7 +42,10 @@
39
42
  "filePath": "src/tokens/functional/size/breakpoints.json5",
40
43
  "isSource": true,
41
44
  "original": {
42
- "$value": "768px",
45
+ "$value": {
46
+ "value": 768,
47
+ "unit": "px"
48
+ },
43
49
  "$type": "dimension",
44
50
  "$extensions": {
45
51
  "org.primer.figma": {
@@ -66,7 +72,10 @@
66
72
  "filePath": "src/tokens/functional/size/breakpoints.json5",
67
73
  "isSource": true,
68
74
  "original": {
69
- "$value": "544px",
75
+ "$value": {
76
+ "value": 544,
77
+ "unit": "px"
78
+ },
70
79
  "$type": "dimension",
71
80
  "$extensions": {
72
81
  "org.primer.figma": {
@@ -93,7 +102,10 @@
93
102
  "filePath": "src/tokens/functional/size/breakpoints.json5",
94
103
  "isSource": true,
95
104
  "original": {
96
- "$value": "1280px",
105
+ "$value": {
106
+ "value": 1280,
107
+ "unit": "px"
108
+ },
97
109
  "$type": "dimension",
98
110
  "$extensions": {
99
111
  "org.primer.figma": {
@@ -120,7 +132,10 @@
120
132
  "filePath": "src/tokens/functional/size/breakpoints.json5",
121
133
  "isSource": true,
122
134
  "original": {
123
- "$value": "320px",
135
+ "$value": {
136
+ "value": 320,
137
+ "unit": "px"
138
+ },
124
139
  "$type": "dimension",
125
140
  "$extensions": {
126
141
  "org.primer.figma": {
@@ -147,7 +162,10 @@
147
162
  "filePath": "src/tokens/functional/size/breakpoints.json5",
148
163
  "isSource": true,
149
164
  "original": {
150
- "$value": "1400px",
165
+ "$value": {
166
+ "value": 1400,
167
+ "unit": "px"
168
+ },
151
169
  "$type": "dimension",
152
170
  "$extensions": {
153
171
  "org.primer.figma": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "borderRadius-default": {
3
3
  "key": "{borderRadius.default}",
4
- "$value": ["0.0234375rem", "0.375px"],
4
+ "$value": ["0.375rem", "6px"],
5
5
  "$description": "Default border radius for most UI elements. Alias of borderRadius.medium (6px). Use when in doubt",
6
6
  "$type": "dimension",
7
7
  "$extensions": {
@@ -55,7 +55,10 @@
55
55
  "filePath": "src/tokens/functional/size/radius.json5",
56
56
  "isSource": true,
57
57
  "original": {
58
- "$value": "9999px",
58
+ "$value": {
59
+ "value": 9999,
60
+ "unit": "px"
61
+ },
59
62
  "$type": "dimension",
60
63
  "$description": "Use this border radius for pill shaped elements",
61
64
  "$extensions": {
@@ -98,7 +101,10 @@
98
101
  "filePath": "src/tokens/functional/size/radius.json5",
99
102
  "isSource": true,
100
103
  "original": {
101
- "$value": "12px",
104
+ "$value": {
105
+ "value": 12,
106
+ "unit": "px"
107
+ },
102
108
  "$description": "Large border radius (12px). Use for larger containers, dialogs, or when more visual softness is desired. Always use this for buttons.",
103
109
  "$type": "dimension",
104
110
  "$extensions": {
@@ -141,7 +147,10 @@
141
147
  "filePath": "src/tokens/functional/size/radius.json5",
142
148
  "isSource": true,
143
149
  "original": {
144
- "$value": "6px",
150
+ "$value": {
151
+ "value": 6,
152
+ "unit": "px"
153
+ },
145
154
  "$description": "Medium border radius (6px). The default choice for most buttons, cards, and containers",
146
155
  "$type": "dimension",
147
156
  "$extensions": {
@@ -184,7 +193,10 @@
184
193
  "filePath": "src/tokens/functional/size/radius.json5",
185
194
  "isSource": true,
186
195
  "original": {
187
- "$value": "3px",
196
+ "$value": {
197
+ "value": 3,
198
+ "unit": "px"
199
+ },
188
200
  "$description": "Small border radius (3px). Use for small variants of components or small UI elements like badges, tags, or anything below 16px in height",
189
201
  "$type": "dimension",
190
202
  "$extensions": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "control-minTarget-auto": {
3
3
  "key": "{control.minTarget.auto}",
4
- "$value": ["0.171875rem", "2.75px"],
4
+ "$value": ["2.75rem", "44px"],
5
5
  "$type": "dimension",
6
6
  "$description": "Minimum touch target size for coarse pointer devices (touch screens)",
7
7
  "$extensions": {
@@ -30,7 +30,7 @@
30
30
  },
31
31
  "controlStack-medium-gap-auto": {
32
32
  "key": "{controlStack.medium.gap.auto}",
33
- "$value": ["0.046875rem", "0.75px"],
33
+ "$value": ["0.75rem", "12px"],
34
34
  "$type": "dimension",
35
35
  "$description": "Gap between stacked controls in medium density layouts for touch devices",
36
36
  "$extensions": {
@@ -59,7 +59,7 @@
59
59
  },
60
60
  "controlStack-small-gap-auto": {
61
61
  "key": "{controlStack.small.gap.auto}",
62
- "$value": ["0.0625rem", "1px"],
62
+ "$value": ["1rem", "16px"],
63
63
  "$type": "dimension",
64
64
  "$description": "Gap between stacked controls in small density layouts for touch devices",
65
65
  "$extensions": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "control-minTarget-auto": {
3
3
  "key": "{control.minTarget.auto}",
4
- "$value": ["0.0625rem", "1px"],
4
+ "$value": ["1rem", "16px"],
5
5
  "$type": "dimension",
6
6
  "$description": "Minimum target size for fine pointer devices (mouse)",
7
7
  "$extensions": {
@@ -30,7 +30,7 @@
30
30
  },
31
31
  "controlStack-medium-gap-auto": {
32
32
  "key": "{controlStack.medium.gap.auto}",
33
- "$value": ["0.03125rem", "0.5px"],
33
+ "$value": ["0.5rem", "8px"],
34
34
  "$type": "dimension",
35
35
  "$description": "Gap between stacked controls in medium density layouts for mouse interfaces",
36
36
  "$extensions": {
@@ -59,7 +59,7 @@
59
59
  },
60
60
  "controlStack-small-gap-auto": {
61
61
  "key": "{controlStack.small.gap.auto}",
62
- "$value": ["0.03125rem", "0.5px"],
62
+ "$value": ["0.5rem", "8px"],
63
63
  "$type": "dimension",
64
64
  "$description": "Gap between stacked controls in small density layouts for mouse interfaces",
65
65
  "$extensions": {