@primer/primitives 10.1.0-rc.f1589f93 → 10.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.
Files changed (119) hide show
  1. package/README.md +0 -21
  2. package/dist/build/filters/index.d.ts +0 -1
  3. package/dist/build/filters/index.js +0 -1
  4. package/dist/build/formats/jsonFigma.js +1 -2
  5. package/dist/build/platforms/css.js +6 -7
  6. package/dist/build/platforms/docJson.js +0 -1
  7. package/dist/build/platforms/fallbacks.js +0 -1
  8. package/dist/build/platforms/javascript.js +0 -1
  9. package/dist/build/platforms/json.js +0 -1
  10. package/dist/build/platforms/styleLint.js +0 -1
  11. package/dist/build/platforms/typescript.js +0 -1
  12. package/dist/build/primerStyleDictionary.js +7 -3
  13. package/dist/build/schemas/colorToken.d.ts +0 -18
  14. package/dist/build/schemas/colorToken.js +0 -7
  15. package/dist/build/transformers/borderToCss.js +2 -2
  16. package/dist/build/transformers/colorToRgbaFloat.js +2 -12
  17. package/dist/build/transformers/index.d.ts +0 -1
  18. package/dist/build/transformers/index.js +0 -1
  19. package/dist/css/functional/size/border.css +7 -6
  20. package/dist/css/functional/themes/dark-colorblind.css +60 -6
  21. package/dist/css/functional/themes/dark-dimmed.css +60 -6
  22. package/dist/css/functional/themes/dark-high-contrast.css +60 -6
  23. package/dist/css/functional/themes/dark-tritanopia.css +60 -6
  24. package/dist/css/functional/themes/dark.css +60 -6
  25. package/dist/css/functional/themes/light-colorblind.css +60 -6
  26. package/dist/css/functional/themes/light-high-contrast.css +60 -6
  27. package/dist/css/functional/themes/light-tritanopia.css +60 -6
  28. package/dist/css/functional/themes/light.css +60 -6
  29. package/dist/css/primitives.css +7 -6
  30. package/dist/docs/base/size/size.json +19 -19
  31. package/dist/docs/base/typography/typography.json +4 -4
  32. package/dist/docs/functional/size/border.json +41 -28
  33. package/dist/docs/functional/size/breakpoints.json +6 -6
  34. package/dist/docs/functional/size/size-coarse.json +3 -3
  35. package/dist/docs/functional/size/size-fine.json +3 -3
  36. package/dist/docs/functional/size/size.json +66 -66
  37. package/dist/docs/functional/size/viewport.json +6 -6
  38. package/dist/docs/functional/themes/dark-colorblind.json +475 -128
  39. package/dist/docs/functional/themes/dark-dimmed.json +519 -444
  40. package/dist/docs/functional/themes/dark-high-contrast.json +490 -241
  41. package/dist/docs/functional/themes/dark-tritanopia.json +485 -200
  42. package/dist/docs/functional/themes/dark.json +469 -102
  43. package/dist/docs/functional/themes/light-colorblind.json +463 -94
  44. package/dist/docs/functional/themes/light-high-contrast.json +487 -274
  45. package/dist/docs/functional/themes/light-tritanopia.json +463 -102
  46. package/dist/docs/functional/themes/light.json +460 -105
  47. package/dist/docs/functional/typography/typography.json +46 -46
  48. package/dist/fallbacks/functional/size/border.json +7 -6
  49. package/dist/figma/themes/dark-colorblind.json +14 -54
  50. package/dist/figma/themes/dark-dimmed.json +15 -356
  51. package/dist/figma/themes/dark-high-contrast.json +10 -129
  52. package/dist/figma/themes/dark-tritanopia.json +14 -111
  53. package/dist/figma/themes/dark.json +14 -34
  54. package/dist/figma/themes/light-colorblind.json +10 -20
  55. package/dist/figma/themes/light-high-contrast.json +10 -177
  56. package/dist/figma/themes/light-tritanopia.json +10 -24
  57. package/dist/figma/themes/light.json +10 -32
  58. package/dist/internalCss/dark-colorblind.css +88 -6
  59. package/dist/internalCss/dark-dimmed.css +88 -6
  60. package/dist/internalCss/dark-high-contrast.css +88 -6
  61. package/dist/internalCss/dark-tritanopia.css +88 -6
  62. package/dist/internalCss/dark.css +88 -6
  63. package/dist/internalCss/light-colorblind.css +88 -6
  64. package/dist/internalCss/light-high-contrast.css +88 -6
  65. package/dist/internalCss/light-tritanopia.css +88 -6
  66. package/dist/internalCss/light.css +88 -6
  67. package/dist/styleLint/base/size/size.json +19 -19
  68. package/dist/styleLint/base/typography/typography.json +4 -4
  69. package/dist/styleLint/functional/size/border.json +41 -28
  70. package/dist/styleLint/functional/size/breakpoints.json +6 -6
  71. package/dist/styleLint/functional/size/size-coarse.json +3 -3
  72. package/dist/styleLint/functional/size/size-fine.json +3 -3
  73. package/dist/styleLint/functional/size/size.json +66 -66
  74. package/dist/styleLint/functional/size/viewport.json +6 -6
  75. package/dist/styleLint/functional/themes/dark-colorblind.json +475 -128
  76. package/dist/styleLint/functional/themes/dark-dimmed.json +519 -444
  77. package/dist/styleLint/functional/themes/dark-high-contrast.json +490 -241
  78. package/dist/styleLint/functional/themes/dark-tritanopia.json +485 -200
  79. package/dist/styleLint/functional/themes/dark.json +469 -102
  80. package/dist/styleLint/functional/themes/light-colorblind.json +463 -94
  81. package/dist/styleLint/functional/themes/light-high-contrast.json +487 -274
  82. package/dist/styleLint/functional/themes/light-tritanopia.json +463 -102
  83. package/dist/styleLint/functional/themes/light.json +460 -105
  84. package/dist/styleLint/functional/typography/typography.json +46 -46
  85. package/package.json +1 -1
  86. package/src/tokens/base/typography/typography.json5 +48 -0
  87. package/src/tokens/functional/border/border.json5 +236 -0
  88. package/src/tokens/functional/color/dark/app-dark.json5 +0 -2
  89. package/src/tokens/functional/color/dark/overrides/dark.dimmed.json5 +120 -6
  90. package/src/tokens/functional/color/dark/overrides/dark.high-contrast.json5 +46 -29
  91. package/src/tokens/functional/color/dark/overrides/dark.protanopia-deuteranopia.json5 +15 -20
  92. package/src/tokens/functional/color/dark/overrides/dark.tritanopia.json5 +32 -18
  93. package/src/tokens/functional/color/dark/patterns-dark.json5 +13 -45
  94. package/src/tokens/functional/color/dark/primitives-dark.json5 +1 -6
  95. package/src/tokens/functional/color/light/overrides/light.high-contrast.json5 +67 -20
  96. package/src/tokens/functional/color/light/overrides/light.protanopia-deuteranopia.json5 +4 -21
  97. package/src/tokens/functional/color/light/overrides/light.tritanopia.json5 +3 -16
  98. package/src/tokens/functional/color/light/patterns-light.json5 +11 -47
  99. package/src/tokens/functional/color/light/primitives-light.json5 +2 -10
  100. package/src/tokens/functional/size/border.json5 +115 -0
  101. package/src/tokens/functional/typography/typography.json5 +527 -0
  102. package/dist/build/filters/isColorWithMix.d.ts +0 -7
  103. package/dist/build/filters/isColorWithMix.js +0 -24
  104. package/dist/build/transformers/colorToHexMix.d.ts +0 -8
  105. package/dist/build/transformers/colorToHexMix.js +0 -20
  106. package/dist/build/transformers/utilities/mix.d.ts +0 -5
  107. package/dist/build/transformers/utilities/mix.js +0 -38
  108. package/src/tokens/base/typography/typography.json +0 -48
  109. package/src/tokens/functional/border/dark.json5 +0 -12
  110. package/src/tokens/functional/border/light.json5 +0 -12
  111. package/src/tokens/functional/color/dark/patterns-dark.json +0 -3963
  112. package/src/tokens/functional/size/border.json +0 -111
  113. package/src/tokens/functional/typography/typography.json +0 -527
  114. /package/src/tokens/base/size/{size.json → size.json5} +0 -0
  115. /package/src/tokens/functional/size/{breakpoints.json → breakpoints.json5} +0 -0
  116. /package/src/tokens/functional/size/{size-coarse.json → size-coarse.json5} +0 -0
  117. /package/src/tokens/functional/size/{size-fine.json → size-fine.json5} +0 -0
  118. /package/src/tokens/functional/size/{size.json → size.json5} +0 -0
  119. /package/src/tokens/functional/size/{viewport.json → viewport.json5} +0 -0
