@primer/primitives 10.8.0-rc.2155b901 → 10.8.0-rc.4b626bdd

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 (52) hide show
  1. package/dist/css/base/motion/motion.css +4 -4
  2. package/dist/css/functional/size/border.css +2 -2
  3. package/dist/css/functional/typography/typography.css +11 -11
  4. package/dist/css/primitives.css +17 -17
  5. package/dist/docs/base/motion/motion.json +48 -32
  6. package/dist/docs/base/size/size.json +57 -38
  7. package/dist/docs/base/typography/typography.json +12 -8
  8. package/dist/docs/functional/size/border.json +42 -28
  9. package/dist/docs/functional/size/breakpoints.json +18 -12
  10. package/dist/docs/functional/size/size-coarse.json +9 -6
  11. package/dist/docs/functional/size/size-fine.json +9 -6
  12. package/dist/docs/functional/size/size.json +198 -132
  13. package/dist/docs/functional/size/viewport.json +18 -12
  14. package/dist/docs/functional/themes/dark-colorblind.json +2472 -1648
  15. package/dist/docs/functional/themes/dark-dimmed.json +2472 -1648
  16. package/dist/docs/functional/themes/dark-high-contrast.json +2472 -1648
  17. package/dist/docs/functional/themes/dark-tritanopia.json +2472 -1648
  18. package/dist/docs/functional/themes/dark.json +2472 -1648
  19. package/dist/docs/functional/themes/light-colorblind.json +2472 -1648
  20. package/dist/docs/functional/themes/light-high-contrast.json +2472 -1648
  21. package/dist/docs/functional/themes/light-tritanopia.json +2472 -1648
  22. package/dist/docs/functional/themes/light.json +2472 -1648
  23. package/dist/docs/functional/typography/typography.json +138 -92
  24. package/dist/internalCss/dark-colorblind.css +4 -4
  25. package/dist/internalCss/dark-dimmed.css +4 -4
  26. package/dist/internalCss/dark-high-contrast.css +4 -4
  27. package/dist/internalCss/dark-tritanopia.css +4 -4
  28. package/dist/internalCss/dark.css +4 -4
  29. package/dist/internalCss/light-colorblind.css +4 -4
  30. package/dist/internalCss/light-high-contrast.css +4 -4
  31. package/dist/internalCss/light-tritanopia.css +4 -4
  32. package/dist/internalCss/light.css +4 -4
  33. package/dist/styleLint/base/motion/motion.json +64 -48
  34. package/dist/styleLint/base/size/size.json +76 -57
  35. package/dist/styleLint/base/typography/typography.json +16 -12
  36. package/dist/styleLint/functional/size/border.json +59 -45
  37. package/dist/styleLint/functional/size/breakpoints.json +24 -18
  38. package/dist/styleLint/functional/size/size-coarse.json +12 -9
  39. package/dist/styleLint/functional/size/size-fine.json +12 -9
  40. package/dist/styleLint/functional/size/size.json +264 -198
  41. package/dist/styleLint/functional/size/viewport.json +28 -22
  42. package/dist/styleLint/functional/themes/dark-colorblind.json +3296 -2472
  43. package/dist/styleLint/functional/themes/dark-dimmed.json +3296 -2472
  44. package/dist/styleLint/functional/themes/dark-high-contrast.json +3296 -2472
  45. package/dist/styleLint/functional/themes/dark-tritanopia.json +3296 -2472
  46. package/dist/styleLint/functional/themes/dark.json +3296 -2472
  47. package/dist/styleLint/functional/themes/light-colorblind.json +3296 -2472
  48. package/dist/styleLint/functional/themes/light-high-contrast.json +3296 -2472
  49. package/dist/styleLint/functional/themes/light-tritanopia.json +3296 -2472
  50. package/dist/styleLint/functional/themes/light.json +3296 -2472
  51. package/dist/styleLint/functional/typography/typography.json +184 -138
  52. package/package.json +2 -2
@@ -1,5 +1,6 @@
1
1
  {
2
2
  "fontStack-monospace": {
3
+ "key": "{fontStack.monospace}",
3
4
  "$extensions": {
4
5
  "org.primer.figma": {
5
6
  "collection": "typography",
@@ -16,16 +17,17 @@
16
17
  "collection": "typography",
17
18
  "scopes": ["fontFamily"]
18
19
  }
19
- }
20
+ },
21
+ "key": "{fontStack.monospace}"
20
22
  },
21
23
  "name": "fontStack-monospace",
22
24
  "attributes": {},
23
25
  "path": ["fontStack", "monospace"],
24
- "key": "{fontStack.monospace}",
25
26
  "value": "ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace",
26
27
  "type": "fontFamily"
27
28
  },
28
29
  "fontStack-sansSerif": {
30
+ "key": "{fontStack.sansSerif}",
29
31
  "$extensions": {
30
32
  "org.primer.figma": {
31
33
  "collection": "typography",
@@ -42,16 +44,17 @@
42
44
  "collection": "typography",
43
45
  "scopes": ["fontFamily"]
44
46
  }
45
- }
47
+ },
48
+ "key": "{fontStack.sansSerif}"
46
49
  },
47
50
  "name": "fontStack-sansSerif",
48
51
  "attributes": {},
49
52
  "path": ["fontStack", "sansSerif"],