@@ -8,7 +8,7 @@
8
8
  "scopes": ["fontFamily"]
9
9
  }
10
10
  },
11
- "filePath": "src/tokens/functional/typography/typography.json",
11
+ "filePath": "src/tokens/functional/typography/typography.json5",
12
12
  "isSource": true,
13
13
  "original": {
14
14
  "$value": "-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'",
@@ -33,7 +33,7 @@
33
33
  "scopes": ["fontFamily"]
34
34
  }
35
35
  },
36
- "filePath": "src/tokens/functional/typography/typography.json",
36
+ "filePath": "src/tokens/functional/typography/typography.json5",
37
37
  "isSource": true,
38
38
  "original": {
39
39
  "$value": "-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'",
@@ -58,7 +58,7 @@
58
58
  "scopes": ["fontFamily"]
59
59
  }
60
60
  },
61
- "filePath": "src/tokens/functional/typography/typography.json",
61
+ "filePath": "src/tokens/functional/typography/typography.json5",
62
62
  "isSource": true,
63
63
  "original": {
64
64
  "$value": "-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'",
@@ -83,7 +83,7 @@
83
83
  "scopes": ["fontFamily"]
84
84
  }
85
85
  },
86
- "filePath": "src/tokens/functional/typography/typography.json",
86
+ "filePath": "src/tokens/functional/typography/typography.json5",
87
87
  "isSource": true,
88
88
  "original": {
89
89
  "$value": "ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace",
@@ -112,7 +112,7 @@
112
112
  "fontSizeInPx": 40
113
113
  }
114
114
  },
115
- "filePath": "src/tokens/functional/typography/typography.json",
115
+ "filePath": "src/tokens/functional/typography/typography.json5",
116
116
  "isSource": true,
117
117
  "original": {
118
118
  "$value": 1.4,
@@ -141,7 +141,7 @@
141
141
  "scopes": ["fontSize"]
142
142
  }
143
143
  },
144
- "filePath": "src/tokens/functional/typography/typography.json",
144
+ "filePath": "src/tokens/functional/typography/typography.json5",
145
145
  "isSource": true,
146
146
  "original": {
147
147
  "$value": "40px",
@@ -169,7 +169,7 @@
169
169
  "scopes": ["lineHeight"]
170
170
  }
171
171
  },
172
- "filePath": "src/tokens/functional/typography/typography.json",
172
+ "filePath": "src/tokens/functional/typography/typography.json5",
173
173
  "isSource": true,
174
174
  "original": {
175
175
  "$value": 1.4,
@@ -197,7 +197,7 @@
197
197
  "scopes": ["fontWeight"]
198
198
  }
199
199
  },
200
- "filePath": "src/tokens/functional/typography/typography.json",
200
+ "filePath": "src/tokens/functional/typography/typography.json5",
201
201
  "isSource": true,