50
- "key": "{fontStack.sansSerif}",
51
53
  "value": "-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'",
52
54
  "type": "fontFamily"
53
55
  },
54
56
  "fontStack-sansSerifDisplay": {
57
+ "key": "{fontStack.sansSerifDisplay}",
55
58
  "$extensions": {
56
59
  "org.primer.figma": {
57
60
  "collection": "typography",
@@ -68,16 +71,17 @@
68
71
  "collection": "typography",
69
72
  "scopes": ["fontFamily"]
70
73
  }
71
- }
74
+ },
75
+ "key": "{fontStack.sansSerifDisplay}"
72
76
  },
73
77
  "name": "fontStack-sansSerifDisplay",
74
78
  "attributes": {},
75
79
  "path": ["fontStack", "sansSerifDisplay"],
76
- "key": "{fontStack.sansSerifDisplay}",
77
80
  "value": "-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'",
78
81
  "type": "fontFamily"
79
82
  },
80
83
  "fontStack-system": {
84
+ "key": "{fontStack.system}",
81
85
  "$extensions": {
82
86
  "org.primer.figma": {
83
87
  "collection": "typography",
@@ -94,16 +98,17 @@
94
98
  "collection": "typography",
95
99
  "scopes": ["fontFamily"]
96
100
  }
97
- }
101
+ },
102
+ "key": "{fontStack.system}"
98
103
  },
99
104
  "name": "fontStack-system",
100
105
  "attributes": {},
101
106
  "path": ["fontStack", "system"],
102
- "key": "{fontStack.system}",
103
107
  "value": "-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'",
104
108
  "type": "fontFamily"
105
109
  },
106
110
  "text-body-lineHeight-large": {
111
+ "key": "{text.body.lineHeight.large}",
107
112
  "$extensions": {
108
113
  "org.primer.data": {
109
114
  "fontSize": 16
@@ -126,16 +131,17 @@
126
131
  "collection": "typography",
127
132
  "scopes": ["lineHeight"]
128
133
  }
129
- }
134
+ },
135
+ "key": "{text.body.lineHeight.large}"
130
136
  },
131
137
  "name": "text-body-lineHeight-large",
132
138
  "attributes": {},
133
139
  "path": ["text", "body", "lineHeight", "large"],
134
- "key": "{text.body.lineHeight.large}",
135
140
  "value": 1.5,
136
141
  "type": "number"
137
142
  },
138
143
  "text-body-lineHeight-medium": {
144
+ "key": "{text.body.lineHeight.medium}",
139
145
  "$extensions": {
140
146
  "org.primer.data": {
141
147
  "fontSize": 14
@@ -158,16 +164,17 @@
158
164
  "collection": "typography",
159
165
  "scopes": ["lineHeight"]
160
166
  }
161
- }
167
+ },
168
+ "key": "{text.body.lineHeight.medium}"
162
169
  },
163
170
  "name": "text-body-lineHeight-medium",
164
171
  "attributes": {},
165
172
  "path": ["text", "body", "lineHeight", "medium"],
166
- "key": "{text.body.lineHeight.medium}",
167
173
  "value": 1.4285,
168
174
  "type": "number"
169
175
  },
170
176
  "text-body-lineHeight-small": {
177
+ "key": "{text.body.lineHeight.small}",
171
178
  "$extensions": {
172
179
  "org.primer.data": {
173
180
  "fontSize": 12
@@ -190,16 +197,17 @@
190
197
  "collection": "typography",
191
198
  "scopes": ["lineHeight"]
192
199
  }
193
- }
200
+ },
201
+ "key": "{text.body.lineHeight.small}"
194
202
  },
195
203
  "name": "text-body-lineHeight-small",
196
204
  "attributes": {},
197
205
  "path": ["text", "body", "lineHeight", "small"],
198
- "key": "{text.body.lineHeight.small}",
199
206
  "value": 1.6666,
200
207
  "type": "number"
201
208
  },
202
209
  "text-body-shorthand-large": {
210
+ "key": "{text.body.shorthand.large}",
203
211
  "filePath": "src/tokens/functional/typography/typography.json5",
204
212
  "isSource": true,
205
213
  "original": {
@@ -210,17 +218,18 @@
210
218
  "fontFamily": "{fontStack.sansSerif}"
211
219
  },
212
220
  "$type": "typography",
213
- "$description": "User-generated content, markdown rendering."
221
+ "$description": "User-generated content, markdown rendering.",
222
+ "key": "{text.body.shorthand.large}"
214
223
  },
215
224
  "name": "text-body-shorthand-large",
216
225
  "attributes": {},
217
226
  "path": ["text", "body", "shorthand", "large"],
218
- "key": "{text.body.shorthand.large}",
219
227
  "value": "400 1rem/1.5 -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'",
220
228
  "type": "typography",
221
229
  "description": "User-generated content, markdown rendering."
222
230
  },
223
231
  "text-body-shorthand-medium": {
232
+ "key": "{text.body.shorthand.medium}",
224
233
  "filePath": "src/tokens/functional/typography/typography.json5",
225
234
  "isSource": true,
226
235
  "original": {
@@ -231,17 +240,18 @@
231
240
  "fontFamily": "{fontStack.sansSerif}"
232
241
  },
233
242
  "$type": "typography",
234
- "$description": "Default UI font. Most commonly used for body text."
243
+ "$description": "Default UI font. Most commonly used for body text.",
244
+ "key": "{text.body.shorthand.medium}"
235
245
  },