202
202
  "original": {
203
203
  "$value": "{base.text.weight.medium}",
@@ -217,7 +217,7 @@
217
217
  "$value": "500 2.5rem,40px/1.4 -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'",
218
218
  "$type": "typography",
219
219
  "$description": "Hero-style text for brand to product transition pages. Utilize Title (large) styles on narrow viewports.",
220
- "filePath": "src/tokens/functional/typography/typography.json",
220
+ "filePath": "src/tokens/functional/typography/typography.json5",
221
221
  "isSource": true,
222
222
  "original": {
223
223
  "$value": {
@@ -242,7 +242,7 @@
242
242
  "scopes": ["fontSize"]
243
243
  }
244
244
  },
245
- "filePath": "src/tokens/functional/typography/typography.json",
245
+ "filePath": "src/tokens/functional/typography/typography.json5",
246
246
  "isSource": true,
247
247
  "original": {
248
248
  "$value": "32px",
@@ -267,7 +267,7 @@
267
267
  "scopes": ["fontSize"]
268
268
  }
269
269
  },
270
- "filePath": "src/tokens/functional/typography/typography.json",
270
+ "filePath": "src/tokens/functional/typography/typography.json5",
271
271
  "isSource": true,
272
272
  "original": {
273
273
  "$value": "20px",
@@ -292,7 +292,7 @@
292
292
  "scopes": ["fontSize"]
293
293
  }
294
294
  },
295
- "filePath": "src/tokens/functional/typography/typography.json",
295
+ "filePath": "src/tokens/functional/typography/typography.json5",
296
296
  "isSource": true,
297
297
  "original": {
298
298
  "$value": "16px",
@@ -320,7 +320,7 @@
320
320
  "scopes": ["lineHeight"]
321
321
  }
322
322
  },
323
- "filePath": "src/tokens/functional/typography/typography.json",
323
+ "filePath": "src/tokens/functional/typography/typography.json5",
324
324
  "isSource": true,
325
325
  "original": {
326
326
  "$value": 1.5,
@@ -351,7 +351,7 @@
351
351
  "scopes": ["lineHeight"]
352
352
  }
353
353
  },
354
- "filePath": "src/tokens/functional/typography/typography.json",
354
+ "filePath": "src/tokens/functional/typography/typography.json5",
355
355
  "isSource": true,
356
356
  "original": {
357
357
  "$value": 1.6,
@@ -382,7 +382,7 @@
382
382
  "scopes": ["lineHeight"]
383
383
  }
384
384
  },
385
- "filePath": "src/tokens/functional/typography/typography.json",
385
+ "filePath": "src/tokens/functional/typography/typography.json5",
386
386
  "isSource": true,
387
387
  "original": {
388
388
  "$value": 1.5,
@@ -410,7 +410,7 @@
410
410
  "scopes": ["fontWeight"]
411
411
  }
412
412
  },
413
- "filePath": "src/tokens/functional/typography/typography.json",
413
+ "filePath": "src/tokens/functional/typography/typography.json5",
414
414
  "isSource": true,
415
415
  "original": {
416
416
  "$value": "{base.text.weight.semibold}",
@@ -435,7 +435,7 @@
435
435
  "scopes": ["fontWeight"]
436
436
  }
437
437
  },
438
- "filePath": "src/tokens/functional/typography/typography.json",
438
+ "filePath": "src/tokens/functional/typography/typography.json5",
439
439
  "isSource": true,
440
440
  "original": {
441
441
  "$value": "{base.text.weight.semibold}",
@@ -460,7 +460,7 @@
460
460
  "scopes": ["fontWeight"]
461
461
  }
462
462
  },
463
- "filePath": "src/tokens/functional/typography/typography.json",
463
+ "filePath": "src/tokens/functional/typography/typography.json5",
464
464
  "isSource": true,