236
246
  "name": "text-body-shorthand-medium",
237
247
  "attributes": {},
238
248
  "path": ["text", "body", "shorthand", "medium"],
239
- "key": "{text.body.shorthand.medium}",
240
249
  "value": "400 0.875rem/1.4285 -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'",
241
250
  "type": "typography",
242
251
  "description": "Default UI font. Most commonly used for body text."
243
252
  },
244
253
  "text-body-shorthand-small": {
254
+ "key": "{text.body.shorthand.small}",
245
255
  "filePath": "src/tokens/functional/typography/typography.json5",
246
256
  "isSource": true,
247
257
  "original": {
@@ -252,17 +262,18 @@
252
262
  "fontFamily": "{fontStack.sansSerif}"
253
263
  },
254
264
  "$type": "typography",
255
- "$description": "Small body text for discrete UI applications, such as helper, footnote text. Should be used sparingly across pages. Line-height matches Body (medium) at 20px."
265
+ "$description": "Small body text for discrete UI applications, such as helper, footnote text. Should be used sparingly across pages. Line-height matches Body (medium) at 20px.",
266
+ "key": "{text.body.shorthand.small}"
256
267
  },
257
268
  "name": "text-body-shorthand-small",
258
269
  "attributes": {},
259
270
  "path": ["text", "body", "shorthand", "small"],
260
- "key": "{text.body.shorthand.small}",
261
271
  "value": "400 0.75rem/1.6666 -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'",
262
272
  "type": "typography",
263
273
  "description": "Small body text for discrete UI applications, such as helper, footnote text. Should be used sparingly across pages. Line-height matches Body (medium) at 20px."
264
274
  },
265
275
  "text-body-size-large": {
276
+ "key": "{text.body.size.large}",
266
277
  "$extensions": {
267
278
  "org.primer.figma": {
268
279
  "collection": "typography",
@@ -279,16 +290,17 @@
279
290
  "collection": "typography",
280
291
  "scopes": ["fontSize"]
281
292
  }
282
- }
293
+ },
294
+ "key": "{text.body.size.large}"
283
295
  },
284
296
  "name": "text-body-size-large",
285
297
  "attributes": {},
286
298
  "path": ["text", "body", "size", "large"],
287
- "key": "{text.body.size.large}",
288
299
  "value": "1rem",
289
300
  "type": "dimension"
290
301
  },
291
302
  "text-body-size-medium": {
303
+ "key": "{text.body.size.medium}",
292
304
  "$extensions": {
293
305
  "org.primer.figma": {
294
306
  "collection": "typography",
@@ -305,16 +317,17 @@
305
317
  "collection": "typography",
306
318
  "scopes": ["fontSize"]
307
319
  }
308
- }
320
+ },
321
+ "key": "{text.body.size.medium}"
309
322
  },
310
323
  "name": "text-body-size-medium",
311
324
  "attributes": {},
312
325
  "path": ["text", "body", "size", "medium"],
313
- "key": "{text.body.size.medium}",
314
326
  "value": "0.875rem",
315
327
  "type": "dimension"
316
328
  },
317
329
  "text-body-size-small": {
330
+ "key": "{text.body.size.small}",
318
331
  "$extensions": {
319
332
  "org.primer.figma": {
320
333
  "collection": "typography",
@@ -331,16 +344,17 @@
331
344
  "collection": "typography",
332
345
  "scopes": ["fontSize"]
333
346
  }
334
- }
347
+ },
348
+ "key": "{text.body.size.small}"
335
349
  },
336
350
  "name": "text-body-size-small",
337
351
  "attributes": {},
338
352
  "path": ["text", "body", "size", "small"],
339
- "key": "{text.body.size.small}",
340
353
  "value": "0.75rem",
341
354
  "type": "dimension"
342
355
  },
343
356
  "text-body-weight": {
357
+ "key": "{text.body.weight}",
344
358
  "$extensions": {
345
359
  "org.primer.figma": {
346
360
  "collection": "typography",
@@ -357,16 +371,17 @@
357
371
  "collection": "typography",
358
372
  "scopes": ["fontWeight"]
359
373
  }
360
- }
374
+ },
375
+ "key": "{text.body.weight}"
361
376
  },
362
377
  "name": "text-body-weight",
363
378
  "attributes": {},
364
379
  "path": ["text", "body", "weight"],
365
- "key": "{text.body.weight}",
366
380
  "value": 400,
367
381
  "type": "fontWeight"
368
382
  },
369
383
  "text-caption-lineHeight": {
384
+ "key": "{text.caption.lineHeight}",
370
385
  "$extensions": {
371
386
  "org.primer.data": {
372
387
  "fontSize": 12
@@ -389,16 +404,17 @@
389
404
  "collection": "typography",
390
405
  "scopes": ["lineHeight"]
391
406
  }
392
- }
407
+ },
408
+ "key": "{text.caption.lineHeight}"
393
409
  },
394
410
  "name": "text-caption-lineHeight",
395
411
  "attributes": {},
396
412
  "path": ["text", "caption", "lineHeight"],
397
- "key": "{text.caption.lineHeight}",
398
413
  "value": 1.3333,