465
465
  "original": {
466
466
  "$value": "{base.text.weight.semibold}",
@@ -480,7 +480,7 @@
480
480
  "$value": "600 2rem,32px/1.5 -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'",
481
481
  "$type": "typography",
482
482
  "$description": "Page headings for user-created objects, such as issues or pull requests. Utilize title (medium) styles on narrow viewports.",
483
- "filePath": "src/tokens/functional/typography/typography.json",
483
+ "filePath": "src/tokens/functional/typography/typography.json5",
484
484
  "isSource": true,
485
485
  "original": {
486
486
  "$value": {
@@ -500,7 +500,7 @@
500
500
  "$value": "600 1.25rem,20px/1.6 -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'",
501
501
  "$type": "typography",
502
502
  "$description": "Default page title. The 32px-equivalent line-height matches with button and other medium control heights. Great for page header composition.",
503
- "filePath": "src/tokens/functional/typography/typography.json",
503
+ "filePath": "src/tokens/functional/typography/typography.json5",
504
504
  "isSource": true,
505
505
  "original": {
506
506
  "$value": {
@@ -520,7 +520,7 @@
520
520
  "$value": "600 1rem,16px/1.5 -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'",
521
521
  "$type": "typography",
522
522
  "$description": "Uses the same size as body (large) with a heavier weight of semibold (600).",
523
- "filePath": "src/tokens/functional/typography/typography.json",
523
+ "filePath": "src/tokens/functional/typography/typography.json5",
524
524
  "isSource": true,
525
525
  "original": {
526
526
  "$value": {
@@ -545,7 +545,7 @@
545
545
  "scopes": ["fontSize"]
546
546
  }
547
547
  },
548
- "filePath": "src/tokens/functional/typography/typography.json",
548
+ "filePath": "src/tokens/functional/typography/typography.json5",
549
549
  "isSource": true,
550
550
  "original": {
551
551
  "$value": "20px",
@@ -573,7 +573,7 @@
573
573
  "scopes": ["lineHeight"]
574
574
  }
575
575
  },
576
- "filePath": "src/tokens/functional/typography/typography.json",
576
+ "filePath": "src/tokens/functional/typography/typography.json5",
577
577
  "isSource": true,
578
578
  "original": {
579
579
  "$value": 1.6,
@@ -601,7 +601,7 @@
601
601
  "scopes": ["fontWeight"]
602
602
  }
603
603
  },
604
- "filePath": "src/tokens/functional/typography/typography.json",
604
+ "filePath": "src/tokens/functional/typography/typography.json5",
605
605
  "isSource": true,
606
606
  "original": {
607
607
  "$value": "{base.text.weight.normal}",
@@ -621,7 +621,7 @@
621
621
  "$value": "400 1.25rem,20px/1.6 -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'",
622
622
  "$type": "typography",
623
623
  "$description": "Page sections/sub headings, or less important object names in page titles (automated action titles, for example). Same line-height as title (medium).",
624
- "filePath": "src/tokens/functional/typography/typography.json",
624
+ "filePath": "src/tokens/functional/typography/typography.json5",
625
625
  "isSource": true,
626
626
  "original": {
627
627
  "$value": {
@@ -646,7 +646,7 @@
646
646
  "scopes": ["fontSize"]
647
647
  }
648
648
  },
649
- "filePath": "src/tokens/functional/typography/typography.json",
649
+ "filePath": "src/tokens/functional/typography/typography.json5",
650
650
  "isSource": true,
651
651
  "original": {
652
652
  "$value": "16px",
@@ -671,7 +671,7 @@
671
671
  "scopes": ["fontSize"]
672
672
  }
673
673
  },
674
- "filePath": "src/tokens/functional/typography/typography.json",
674
+ "filePath": "src/tokens/functional/typography/typography.json5",
675
675
  "isSource": true,
676
676
  "original": {
677
677
  "$value": "14px",
@@ -696,7 +696,7 @@
696
696
  "scopes": ["fontSize"]
697
697
  }
698
698
  },
699
- "filePath": "src/tokens/functional/typography/typography.json",
699
+ "filePath": "src/tokens/functional/typography/typography.json5",
700
700
  "isSource": true,
701
701
  "original": {
702
702
  "$value": "12px",
@@ -724,7 +724,7 @@
724
724
  "scopes": ["lineHeight"]
725
725
  }
726
726
  },
727
- "filePath": "src/tokens/functional/typography/typography.json",
727
+ "filePath": "src/tokens/functional/typography/typography.json5",
728
728
  "isSource": true,
729
729
  "original": {
730
730
  "$value": 1.5,
@@ -755,7 +755,7 @@
755
755
  "scopes": ["lineHeight"]
756
756
  }
757
757
  },
758
- "filePath": "src/tokens/functional/typography/typography.json",
758
+ "filePath": "src/tokens/functional/typography/typography.json5",
759
759
  "isSource": true,
760
760
  "original": {
761
761
  "$value": 1.4285,
@@ -786,7 +786,7 @@
786
786
  "scopes": ["lineHeight"]
787
787
  }
788
788
  },
789
- "filePath": "src/tokens/functional/typography/typography.json",
789
+ "filePath": "src/tokens/functional/typography/typography.json5",
790
790
  "isSource": true,
791
791
  "original": {
792
792
  "$value": 1.6666,
@@ -814,7 +814,7 @@
814
814
  "scopes": ["fontWeight"]
815
815
  }
816
816
  },
817
- "filePath": "src/tokens/functional/typography/typography.json",
817
+ "filePath": "src/tokens/functional/typography/typography.json5",
818
818
  "isSource": true,
819
819
  "original": {
820
820
  "$value": "{base.text.weight.normal}",
@@ -834,7 +834,7 @@
834
834
  "$value": "400 1rem,16px/1.5 -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'",
835
835
  "$type": "typography",
836
836
  "$description": "User-generated content, markdown rendering.",
837
- "filePath": "src/tokens/functional/typography/typography.json",
837
+ "filePath": "src/tokens/functional/typography/typography.json5",
838
838
  "isSource": true,
839
839
  "original": {
840
840
  "$value": {
@@ -854,7 +854,7 @@
854
854
  "$value": "400 0.875rem,14px/1.4285 -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'",
855
855
  "$type": "typography",
856
856
  "$description": "Default UI font. Most commonly used for body text.",
857
- "filePath": "src/tokens/functional/typography/typography.json",
857
+ "filePath": "src/tokens/functional/typography/typography.json5",
858
858
  "isSource": true,
859
859
  "original": {
860
860
  "$value": {
@@ -874,7 +874,7 @@
874
874
  "$value": "400 0.75rem,12px/1.6666 -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'",
875
875
  "$type": "typography",
876
876
  "$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.",
877
- "filePath": "src/tokens/functional/typography/typography.json",
877
+ "filePath": "src/tokens/functional/typography/typography.json5",
878
878
  "isSource": true,
879
879
  "original": {
880
880
  "$value": {
@@ -899,7 +899,7 @@
899
899
  "scopes": ["fontSize"]
900
900
  }
901
901
  },
902
- "filePath": "src/tokens/functional/typography/typography.json",
902
+ "filePath": "src/tokens/functional/typography/typography.json5",
903
903
  "isSource": true,
904
904
  "original": {
905
905
  "$value": "12px",
@@ -927,7 +927,7 @@
927
927
  "scopes": ["lineHeight"]
928
928
  }
929
929
  },
930
- "filePath": "src/tokens/functional/typography/typography.json",
930
+ "filePath": "src/tokens/functional/typography/typography.json5",
931
931
  "isSource": true,
932
932
  "original": {
933
933
  "$value": 1.3333,
@@ -955,7 +955,7 @@
955
955
  "scopes": ["fontWeight"]
956
956
  }
957
957
  },
958
- "filePath": "src/tokens/functional/typography/typography.json",
958
+ "filePath": "src/tokens/functional/typography/typography.json5",
959
959
  "isSource": true,
960
960
  "original": {
961
961
  "$value": "{base.text.weight.normal}",
@@ -975,7 +975,7 @@
975
975
  "$value": "400 0.75rem,12px/1.3333 -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'",
976
976
  "$type": "typography",
977
977
  "$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.",
978
- "filePath": "src/tokens/functional/typography/typography.json",
978
+ "filePath": "src/tokens/functional/typography/typography.json5",
979
979
  "isSource": true,
980
980
  "original": {
981
981
  "$value": {
@@ -1000,7 +1000,7 @@
1000
1000
  "scopes": ["fontSize"]
1001
1001
  }
1002
1002
  },
1003
- "filePath": "src/tokens/functional/typography/typography.json",
1003
+ "filePath": "src/tokens/functional/typography/typography.json5",
1004
1004
  "isSource": true,
1005
1005
  "original": {
1006
1006
  "$value": "13px",
@@ -1028,7 +1028,7 @@
1028
1028
  "scopes": ["lineHeight"]
1029
1029
  }
1030
1030
  },
1031
- "filePath": "src/tokens/functional/typography/typography.json",
1031
+ "filePath": "src/tokens/functional/typography/typography.json5",
1032
1032
  "isSource": true,
1033
1033
  "original": {
1034
1034
  "$value": 1.5385,
@@ -1056,7 +1056,7 @@
1056
1056
  "scopes": ["fontWeight"]
1057
1057
  }
1058
1058
  },
1059
- "filePath": "src/tokens/functional/typography/typography.json",
1059
+ "filePath": "src/tokens/functional/typography/typography.json5",
1060
1060
  "isSource": true,
1061
1061
  "original": {
1062
1062
  "$value": "{base.text.weight.normal}",
@@ -1076,7 +1076,7 @@
1076
1076
  "$value": "400 0.8125rem,13px/1.5385 ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace",
1077
1077
  "$type": "typography",
1078
1078
  "$description": "Default style for rendering code blocks.",
1079
- "filePath": "src/tokens/functional/typography/typography.json",
1079
+ "filePath": "src/tokens/functional/typography/typography.json5",
1080
1080
  "isSource": true,
1081
1081
  "original": {
1082
1082
  "$value": {
@@ -1101,7 +1101,7 @@
1101
1101
  "scopes": ["fontSize"]
1102
1102
  }
1103
1103
  },
1104
- "filePath": "src/tokens/functional/typography/typography.json",
1104
+ "filePath": "src/tokens/functional/typography/typography.json5",
1105
1105
  "isSource": true,
1106
1106
  "original": {
1107
1107
  "$value": "0.9285em",
@@ -1126,7 +1126,7 @@
1126
1126
  "scopes": ["fontWeight"]
1127
1127
  }
1128
1128
  },
1129
- "filePath": "src/tokens/functional/typography/typography.json",
1129
+ "filePath": "src/tokens/functional/typography/typography.json5",
1130
1130
  "isSource": true,
1131
1131
  "original": {
1132
1132
  "$value": "{base.text.weight.normal}",
@@ -1146,7 +1146,7 @@
1146
1146
  "$value": "400 ,14.856px ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace",
1147
1147
  "$type": "typography",
1148
1148
  "$description": "Inline code blocks using em units to inherit size from its parent.",
1149
- "filePath": "src/tokens/functional/typography/typography.json",
1149
+ "filePath": "src/tokens/functional/typography/typography.json5",
1150
1150
  "isSource": true,
1151
1151
  "original": {
1152
1152
  "$value": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primer/primitives",
3
- "version": "10.1.0-rc.f1589f93",
3
+ "version": "10.1.0",
4
4
  "description": "Typography, spacing, and color primitives for Primer design system",
5
5
  "type": "module",
6
6
  "files": [
@@ -0,0 +1,48 @@
1
+ {
2
+ base: {
3
+ text: {
4
+ weight: {
5
+ light: {
6
+ $type: 'fontWeight',
7
+ $value: 300,
8
+ $extensions: {
9
+ 'org.primer.figma': {
10
+ collection: 'base/typography',
11
+ scopes: ['fontWeight'],
12
+ },
13
+ },
14
+ },
15
+ normal: {
16
+ $value: 400,
17
+ $type: 'fontWeight',
18
+ $extensions: {
19
+ 'org.primer.figma': {
20
+ collection: 'base/typography',
21
+ scopes: ['fontWeight'],
22
+ },
23
+ },
24
+ },
25
+ medium: {
26
+ $value: 500,
27
+ $type: 'fontWeight',
28
+ $extensions: {
29
+ 'org.primer.figma': {
30
+ collection: 'base/typography',
31
+ scopes: ['fontWeight'],
32
+ },
33
+ },
34
+ },
35
+ semibold: {
36
+ $value: 600,
37
+ $type: 'fontWeight',
38
+ $extensions: {
39
+ 'org.primer.figma': {
40
+ collection: 'base/typography',
41
+ scopes: ['fontWeight'],
42
+ },
43
+ },
44
+ },
45
+ },
46
+ },
47
+ },
48
+ }