399
414
  "type": "number"
400
415
  },
401
416
  "text-caption-shorthand": {
417
+ "key": "{text.caption.shorthand}",
402
418
  "filePath": "src/tokens/functional/typography/typography.json5",
403
419
  "isSource": true,
404
420
  "original": {
@@ -409,17 +425,18 @@
409
425
  "fontFamily": "{fontStack.sansSerif}"
410
426
  },
411
427
  "$type": "typography",
412
- "$description": "Compact small font with a smaller line height of 16px. Use it for single-line scenarios, as the small sizing doesn’t pass accessibility requirements."
428
+ "$description": "Compact small font with a smaller line height of 16px. Use it for single-line scenarios, as the small sizing doesn’t pass accessibility requirements.",
429
+ "key": "{text.caption.shorthand}"
413
430
  },
414
431
  "name": "text-caption-shorthand",
415
432
  "attributes": {},
416
433
  "path": ["text", "caption", "shorthand"],
417
- "key": "{text.caption.shorthand}",
418
434
  "value": "400 0.75rem/1.3333 -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'",
419
435
  "type": "typography",
420
436
  "description": "Compact small font with a smaller line height of 16px. Use it for single-line scenarios, as the small sizing doesn’t pass accessibility requirements."
421
437
  },
422
438
  "text-caption-size": {
439
+ "key": "{text.caption.size}",
423
440
  "$extensions": {
424
441
  "org.primer.figma": {
425
442
  "collection": "typography",
@@ -436,16 +453,17 @@
436
453
  "collection": "typography",
437
454
  "scopes": ["fontSize"]
438
455
  }
439
- }
456
+ },
457
+ "key": "{text.caption.size}"
440
458
  },
441
459
  "name": "text-caption-size",
442
460
  "attributes": {},
443
461
  "path": ["text", "caption", "size"],
444
- "key": "{text.caption.size}",
445
462
  "value": "0.75rem",
446
463
  "type": "dimension"
447
464
  },
448
465
  "text-caption-weight": {
466
+ "key": "{text.caption.weight}",
449
467
  "$extensions": {
450
468
  "org.primer.figma": {
451
469
  "collection": "typography",
@@ -462,16 +480,17 @@
462
480
  "collection": "typography",
463
481
  "scopes": ["fontWeight"]
464
482
  }
465
- }
483
+ },
484
+ "key": "{text.caption.weight}"
466
485
  },
467
486
  "name": "text-caption-weight",
468
487
  "attributes": {},
469
488
  "path": ["text", "caption", "weight"],
470
- "key": "{text.caption.weight}",
471
489
  "value": 400,
472
490
  "type": "fontWeight"
473
491
  },
474
492
  "text-codeBlock-lineHeight": {
493
+ "key": "{text.codeBlock.lineHeight}",
475
494
  "$extensions": {
476
495
  "org.primer.data": {
477
496
  "fontSize": 13
@@ -494,16 +513,17 @@
494
513
  "collection": "typography",
495
514
  "scopes": ["lineHeight"]
496
515
  }
497
- }
516
+ },
517
+ "key": "{text.codeBlock.lineHeight}"
498
518
  },
499
519
  "name": "text-codeBlock-lineHeight",
500
520
  "attributes": {},
501
521
  "path": ["text", "codeBlock", "lineHeight"],
502
- "key": "{text.codeBlock.lineHeight}",
503
522
  "value": 1.5385,
504
523
  "type": "number"
505
524
  },
506
525
  "text-codeBlock-shorthand": {
526
+ "key": "{text.codeBlock.shorthand}",
507
527
  "filePath": "src/tokens/functional/typography/typography.json5",
508
528
  "isSource": true,
509
529
  "original": {
@@ -514,17 +534,18 @@
514
534
  "fontFamily": "{fontStack.monospace}"
515
535
  },
516
536
  "$type": "typography",
517
- "$description": "Default style for rendering code blocks."
537
+ "$description": "Default style for rendering code blocks.",
538
+ "key": "{text.codeBlock.shorthand}"
518
539
  },
519
540
  "name": "text-codeBlock-shorthand",
520
541
  "attributes": {},
521
542
  "path": ["text", "codeBlock", "shorthand"],
522
- "key": "{text.codeBlock.shorthand}",
523
543
  "value": "400 0.8125rem/1.5385 ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace",
524
544
  "type": "typography",
525
545
  "description": "Default style for rendering code blocks."
526
546
  },
527
547
  "text-codeBlock-size": {
548
+ "key": "{text.codeBlock.size}",
528
549
  "$extensions": {
529
550
  "org.primer.figma": {
530
551
  "collection": "typography",
@@ -541,16 +562,17 @@
541
562
  "collection": "typography",
542
563
  "scopes": ["fontSize"]
543
564
  }
544
- }
565
+ },
566
+ "key": "{text.codeBlock.size}"
545
567
  },
546
568
  "name": "text-codeBlock-size",
547
569
  "attributes": {},
548
570
  "path": ["text", "codeBlock", "size"],
549
- "key": "{text.codeBlock.size}",
550
571
  "value": "0.8125rem",
551
572
  "type": "dimension"
552
573
  },
553
574
  "text-codeBlock-weight": {
575
+ "key": "{text.codeBlock.weight}",
554
576
  "$extensions": {
555
577
  "org.primer.figma": {
556
578
  "collection": "typography",
@@ -567,16 +589,17 @@
567
589
  "collection": "typography",
568
590
  "scopes": ["fontWeight"]
569
591
  }
570
- }
592
+ },
593
+ "key": "{text.codeBlock.weight}"
571
594
  },
572
595
  "name": "text-codeBlock-weight",
573
596
  "attributes": {},
574
597
  "path": ["text", "codeBlock", "weight"],
575
- "key": "{text.codeBlock.weight}",
576
598
  "value": 400,
577
599
  "type": "fontWeight"
578
600
  },
579
601
  "text-codeInline-shorthand": {
602
+ "key": "{text.codeInline.shorthand}",
580
603
  "filePath": "src/tokens/functional/typography/typography.json5",
581
604
  "isSource": true,
582
605
  "original": {
@@ -586,17 +609,18 @@
586
609
  "fontFamily": "{fontStack.monospace}"
587
610
  },
588
611
  "$type": "typography",
589
- "$description": "Inline code blocks using em units to inherit size from its parent."
612
+ "$description": "Inline code blocks using em units to inherit size from its parent.",
613
+ "key": "{text.codeInline.shorthand}"
590
614
  },
591
615
  "name": "text-codeInline-shorthand",
592
616
  "attributes": {},
593
617
  "path": ["text", "codeInline", "shorthand"],
594
- "key": "{text.codeInline.shorthand}",
595
618
  "value": "400 0.9285em ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace",
596
619
  "type": "typography",
597
620
  "description": "Inline code blocks using em units to inherit size from its parent."
598
621
  },
599
622
  "text-codeInline-size": {
623
+ "key": "{text.codeInline.size}",
600
624
  "$extensions": {
601
625
  "org.primer.figma": {
602
626
  "collection": "typography",
@@ -613,16 +637,17 @@
613
637
  "collection": "typography",
614
638
  "scopes": ["fontSize"]
615
639
  }
616
- }
640
+ },
641
+ "key": "{text.codeInline.size}"
617
642
  },
618
643
  "name": "text-codeInline-size",
619
644
  "attributes": {},
620
645
  "path": ["text", "codeInline", "size"],
621
- "key": "{text.codeInline.size}",
622
646
  "value": "0.9285em",
623
647
  "type": "dimension"
624
648
  },
625
649
  "text-codeInline-weight": {
650
+ "key": "{text.codeInline.weight}",
626
651
  "$extensions": {
627
652
  "org.primer.figma": {
628
653
  "collection": "typography",
@@ -639,16 +664,17 @@
639
664
  "collection": "typography",
640
665
  "scopes": ["fontWeight"]
641
666
  }
642
- }
667
+ },
668
+ "key": "{text.codeInline.weight}"
643
669
  },
644
670
  "name": "text-codeInline-weight",
645
671
  "attributes": {},
646
672
  "path": ["text", "codeInline", "weight"],
647
- "key": "{text.codeInline.weight}",
648
673
  "value": 400,
649
674
  "type": "fontWeight"
650
675
  },
651
676
  "text-display-lineBoxHeight": {
677
+ "key": "{text.display.lineBoxHeight}",
652
678
  "$extensions": {
653
679
  "org.primer.data": {
654
680
  "fontSize": 40
@@ -673,16 +699,17 @@
673
699
  "scopes": ["lineHeight"],
674
700
  "fontSizeInPx": 40
675
701
  }
676
- }
702
+ },
703
+ "key": "{text.display.lineBoxHeight}"
677
704
  },
678
705
  "name": "text-display-lineBoxHeight",
679
706
  "attributes": {},
680
707
  "path": ["text", "display", "lineBoxHeight"],
681
- "key": "{text.display.lineBoxHeight}",
682
708
  "value": 1.4,
683
709
  "type": "number"
684
710
  },
685
711
  "text-display-lineHeight": {
712
+ "key": "{text.display.lineHeight}",
686
713
  "$extensions": {
687
714
  "org.primer.data": {
688
715
  "fontSize": 40
@@ -705,16 +732,17 @@
705
732
  "collection": "typography",
706
733
  "scopes": ["lineHeight"]
707
734
  }
708
- }
735
+ },
736
+ "key": "{text.display.lineHeight}"
709
737
  },
710
738
  "name": "text-display-lineHeight",
711
739
  "attributes": {},
712
740
  "path": ["text", "display", "lineHeight"],
713
- "key": "{text.display.lineHeight}",
714
741
  "value": 1.4,
715
742
  "type": "number"
716
743
  },
717
744
  "text-display-shorthand": {
745
+ "key": "{text.display.shorthand}",
718
746
  "filePath": "src/tokens/functional/typography/typography.json5",
719
747
  "isSource": true,
720
748
  "original": {
@@ -725,17 +753,18 @@
725
753
  "fontFamily": "{fontStack.sansSerifDisplay}"
726
754
  },
727
755
  "$type": "typography",
728
- "$description": "Hero-style text for brand to product transition pages. Utilize Title (large) styles on narrow viewports."
756
+ "$description": "Hero-style text for brand to product transition pages. Utilize Title (large) styles on narrow viewports.",
757
+ "key": "{text.display.shorthand}"
729
758
  },
730
759
  "name": "text-display-shorthand",
731
760
  "attributes": {},
732
761
  "path": ["text", "display", "shorthand"],
733
- "key": "{text.display.shorthand}",
734
762
  "value": "500 2.5rem/1.4 -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'",
735
763
  "type": "typography",
736
764
  "description": "Hero-style text for brand to product transition pages. Utilize Title (large) styles on narrow viewports."
737
765
  },
738
766
  "text-display-size": {
767
+ "key": "{text.display.size}",
739
768
  "$extensions": {
740
769
  "org.primer.figma": {
741
770
  "collection": "typography",
@@ -752,16 +781,17 @@
752
781
  "collection": "typography",
753
782
  "scopes": ["fontSize"]
754
783
  }
755
- }
784
+ },
785
+ "key": "{text.display.size}"
756
786
  },
757
787
  "name": "text-display-size",
758
788
  "attributes": {},
759
789
  "path": ["text", "display", "size"],
760
- "key": "{text.display.size}",
761
790
  "value": "2.5rem",
762
791
  "type": "dimension"
763
792
  },
764
793
  "text-display-weight": {
794
+ "key": "{text.display.weight}",
765
795
  "$extensions": {
766
796
  "org.primer.figma": {
767
797
  "collection": "typography",
@@ -778,16 +808,17 @@
778
808
  "collection": "typography",
779
809
  "scopes": ["fontWeight"]
780
810
  }
781
- }
811
+ },
812
+ "key": "{text.display.weight}"
782
813
  },
783
814
  "name": "text-display-weight",
784
815
  "attributes": {},
785
816
  "path": ["text", "display", "weight"],
786
- "key": "{text.display.weight}",
787
817
  "value": 500,
788
818
  "type": "fontWeight"
789
819
  },
790
820
  "text-subtitle-lineHeight": {
821
+ "key": "{text.subtitle.lineHeight}",
791
822
  "$extensions": {
792
823
  "org.primer.data": {
793
824
  "fontSize": 20
@@ -810,16 +841,17 @@
810
841
  "collection": "typography",
811
842
  "scopes": ["lineHeight"]
812
843
  }
813
- }
844
+ },
845
+ "key": "{text.subtitle.lineHeight}"
814
846
  },
815
847
  "name": "text-subtitle-lineHeight",
816
848
  "attributes": {},
817
849
  "path": ["text", "subtitle", "lineHeight"],
818
- "key": "{text.subtitle.lineHeight}",
819
850
  "value": 1.6,
820
851
  "type": "number"
821
852
  },
822
853
  "text-subtitle-shorthand": {
854
+ "key": "{text.subtitle.shorthand}",
823
855
  "filePath": "src/tokens/functional/typography/typography.json5",
824
856
  "isSource": true,
825
857
  "original": {
@@ -830,17 +862,18 @@
830
862
  "fontFamily": "{fontStack.sansSerifDisplay}"
831
863
  },
832
864
  "$type": "typography",
833
- "$description": "Page sections/sub headings, or less important object names in page titles (automated action titles, for example). Same line-height as title (medium)."
865
+ "$description": "Page sections/sub headings, or less important object names in page titles (automated action titles, for example). Same line-height as title (medium).",
866
+ "key": "{text.subtitle.shorthand}"
834
867
  },
835
868
  "name": "text-subtitle-shorthand",
836
869
  "attributes": {},
837
870
  "path": ["text", "subtitle", "shorthand"],
838
- "key": "{text.subtitle.shorthand}",
839
871
  "value": "400 1.25rem/1.6 -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'",
840
872
  "type": "typography",
841
873
  "description": "Page sections/sub headings, or less important object names in page titles (automated action titles, for example). Same line-height as title (medium)."
842
874
  },
843
875
  "text-subtitle-size": {
876
+ "key": "{text.subtitle.size}",
844
877
  "$extensions": {
845
878
  "org.primer.figma": {
846
879
  "collection": "typography",
@@ -857,16 +890,17 @@
857
890
  "collection": "typography",
858
891
  "scopes": ["fontSize"]
859
892
  }
860
- }
893
+ },
894
+ "key": "{text.subtitle.size}"
861
895
  },
862
896
  "name": "text-subtitle-size",
863
897
  "attributes": {},
864
898
  "path": ["text", "subtitle", "size"],
865
- "key": "{text.subtitle.size}",
866
899
  "value": "1.25rem",
867
900
  "type": "dimension"
868
901
  },
869
902
  "text-subtitle-weight": {
903
+ "key": "{text.subtitle.weight}",
870
904
  "$extensions": {
871
905
  "org.primer.figma": {
872
906
  "collection": "typography",
@@ -883,16 +917,17 @@
883
917
  "collection": "typography",
884
918
  "scopes": ["fontWeight"]
885
919
  }
886
- }
920
+ },
921
+ "key": "{text.subtitle.weight}"
887
922
  },
888
923
  "name": "text-subtitle-weight",
889
924
  "attributes": {},
890
925
  "path": ["text", "subtitle", "weight"],
891
- "key": "{text.subtitle.weight}",
892
926
  "value": 400,
893
927
  "type": "fontWeight"
894
928
  },
895
929
  "text-title-lineHeight-large": {
930
+ "key": "{text.title.lineHeight.large}",
896
931
  "$extensions": {
897
932
  "org.primer.data": {
898
933
  "fontSize": 32
@@ -915,16 +950,17 @@
915
950
  "collection": "typography",
916
951
  "scopes": ["lineHeight"]
917
952
  }
918
- }
953
+ },
954
+ "key": "{text.title.lineHeight.large}"
919
955
  },
920
956
  "name": "text-title-lineHeight-large",
921
957
  "attributes": {},
922
958
  "path": ["text", "title", "lineHeight", "large"],
923
- "key": "{text.title.lineHeight.large}",
924
959
  "value": 1.5,
925
960
  "type": "number"
926
961
  },
927
962
  "text-title-lineHeight-medium": {
963
+ "key": "{text.title.lineHeight.medium}",
928
964
  "$extensions": {
929
965
  "org.primer.data": {
930
966
  "fontSize": 20
@@ -947,16 +983,17 @@
947
983
  "collection": "typography",
948
984
  "scopes": ["lineHeight"]
949
985
  }
950
- }
986
+ },
987
+ "key": "{text.title.lineHeight.medium}"
951
988
  },
952
989
  "name": "text-title-lineHeight-medium",
953
990
  "attributes": {},
954
991
  "path": ["text", "title", "lineHeight", "medium"],
955
- "key": "{text.title.lineHeight.medium}",
956
992
  "value": 1.6,
957
993
  "type": "number"
958
994
  },
959
995
  "text-title-lineHeight-small": {
996
+ "key": "{text.title.lineHeight.small}",
960
997
  "$extensions": {
961
998
  "org.primer.data": {
962
999
  "fontSize": 16
@@ -979,16 +1016,17 @@
979
1016
  "collection": "typography",
980
1017
  "scopes": ["lineHeight"]
981
1018
  }
982
- }
1019
+ },
1020
+ "key": "{text.title.lineHeight.small}"
983
1021
  },
984
1022
  "name": "text-title-lineHeight-small",
985
1023
  "attributes": {},
986
1024
  "path": ["text", "title", "lineHeight", "small"],
987
- "key": "{text.title.lineHeight.small}",
988
1025
  "value": 1.5,
989
1026
  "type": "number"
990
1027
  },
991
1028
  "text-title-shorthand-large": {
1029
+ "key": "{text.title.shorthand.large}",
992
1030
  "filePath": "src/tokens/functional/typography/typography.json5",
993
1031
  "isSource": true,
994
1032
  "original": {
@@ -999,17 +1037,18 @@
999
1037
  "fontFamily": "{fontStack.sansSerifDisplay}"
1000
1038
  },
1001
1039
  "$type": "typography",
1002
- "$description": "Page headings for user-created objects, such as issues or pull requests. Utilize title (medium) styles on narrow viewports."
1040
+ "$description": "Page headings for user-created objects, such as issues or pull requests. Utilize title (medium) styles on narrow viewports.",
1041
+ "key": "{text.title.shorthand.large}"
1003
1042
  },
1004
1043
  "name": "text-title-shorthand-large",
1005
1044
  "attributes": {},
1006
1045
  "path": ["text", "title", "shorthand", "large"],
1007
- "key": "{text.title.shorthand.large}",
1008
1046
  "value": "600 2rem/1.5 -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'",
1009
1047
  "type": "typography",
1010
1048
  "description": "Page headings for user-created objects, such as issues or pull requests. Utilize title (medium) styles on narrow viewports."
1011
1049
  },
1012
1050
  "text-title-shorthand-medium": {
1051
+ "key": "{text.title.shorthand.medium}",
1013
1052
  "filePath": "src/tokens/functional/typography/typography.json5",
1014
1053
  "isSource": true,
1015
1054
  "original": {
@@ -1020,17 +1059,18 @@
1020
1059
  "fontFamily": "{fontStack.sansSerifDisplay}"
1021
1060
  },
1022
1061
  "$type": "typography",
1023
- "$description": "Default page title. The 32px-equivalent line-height matches with button and other medium control heights. Great for page header composition."
1062
+ "$description": "Default page title. The 32px-equivalent line-height matches with button and other medium control heights. Great for page header composition.",
1063
+ "key": "{text.title.shorthand.medium}"
1024
1064
  },
1025
1065
  "name": "text-title-shorthand-medium",
1026
1066
  "attributes": {},
1027
1067
  "path": ["text", "title", "shorthand", "medium"],
1028
- "key": "{text.title.shorthand.medium}",
1029
1068
  "value": "600 1.25rem/1.6 -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'",
1030
1069
  "type": "typography",
1031
1070
  "description": "Default page title. The 32px-equivalent line-height matches with button and other medium control heights. Great for page header composition."
1032
1071
  },
1033
1072
  "text-title-shorthand-small": {
1073
+ "key": "{text.title.shorthand.small}",
1034
1074
  "filePath": "src/tokens/functional/typography/typography.json5",
1035
1075
  "isSource": true,
1036
1076
  "original": {
@@ -1041,17 +1081,18 @@
1041
1081
  "fontFamily": "{fontStack.sansSerif}"
1042
1082
  },
1043
1083
  "$type": "typography",
1044
- "$description": "Uses the same size as body (large) with a heavier weight of semibold (600)."
1084
+ "$description": "Uses the same size as body (large) with a heavier weight of semibold (600).",
1085
+ "key": "{text.title.shorthand.small}"
1045
1086
  },
1046
1087
  "name": "text-title-shorthand-small",
1047
1088
  "attributes": {},
1048
1089
  "path": ["text", "title", "shorthand", "small"],
1049
- "key": "{text.title.shorthand.small}",
1050
1090
  "value": "600 1rem/1.5 -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'",
1051
1091
  "type": "typography",
1052
1092
  "description": "Uses the same size as body (large) with a heavier weight of semibold (600)."
1053
1093
  },
1054
1094
  "text-title-size-large": {
1095
+ "key": "{text.title.size.large}",
1055
1096
  "$extensions": {
1056
1097
  "org.primer.figma": {
1057
1098
  "collection": "typography",
@@ -1068,16 +1109,17 @@
1068
1109
  "collection": "typography",
1069
1110
  "scopes": ["fontSize"]
1070
1111
  }
1071
- }
1112
+ },
1113
+ "key": "{text.title.size.large}"
1072
1114
  },
1073
1115
  "name": "text-title-size-large",
1074
1116
  "attributes": {},
1075
1117
  "path": ["text", "title", "size", "large"],
1076
- "key": "{text.title.size.large}",
1077
1118
  "value": "2rem",
1078
1119
  "type": "dimension"
1079
1120
  },
1080
1121
  "text-title-size-medium": {
1122
+ "key": "{text.title.size.medium}",
1081
1123
  "$extensions": {
1082
1124
  "org.primer.figma": {
1083
1125
  "collection": "typography",
@@ -1094,16 +1136,17 @@
1094
1136
  "collection": "typography",
1095
1137
  "scopes": ["fontSize"]
1096
1138
  }
1097
- }
1139
+ },
1140
+ "key": "{text.title.size.medium}"
1098
1141
  },
1099
1142
  "name": "text-title-size-medium",
1100
1143
  "attributes": {},
1101
1144
  "path": ["text", "title", "size", "medium"],
1102
- "key": "{text.title.size.medium}",
1103
1145
  "value": "1.25rem",
1104
1146
  "type": "dimension"
1105
1147
  },
1106
1148
  "text-title-size-small": {
1149
+ "key": "{text.title.size.small}",
1107
1150
  "$extensions": {
1108
1151
  "org.primer.figma": {
1109
1152
  "collection": "typography",
@@ -1120,16 +1163,17 @@
1120
1163
  "collection": "typography",
1121
1164
  "scopes": ["fontSize"]
1122
1165
  }
1123
- }
1166
+ },
1167
+ "key": "{text.title.size.small}"
1124
1168
  },
1125
1169
  "name": "text-title-size-small",
1126
1170
  "attributes": {},
1127
1171
  "path": ["text", "title", "size", "small"],
1128
- "key": "{text.title.size.small}",
1129
1172
  "value": "1rem",
1130
1173
  "type": "dimension"
1131
1174
  },
1132
1175
  "text-title-weight-large": {
1176
+ "key": "{text.title.weight.large}",
1133
1177
  "$extensions": {
1134
1178
  "org.primer.figma": {
1135
1179
  "collection": "typography",
@@ -1146,16 +1190,17 @@
1146
1190
  "collection": "typography",
1147
1191
  "scopes": ["fontWeight"]
1148
1192
  }
1149
- }
1193
+ },
1194
+ "key": "{text.title.weight.large}"
1150
1195
  },
1151
1196
  "name": "text-title-weight-large",
1152
1197
  "attributes": {},
1153
1198
  "path": ["text", "title", "weight", "large"],
1154
- "key": "{text.title.weight.large}",
1155
1199
  "value": 600,
1156
1200
  "type": "fontWeight"
1157
1201
  },
1158
1202
  "text-title-weight-medium": {
1203
+ "key": "{text.title.weight.medium}",
1159
1204
  "$extensions": {
1160
1205
  "org.primer.figma": {
1161
1206
  "collection": "typography",
@@ -1172,16 +1217,17 @@
1172
1217
  "collection": "typography",
1173
1218
  "scopes": ["fontWeight"]
1174
1219
  }
1175
- }
1220
+ },
1221
+ "key": "{text.title.weight.medium}"
1176
1222
  },
1177
1223
  "name": "text-title-weight-medium",
1178
1224
  "attributes": {},
1179
1225
  "path": ["text", "title", "weight", "medium"],
1180
- "key": "{text.title.weight.medium}",
1181
1226
  "value": 600,
1182
1227
  "type": "fontWeight"
1183
1228
  },
1184
1229
  "text-title-weight-small": {
1230
+ "key": "{text.title.weight.small}",
1185
1231
  "$extensions": {
1186
1232
  "org.primer.figma": {
1187
1233
  "collection": "typography",
@@ -1198,12 +1244,12 @@
1198
1244
  "collection": "typography",
1199
1245
  "scopes": ["fontWeight"]
1200
1246
  }
1201
- }
1247
+ },
1248
+ "key": "{text.title.weight.small}"
1202
1249
  },
1203
1250
  "name": "text-title-weight-small",
1204
1251
  "attributes": {},
1205
1252
  "path": ["text", "title", "weight", "small"],
1206
- "key": "{text.title.weight.small}",
1207
1253
  "value": 600,
1208
1254
  "type": "fontWeight"
1209
1255
  }