@primer/primitives 9.1.2 → 10.0.0-rc.29e661a3

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 (289) hide show
  1. package/dist/build/PrimerStyleDictionary.d.ts +1 -2
  2. package/dist/build/PrimerStyleDictionary.js +51 -64
  3. package/dist/build/filters/index.d.ts +14 -13
  4. package/dist/build/filters/index.js +14 -29
  5. package/dist/build/filters/isBorder.d.ts +3 -3
  6. package/dist/build/filters/isBorder.js +2 -6
  7. package/dist/build/filters/isColor.d.ts +3 -3
  8. package/dist/build/filters/isColor.js +8 -7
  9. package/dist/build/filters/isColorWithAlpha.d.ts +3 -3
  10. package/dist/build/filters/isColorWithAlpha.js +4 -8
  11. package/dist/build/filters/isColorWithMix.d.ts +3 -3
  12. package/dist/build/filters/isColorWithMix.js +4 -8
  13. package/dist/build/filters/isDeprecated.d.ts +3 -3
  14. package/dist/build/filters/isDeprecated.js +2 -6
  15. package/dist/build/filters/isDimension.d.ts +3 -3
  16. package/dist/build/filters/isDimension.js +2 -6
  17. package/dist/build/filters/isDuration.d.ts +3 -3
  18. package/dist/build/filters/isDuration.js +2 -6
  19. package/dist/build/filters/isFontFamily.d.ts +3 -3
  20. package/dist/build/filters/isFontFamily.js +2 -6
  21. package/dist/build/filters/isFontWeight.d.ts +3 -3
  22. package/dist/build/filters/isFontWeight.js +2 -6
  23. package/dist/build/filters/isFromFile.d.ts +3 -3
  24. package/dist/build/filters/isFromFile.js +2 -6
  25. package/dist/build/filters/isNumber.d.ts +3 -3
  26. package/dist/build/filters/isNumber.js +4 -6
  27. package/dist/build/filters/isShadow.d.ts +3 -3
  28. package/dist/build/filters/isShadow.js +2 -6
  29. package/dist/build/filters/isSource.d.ts +3 -3
  30. package/dist/build/filters/isSource.js +2 -6
  31. package/dist/build/filters/isTypography.d.ts +3 -3
  32. package/dist/build/filters/isTypography.js +2 -6
  33. package/dist/build/formats/cssAdvanced.d.ts +2 -2
  34. package/dist/build/formats/cssAdvanced.js +22 -20
  35. package/dist/build/formats/cssCustomMedia.d.ts +2 -2
  36. package/dist/build/formats/cssCustomMedia.js +16 -15
  37. package/dist/build/formats/index.d.ts +9 -9
  38. package/dist/build/formats/index.js +9 -21
  39. package/dist/build/formats/javascriptCommonJs.d.ts +2 -2
  40. package/dist/build/formats/javascriptCommonJs.js +17 -16
  41. package/dist/build/formats/javascriptEsm.d.ts +2 -2
  42. package/dist/build/formats/javascriptEsm.js +17 -16
  43. package/dist/build/formats/jsonFigma.d.ts +2 -2
  44. package/dist/build/formats/jsonFigma.js +27 -22
  45. package/dist/build/formats/jsonNestedPrefixed.d.ts +3 -3
  46. package/dist/build/formats/jsonNestedPrefixed.js +17 -15
  47. package/dist/build/formats/jsonOneDimensional.d.ts +3 -3
  48. package/dist/build/formats/jsonOneDimensional.js +24 -16
  49. package/dist/build/formats/jsonPostCssFallback.d.ts +3 -3
  50. package/dist/build/formats/jsonPostCssFallback.js +5 -12
  51. package/dist/build/formats/typescriptExportDefinition.d.ts +2 -2
  52. package/dist/build/formats/typescriptExportDefinition.js +48 -44
  53. package/dist/build/formats/utilities/getPropName.d.ts +1 -0
  54. package/dist/build/formats/utilities/getPropName.js +16 -0
  55. package/dist/build/formats/utilities/jsonToFlat.d.ts +2 -2
  56. package/dist/build/formats/utilities/jsonToFlat.js +1 -5
  57. package/dist/build/formats/utilities/jsonToNestedValue.d.ts +2 -2
  58. package/dist/build/formats/utilities/jsonToNestedValue.js +4 -6
  59. package/dist/build/formats/utilities/prefixTokens.d.ts +2 -2
  60. package/dist/build/formats/utilities/prefixTokens.js +1 -5
  61. package/dist/build/parsers/index.d.ts +1 -1
  62. package/dist/build/parsers/index.js +1 -5
  63. package/dist/build/parsers/w3cJsonParser.d.ts +2 -2
  64. package/dist/build/parsers/w3cJsonParser.js +5 -7
  65. package/dist/build/platforms/css.d.ts +1 -1
  66. package/dist/build/platforms/css.js +19 -11
  67. package/dist/build/platforms/deprecatedJson.d.ts +1 -1
  68. package/dist/build/platforms/deprecatedJson.js +3 -7
  69. package/dist/build/platforms/docJson.d.ts +1 -1
  70. package/dist/build/platforms/docJson.js +8 -7
  71. package/dist/build/platforms/fallbacks.d.ts +1 -1
  72. package/dist/build/platforms/fallbacks.js +3 -7
  73. package/dist/build/platforms/figma.d.ts +1 -1
  74. package/dist/build/platforms/figma.js +21 -14
  75. package/dist/build/platforms/index.d.ts +10 -10
  76. package/dist/build/platforms/index.js +10 -23
  77. package/dist/build/platforms/javascript.d.ts +1 -1
  78. package/dist/build/platforms/javascript.js +3 -7
  79. package/dist/build/platforms/json.d.ts +1 -1
  80. package/dist/build/platforms/json.js +3 -7
  81. package/dist/build/platforms/styleLint.d.ts +1 -1
  82. package/dist/build/platforms/styleLint.js +3 -7
  83. package/dist/build/platforms/typeDefinitions.d.ts +1 -1
  84. package/dist/build/platforms/typeDefinitions.js +6 -10
  85. package/dist/build/platforms/typescript.d.ts +1 -1
  86. package/dist/build/platforms/typescript.js +3 -7
  87. package/dist/build/schemas/alphaValue.js +4 -7
  88. package/dist/build/schemas/baseToken.d.ts +2 -2
  89. package/dist/build/schemas/baseToken.js +4 -7
  90. package/dist/build/schemas/borderToken.d.ts +5 -5
  91. package/dist/build/schemas/borderToken.js +13 -16
  92. package/dist/build/schemas/collections.js +8 -14
  93. package/dist/build/schemas/colorHexValue.js +4 -7
  94. package/dist/build/schemas/colorToken.d.ts +20 -15
  95. package/dist/build/schemas/colorToken.js +24 -24
  96. package/dist/build/schemas/designToken.js +28 -31
  97. package/dist/build/schemas/dimensionToken.d.ts +5 -5
  98. package/dist/build/schemas/dimensionToken.js +14 -17
  99. package/dist/build/schemas/dimensionValue.js +7 -10
  100. package/dist/build/schemas/durationToken.d.ts +5 -5
  101. package/dist/build/schemas/durationToken.js +8 -11
  102. package/dist/build/schemas/durationValue.js +4 -7
  103. package/dist/build/schemas/fontFamilyToken.d.ts +5 -5
  104. package/dist/build/schemas/fontFamilyToken.js +13 -16
  105. package/dist/build/schemas/fontWeightToken.d.ts +5 -5
  106. package/dist/build/schemas/fontWeightToken.js +14 -17
  107. package/dist/build/schemas/fontWeightValue.js +4 -7
  108. package/dist/build/schemas/numberToken.d.ts +5 -5
  109. package/dist/build/schemas/numberToken.js +15 -18
  110. package/dist/build/schemas/referenceValue.js +4 -7
  111. package/dist/build/schemas/scopes.js +5 -10
  112. package/dist/build/schemas/shadowToken.d.ts +5 -5
  113. package/dist/build/schemas/shadowToken.js +23 -26
  114. package/dist/build/schemas/stringToken.d.ts +5 -5
  115. package/dist/build/schemas/stringToken.js +7 -10
  116. package/dist/build/schemas/tokenName.js +4 -7
  117. package/dist/build/schemas/tokenType.d.ts +2 -2
  118. package/dist/build/schemas/tokenType.js +2 -6
  119. package/dist/build/schemas/typographyToken.d.ts +5 -5
  120. package/dist/build/schemas/typographyToken.js +14 -17
  121. package/dist/build/schemas/validTokenType.js +9 -13
  122. package/dist/build/schemas/viewportRangeToken.d.ts +5 -5
  123. package/dist/build/schemas/viewportRangeToken.js +7 -10
  124. package/dist/build/transformers/borderToCss.d.ts +3 -3
  125. package/dist/build/transformers/borderToCss.js +16 -16
  126. package/dist/build/transformers/colorToHex.d.ts +2 -2
  127. package/dist/build/transformers/colorToHex.js +11 -13
  128. package/dist/build/transformers/colorToHexMix.d.ts +2 -2
  129. package/dist/build/transformers/colorToHexMix.js +10 -15
  130. package/dist/build/transformers/colorToRgbAlpha.d.ts +2 -2
  131. package/dist/build/transformers/colorToRgbAlpha.js +10 -12
  132. package/dist/build/transformers/colorToRgbaFloat.d.ts +2 -2
  133. package/dist/build/transformers/colorToRgbaFloat.js +24 -28
  134. package/dist/build/transformers/dimensionToPixelUnitless.d.ts +2 -2
  135. package/dist/build/transformers/dimensionToPixelUnitless.js +13 -14
  136. package/dist/build/transformers/dimensionToRem.d.ts +2 -2
  137. package/dist/build/transformers/dimensionToRem.js +12 -13
  138. package/dist/build/transformers/dimensionToRemPxArray.d.ts +2 -2
  139. package/dist/build/transformers/dimensionToRemPxArray.js +11 -12
  140. package/dist/build/transformers/durationToCss.d.ts +2 -2
  141. package/dist/build/transformers/durationToCss.js +9 -10
  142. package/dist/build/transformers/figmaAttributes.d.ts +2 -2
  143. package/dist/build/transformers/figmaAttributes.js +3 -5
  144. package/dist/build/transformers/floatToPixel.d.ts +4 -4
  145. package/dist/build/transformers/floatToPixel.js +12 -14
  146. package/dist/build/transformers/fontFamilyToCss.d.ts +2 -2
  147. package/dist/build/transformers/fontFamilyToCss.js +10 -13
  148. package/dist/build/transformers/fontFamilyToFigma.d.ts +3 -3
  149. package/dist/build/transformers/fontFamilyToFigma.js +15 -17
  150. package/dist/build/transformers/fontWeightToNumber.d.ts +2 -2
  151. package/dist/build/transformers/fontWeightToNumber.js +8 -11
  152. package/dist/build/transformers/index.d.ts +24 -24
  153. package/dist/build/transformers/index.js +24 -51
  154. package/dist/build/transformers/jsonDeprecated.d.ts +2 -2
  155. package/dist/build/transformers/jsonDeprecated.js +6 -8
  156. package/dist/build/transformers/namePathToCamelCase.d.ts +2 -2
  157. package/dist/build/transformers/namePathToCamelCase.js +5 -7
  158. package/dist/build/transformers/namePathToDotNotation.d.ts +2 -2
  159. package/dist/build/transformers/namePathToDotNotation.js +6 -8
  160. package/dist/build/transformers/namePathToFigma.d.ts +3 -3
  161. package/dist/build/transformers/namePathToFigma.js +5 -8
  162. package/dist/build/transformers/namePathToKebabCase.d.ts +2 -2
  163. package/dist/build/transformers/namePathToKebabCase.js +4 -6
  164. package/dist/build/transformers/namePathToPascalCase.d.ts +2 -2
  165. package/dist/build/transformers/namePathToPascalCase.js +5 -7
  166. package/dist/build/transformers/namePathToSlashNotation.d.ts +2 -2
  167. package/dist/build/transformers/namePathToSlashNotation.js +4 -6
  168. package/dist/build/transformers/shadowToCss.d.ts +2 -2
  169. package/dist/build/transformers/shadowToCss.js +14 -15
  170. package/dist/build/transformers/typographyToCss.d.ts +2 -2
  171. package/dist/build/transformers/typographyToCss.js +13 -15
  172. package/dist/build/transformers/utilities/alpha.d.ts +1 -1
  173. package/dist/build/transformers/utilities/alpha.js +4 -8
  174. package/dist/build/transformers/utilities/checkRequiredTokenProperties.js +1 -5
  175. package/dist/build/transformers/utilities/getTokenValue.d.ts +2 -2
  176. package/dist/build/transformers/utilities/getTokenValue.js +10 -12
  177. package/dist/build/transformers/utilities/hasSpaceInString.js +1 -5
  178. package/dist/build/transformers/utilities/hexToRgbaFloat.d.ts +1 -1
  179. package/dist/build/transformers/utilities/hexToRgbaFloat.js +1 -5
  180. package/dist/build/transformers/utilities/invalidTokenError.d.ts +1 -1
  181. package/dist/build/transformers/utilities/invalidTokenError.js +11 -10
  182. package/dist/build/transformers/utilities/isRgbaFloat.js +1 -5
  183. package/dist/build/transformers/utilities/mix.js +5 -7
  184. package/dist/build/transformers/utilities/rgbaFloatToHex.js +1 -5
  185. package/dist/build/types/Border.d.ts +5 -0
  186. package/dist/build/types/BorderTokenValue.d.ts +10 -0
  187. package/dist/build/types/ColorHex.d.ts +4 -0
  188. package/dist/build/types/PlatformInitializer.d.ts +11 -0
  189. package/dist/build/types/Shadow.d.ts +5 -0
  190. package/dist/build/types/ShadowTokenValue.d.ts +14 -0
  191. package/dist/build/types/SizeEm.d.ts +4 -0
  192. package/dist/build/types/SizePx.d.ts +4 -0
  193. package/dist/build/types/SizeRem.d.ts +4 -0
  194. package/dist/build/types/StyleDictionaryConfigGenerator.d.ts +15 -0
  195. package/dist/build/types/TokenBuildInput.d.ts +8 -0
  196. package/dist/build/types/TypographyTokenValue.d.ts +12 -0
  197. package/dist/build/types/w3cTransformedToken.d.ts +8 -0
  198. package/dist/build/utilities/copyFromDir.d.ts +2 -2
  199. package/dist/build/utilities/copyFromDir.js +7 -10
  200. package/dist/build/utilities/filterStringArray.js +1 -5
  201. package/dist/build/utilities/getFlag.js +1 -5
  202. package/dist/build/utilities/index.d.ts +9 -3
  203. package/dist/build/utilities/index.js +9 -9
  204. package/dist/build/utilities/joinFriendly.js +1 -5
  205. package/dist/build/utilities/schemaErrorMessage.js +1 -5
  206. package/dist/build/utilities/toCamelCase.js +5 -9
  207. package/dist/build/utilities/toPascalCase.js +5 -9
  208. package/dist/build/utilities/treeWalker.js +2 -6
  209. package/dist/build/utilities/upperCaseFirstCharacter.js +1 -5
  210. package/dist/css/functional/themes/dark-colorblind.css +4 -4
  211. package/dist/css/functional/themes/dark-high-contrast.css +20 -20
  212. package/dist/css/functional/themes/light-high-contrast.css +14 -14
  213. package/dist/css/functional/typography/typography.css +20 -20
  214. package/dist/css/primitives.css +20 -20
  215. package/dist/docs/base/size/size.json +76 -76
  216. package/dist/docs/base/typography/typography.json +16 -16
  217. package/dist/docs/functional/motion/motion.json +18 -18
  218. package/dist/docs/functional/size/border.json +56 -56
  219. package/dist/docs/functional/size/breakpoints.json +24 -24
  220. package/dist/docs/functional/size/size-coarse.json +12 -12
  221. package/dist/docs/functional/size/size-fine.json +12 -12
  222. package/dist/docs/functional/size/size.json +264 -264
  223. package/dist/docs/functional/size/viewport.json +24 -24
  224. package/dist/docs/functional/themes/dark-colorblind.json +2310 -3186
  225. package/dist/docs/functional/themes/dark-dimmed.json +2300 -2794
  226. package/dist/docs/functional/themes/dark-high-contrast.json +2520 -5038
  227. package/dist/docs/functional/themes/dark-tritanopia.json +2351 -3003
  228. package/dist/docs/functional/themes/dark.json +2270 -2270
  229. package/dist/docs/functional/themes/light-colorblind.json +2298 -3124
  230. package/dist/docs/functional/themes/light-high-contrast.json +2419 -4645
  231. package/dist/docs/functional/themes/light-tritanopia.json +2330 -2990
  232. package/dist/docs/functional/themes/light.json +2260 -2260
  233. package/dist/docs/functional/typography/typography.json +206 -206
  234. package/dist/figma/dimension/dimension.json +489 -489
  235. package/dist/figma/figma.json +11 -3
  236. package/dist/figma/scales/dark-dimmed.json +38 -38
  237. package/dist/figma/scales/dark-high-constrast.json +38 -38
  238. package/dist/figma/scales/dark.json +35 -35
  239. package/dist/figma/scales/light-high-constrast.json +40 -40
  240. package/dist/figma/scales/light.json +40 -40
  241. package/dist/figma/shadows/dark-colorblind.json +280 -280
  242. package/dist/figma/shadows/dark-dimmed.json +280 -280
  243. package/dist/figma/shadows/dark-high-contrast.json +280 -280
  244. package/dist/figma/shadows/dark-tritanopia.json +280 -280
  245. package/dist/figma/shadows/dark.json +280 -280
  246. package/dist/figma/shadows/light-colorblind.json +281 -281
  247. package/dist/figma/shadows/light-high-contrast.json +281 -281
  248. package/dist/figma/shadows/light-tritanopia.json +281 -281
  249. package/dist/figma/shadows/light.json +281 -281
  250. package/dist/figma/themes/dark-colorblind.json +4991 -5854
  251. package/dist/figma/themes/dark-dimmed.json +5314 -5799
  252. package/dist/figma/themes/dark-high-contrast.json +4210 -6679
  253. package/dist/figma/themes/dark-tritanopia.json +5165 -5817
  254. package/dist/figma/themes/dark.json +5534 -5537
  255. package/dist/figma/themes/light-colorblind.json +4857 -5669
  256. package/dist/figma/themes/light-high-contrast.json +4198 -6372
  257. package/dist/figma/themes/light-tritanopia.json +4901 -5529
  258. package/dist/figma/themes/light.json +5349 -5349
  259. package/dist/figma/typography/typography.json +112 -156
  260. package/dist/internalCss/dark-colorblind.css +4 -4
  261. package/dist/internalCss/dark-high-contrast.css +20 -20
  262. package/dist/internalCss/light-high-contrast.css +14 -14
  263. package/dist/styleLint/base/size/size.json +38 -38
  264. package/dist/styleLint/base/typography/typography.json +8 -8
  265. package/dist/styleLint/functional/motion/motion.json +12 -12
  266. package/dist/styleLint/functional/size/border.json +30 -30
  267. package/dist/styleLint/functional/size/breakpoints.json +12 -12
  268. package/dist/styleLint/functional/size/size-coarse.json +6 -6
  269. package/dist/styleLint/functional/size/size-fine.json +6 -6
  270. package/dist/styleLint/functional/size/size.json +132 -132
  271. package/dist/styleLint/functional/size/viewport.json +12 -12
  272. package/dist/styleLint/functional/themes/dark-colorblind.json +1171 -2047
  273. package/dist/styleLint/functional/themes/dark-dimmed.json +1160 -1654
  274. package/dist/styleLint/functional/themes/dark-high-contrast.json +1307 -3825
  275. package/dist/styleLint/functional/themes/dark-tritanopia.json +1232 -1884
  276. package/dist/styleLint/functional/themes/dark.json +1140 -1140
  277. package/dist/styleLint/functional/themes/light-colorblind.json +1198 -2024
  278. package/dist/styleLint/functional/themes/light-high-contrast.json +1270 -3496
  279. package/dist/styleLint/functional/themes/light-tritanopia.json +1205 -1865
  280. package/dist/styleLint/functional/themes/light.json +1130 -1130
  281. package/dist/styleLint/functional/typography/typography.json +114 -114
  282. package/package.json +19 -10
  283. package/src/tokens/functional/color/dark/overrides/dark.high-contrast.json5 +4 -4
  284. package/src/tokens/functional/color/dark/overrides/dark.protanopia-deuteranopia.json5 +6 -0
  285. package/src/tokens/functional/color/dark/overrides/dark.tritanopia.json5 +21 -3
  286. package/src/tokens/functional/color/dark/primitives-dark.json5 +3 -3
  287. package/src/tokens/functional/color/light/overrides/light.protanopia-deuteranopia.json5 +4 -1
  288. package/src/tokens/functional/color/light/overrides/light.tritanopia.json5 +4 -1
  289. package/src/tokens/functional/color/light/primitives-light.json5 +2 -2
@@ -1,47 +1,47 @@
1
1
  {
2
2
  "motion-loading-delay-default": {
3
- "value": "1000ms",
4
- "$type": "duration",
5
- "comment": "The amount of time to wait before showing a loading indicator or announcing a loading state to assistive technologies.",
6
3
  "filePath": "src/tokens/functional/motion/loading.json5",
7
4
  "isSource": true,
8
5
  "original": {
9
- "value": "1000ms",
6
+ "$value": "1000ms",
10
7
  "$type": "duration",
11
- "comment": "The amount of time to wait before showing a loading indicator or announcing a loading state to assistive technologies."
8
+ "$description": "The amount of time to wait before showing a loading indicator or announcing a loading state to assistive technologies."
12
9
  },
13
10
  "name": "motion-loading-delay-default",
14
11
  "attributes": {},
15
- "path": ["motion", "loading", "delay", "default"]
12
+ "path": ["motion", "loading", "delay", "default"],
13
+ "value": "1000ms",
14
+ "type": "duration",
15
+ "description": "The amount of time to wait before showing a loading indicator or announcing a loading state to assistive technologies."
16
16
  },
17
17
  "motion-spinner-duration-rotation": {
18
- "value": "1000ms",
19
- "$type": "duration",
20
- "comment": "The amount of time it takes the \"Spinner\" loading indicator to make a full 360deg rotation",
21
18
  "filePath": "src/tokens/functional/motion/patterns.json5",
22
19
  "isSource": true,
23
20
  "original": {
24
- "value": "1000ms",
21
+ "$value": "1000ms",
25
22
  "$type": "duration",
26
- "comment": "The amount of time it takes the \"Spinner\" loading indicator to make a full 360deg rotation"
23
+ "$description": "The amount of time it takes the \"Spinner\" loading indicator to make a full 360deg rotation"
27
24
  },
28
25
  "name": "motion-spinner-duration-rotation",
29
26
  "attributes": {},
30
- "path": ["motion", "spinner", "duration", "rotation"]
27
+ "path": ["motion", "spinner", "duration", "rotation"],
28
+ "value": "1000ms",
29
+ "type": "duration",
30
+ "description": "The amount of time it takes the \"Spinner\" loading indicator to make a full 360deg rotation"
31
31
  },
32
32
  "motion-skeletonLoader-shimmer-duration-scale": {
33
- "value": "1000ms",
34
- "$type": "duration",
35
- "comment": "The amount of times it takes the \"shimmer\" effect to go from the start (left) of the skeleton loader to the end (right)",
36
33
  "filePath": "src/tokens/functional/motion/patterns.json5",
37
34
  "isSource": true,
38
35
  "original": {
39
- "value": "1000ms",
36
+ "$value": "1000ms",
40
37
  "$type": "duration",
41
- "comment": "The amount of times it takes the \"shimmer\" effect to go from the start (left) of the skeleton loader to the end (right)"
38
+ "$description": "The amount of times it takes the \"shimmer\" effect to go from the start (left) of the skeleton loader to the end (right)"
42
39
  },
43
40
  "name": "motion-skeletonLoader-shimmer-duration-scale",
44
41
  "attributes": {},
45
- "path": ["motion", "skeletonLoader", "shimmer", "duration", "scale"]
42
+ "path": ["motion", "skeletonLoader", "shimmer", "duration", "scale"],
43
+ "value": "1000ms",
44
+ "type": "duration",
45
+ "description": "The amount of times it takes the \"shimmer\" effect to go from the start (left) of the skeleton loader to the end (right)"
46
46
  }
47
47
  }
@@ -1,87 +1,85 @@
1
1
  {
2
2
  "boxShadow-thin": {
3
- "value": "inset 0 0 0 max(1px, 0.0625rem)",
4
- "comment": "Thin shadow for borders",
5
- "$type": "string",
6
3
  "filePath": "src/tokens/functional/size/border.json",
7
4
  "isSource": true,
8
5
  "original": {
9
- "value": "inset 0 0 0 {borderWidth.thin}",
10
- "comment": "Thin shadow for borders",
6
+ "$value": "inset 0 0 0 {borderWidth.thin}",
7
+ "$description": "Thin shadow for borders",
11
8
  "$type": "string"
12
9
  },
13
10
  "name": "boxShadow-thin",
14
11
  "attributes": {},
15
- "path": ["boxShadow", "thin"]
12
+ "path": ["boxShadow", "thin"],
13
+ "value": "inset 0 0 0 max(1px, 0.0625rem)",
14
+ "type": "string",
15
+ "description": "Thin shadow for borders"
16
16
  },
17
17
  "boxShadow-thick": {
18
- "value": "inset 0 0 0 max(2px, 0.125rem)",
19
- "$type": "string",
20
18
  "filePath": "src/tokens/functional/size/border.json",
21
19
  "isSource": true,
22
20
  "original": {
23
- "value": "inset 0 0 0 {borderWidth.thick}",
21
+ "$value": "inset 0 0 0 {borderWidth.thick}",
24
22
  "$type": "string"
25
23
  },
26
24
  "name": "boxShadow-thick",
27
25
  "attributes": {},
28
- "path": ["boxShadow", "thick"]
26
+ "path": ["boxShadow", "thick"],
27
+ "value": "inset 0 0 0 max(2px, 0.125rem)",
28
+ "type": "string"
29
29
  },
30
30
  "boxShadow-thicker": {
31
- "value": "inset 0 0 0 max(4px, 0.25rem)",
32
- "$type": "string",
33
31
  "filePath": "src/tokens/functional/size/border.json",
34
32
  "isSource": true,
35
33
  "original": {
36
- "value": "inset 0 0 0 {borderWidth.thicker}",
34
+ "$value": "inset 0 0 0 {borderWidth.thicker}",
37
35
  "$type": "string"
38
36
  },
39
37
  "name": "boxShadow-thicker",
40
38
  "attributes": {},
41
- "path": ["boxShadow", "thicker"]
39
+ "path": ["boxShadow", "thicker"],
40
+ "value": "inset 0 0 0 max(4px, 0.25rem)",
41
+ "type": "string"
42
42
  },
43
43
  "borderWidth-thin": {
44
- "value": "max(1px, 0.0625rem)",
45
- "$type": "string",
46
44
  "filePath": "src/tokens/functional/size/border.json",
47
45
  "isSource": true,
48
46
  "original": {
49
- "value": "max(1px, 0.0625rem)",
47
+ "$value": "max(1px, 0.0625rem)",
50
48
  "$type": "string"
51
49
  },
52
50
  "name": "borderWidth-thin",
53
51
  "attributes": {},
54
- "path": ["borderWidth", "thin"]
52
+ "path": ["borderWidth", "thin"],
53
+ "value": "max(1px, 0.0625rem)",
54
+ "type": "string"
55
55
  },
56
56
  "borderWidth-thick": {
57
- "value": "max(2px, 0.125rem)",
58
- "$type": "string",
59
57
  "filePath": "src/tokens/functional/size/border.json",
60
58
  "isSource": true,
61
59
  "original": {
62
- "value": "max(2px, 0.125rem)",
60
+ "$value": "max(2px, 0.125rem)",
63
61
  "$type": "string"
64
62
  },
65
63
  "name": "borderWidth-thick",
66
64
  "attributes": {},
67
- "path": ["borderWidth", "thick"]
65
+ "path": ["borderWidth", "thick"],
66
+ "value": "max(2px, 0.125rem)",
67
+ "type": "string"
68
68
  },
69
69
  "borderWidth-thicker": {
70
- "value": "max(4px, 0.25rem)",
71
- "$type": "string",
72
70
  "filePath": "src/tokens/functional/size/border.json",
73
71
  "isSource": true,
74
72
  "original": {
75
- "value": "max(4px, 0.25rem)",
73
+ "$value": "max(4px, 0.25rem)",
76
74
  "$type": "string"
77
75
  },
78
76
  "name": "borderWidth-thicker",
79
77
  "attributes": {},
80
- "path": ["borderWidth", "thicker"]
78
+ "path": ["borderWidth", "thicker"],
79
+ "value": "max(4px, 0.25rem)",
80
+ "type": "string"
81
81
  },
82
82
  "borderRadius-small": {
83
- "value": "0.1875rem",
84
- "$type": "dimension",
85
83
  "$extensions": {
86
84
  "org.primer.figma": {
87
85
  "collection": "functional/size",
@@ -94,7 +92,7 @@
94
92
  "filePath": "src/tokens/functional/size/border.json",
95
93
  "isSource": true,
96
94
  "original": {
97
- "value": "3px",
95
+ "$value": "3px",
98
96
  "$type": "dimension",
99
97
  "$extensions": {
100
98
  "org.primer.figma": {
@@ -108,11 +106,11 @@
108
106
  },
109
107
  "name": "borderRadius-small",
110
108
  "attributes": {},
111
- "path": ["borderRadius", "small"]
109
+ "path": ["borderRadius", "small"],
110
+ "value": "0.1875rem",
111
+ "type": "dimension"
112
112
  },
113
113
  "borderRadius-medium": {
114
- "value": "0.375rem",
115
- "$type": "dimension",
116
114
  "$extensions": {
117
115
  "org.primer.figma": {
118
116
  "collection": "functional/size",
@@ -125,7 +123,7 @@
125
123
  "filePath": "src/tokens/functional/size/border.json",
126
124
  "isSource": true,
127
125
  "original": {
128
- "value": "6px",
126
+ "$value": "6px",
129
127
  "$type": "dimension",
130
128
  "$extensions": {
131
129
  "org.primer.figma": {
@@ -139,11 +137,11 @@
139
137
  },
140
138
  "name": "borderRadius-medium",
141
139
  "attributes": {},
142
- "path": ["borderRadius", "medium"]
140
+ "path": ["borderRadius", "medium"],
141
+ "value": "0.375rem",
142
+ "type": "dimension"
143
143
  },
144
144
  "borderRadius-large": {
145
- "value": "0.75rem",
146
- "$type": "dimension",
147
145
  "$extensions": {
148
146
  "org.primer.figma": {
149
147
  "collection": "functional/size",
@@ -156,7 +154,7 @@
156
154
  "filePath": "src/tokens/functional/size/border.json",
157
155
  "isSource": true,
158
156
  "original": {
159
- "value": "12px",
157
+ "$value": "12px",
160
158
  "$type": "dimension",
161
159
  "$extensions": {
162
160
  "org.primer.figma": {
@@ -170,12 +168,11 @@
170
168
  },
171
169
  "name": "borderRadius-large",
172
170
  "attributes": {},
173
- "path": ["borderRadius", "large"]
171
+ "path": ["borderRadius", "large"],
172
+ "value": "0.75rem",
173
+ "type": "dimension"
174
174
  },
175
175
  "borderRadius-full": {
176
- "value": "624.9375rem",
177
- "$type": "dimension",
178
- "comment": "Use this border radius for pill shaped elements",
179
176
  "$extensions": {
180
177
  "org.primer.figma": {
181
178
  "collection": "functional/size",
@@ -188,9 +185,9 @@
188
185
  "filePath": "src/tokens/functional/size/border.json",
189
186
  "isSource": true,
190
187
  "original": {
191
- "value": "9999px",
188
+ "$value": "9999px",
192
189
  "$type": "dimension",
193
- "comment": "Use this border radius for pill shaped elements",
190
+ "$description": "Use this border radius for pill shaped elements",
194
191
  "$extensions": {
195
192
  "org.primer.figma": {
196
193
  "collection": "functional/size",
@@ -203,11 +200,12 @@
203
200
  },
204
201
  "name": "borderRadius-full",
205
202
  "attributes": {},
206
- "path": ["borderRadius", "full"]
203
+ "path": ["borderRadius", "full"],
204
+ "value": "624.9375rem",
205
+ "type": "dimension",
206
+ "description": "Use this border radius for pill shaped elements"
207
207
  },
208
208
  "borderRadius-default": {
209
- "value": "0.375rem",
210
- "$type": "dimension",
211
209
  "$extensions": {
212
210
  "org.primer.figma": {
213
211
  "collection": "functional/size",
@@ -220,7 +218,7 @@
220
218
  "filePath": "src/tokens/functional/size/border.json",
221
219
  "isSource": true,
222
220
  "original": {
223
- "value": "{borderRadius.medium}",
221
+ "$value": "{borderRadius.medium}",
224
222
  "$type": "dimension",
225
223
  "$extensions": {
226
224
  "org.primer.figma": {
@@ -234,32 +232,34 @@
234
232
  },
235
233
  "name": "borderRadius-default",
236
234
  "attributes": {},
237
- "path": ["borderRadius", "default"]
235
+ "path": ["borderRadius", "default"],
236
+ "value": "0.375rem",
237
+ "type": "dimension"
238
238
  },
239
239
  "outline-focus-offset": {
240
- "value": "-0.125rem",
241
- "$type": "dimension",
242
240
  "filePath": "src/tokens/functional/size/border.json",
243
241
  "isSource": true,
244
242
  "original": {
245
- "value": "-2px",
243
+ "$value": "-2px",
246
244
  "$type": "dimension"
247
245
  },
248
246
  "name": "outline-focus-offset",
249
247
  "attributes": {},
250
- "path": ["outline", "focus", "offset"]
248
+ "path": ["outline", "focus", "offset"],
249
+ "value": "-0.125rem",
250
+ "type": "dimension"
251
251
  },
252
252
  "outline-focus-width": {
253
- "value": "0.125rem",
254
- "$type": "dimension",
255
253
  "filePath": "src/tokens/functional/size/border.json",
256
254
  "isSource": true,
257
255
  "original": {
258
- "value": "2px",
256
+ "$value": "2px",
259
257
  "$type": "dimension"
260
258
  },
261
259
  "name": "outline-focus-width",
262
260
  "attributes": {},
263
- "path": ["outline", "focus", "width"]
261
+ "path": ["outline", "focus", "width"],
262
+ "value": "0.125rem",
263
+ "type": "dimension"
264
264
  }
265
265
  }
@@ -1,7 +1,5 @@
1
1
  {
2
2
  "breakpoint-xsmall": {
3
- "value": "20rem",
4
- "$type": "dimension",
5
3
  "$extensions": {
6
4
  "org.primer.figma": {
7
5
  "collection": "functional/size",
@@ -11,7 +9,7 @@
11
9
  "filePath": "src/tokens/functional/size/breakpoints.json",
12
10
  "isSource": true,
13
11
  "original": {
14
- "value": "320px",
12
+ "$value": "320px",
15
13
  "$type": "dimension",
16
14
  "$extensions": {
17
15
  "org.primer.figma": {
@@ -22,11 +20,11 @@
22
20
  },
23
21
  "name": "breakpoint-xsmall",
24
22
  "attributes": {},
25
- "path": ["breakpoint", "xsmall"]
23
+ "path": ["breakpoint", "xsmall"],
24
+ "value": "20rem",
25
+ "type": "dimension"
26
26
  },
27
27
  "breakpoint-small": {
28
- "value": "34rem",
29
- "$type": "dimension",
30
28
  "$extensions": {
31
29
  "org.primer.figma": {
32
30
  "collection": "functional/size",
@@ -36,7 +34,7 @@
36
34
  "filePath": "src/tokens/functional/size/breakpoints.json",
37
35
  "isSource": true,
38
36
  "original": {
39
- "value": "544px",
37
+ "$value": "544px",
40
38
  "$type": "dimension",
41
39
  "$extensions": {
42
40
  "org.primer.figma": {
@@ -47,11 +45,11 @@
47
45
  },
48
46
  "name": "breakpoint-small",
49
47
  "attributes": {},
50
- "path": ["breakpoint", "small"]
48
+ "path": ["breakpoint", "small"],
49
+ "value": "34rem",
50
+ "type": "dimension"
51
51
  },
52
52
  "breakpoint-medium": {
53
- "value": "48rem",
54
- "$type": "dimension",
55
53
  "$extensions": {
56
54
  "org.primer.figma": {
57
55
  "collection": "functional/size",
@@ -61,7 +59,7 @@
61
59
  "filePath": "src/tokens/functional/size/breakpoints.json",
62
60
  "isSource": true,
63
61
  "original": {
64
- "value": "768px",
62
+ "$value": "768px",
65
63
  "$type": "dimension",
66
64
  "$extensions": {
67
65
  "org.primer.figma": {
@@ -72,11 +70,11 @@
72
70
  },
73
71
  "name": "breakpoint-medium",
74
72
  "attributes": {},
75
- "path": ["breakpoint", "medium"]
73
+ "path": ["breakpoint", "medium"],
74
+ "value": "48rem",
75
+ "type": "dimension"
76
76
  },
77
77
  "breakpoint-large": {
78
- "value": "63.25rem",
79
- "$type": "dimension",
80
78
  "$extensions": {
81
79
  "org.primer.figma": {
82
80
  "collection": "functional/size",
@@ -86,7 +84,7 @@
86
84
  "filePath": "src/tokens/functional/size/breakpoints.json",
87
85
  "isSource": true,
88
86
  "original": {
89
- "value": "1012px",
87
+ "$value": "1012px",
90
88
  "$type": "dimension",
91
89
  "$extensions": {
92
90
  "org.primer.figma": {
@@ -97,11 +95,11 @@
97
95
  },
98
96
  "name": "breakpoint-large",
99
97
  "attributes": {},
100
- "path": ["breakpoint", "large"]
98
+ "path": ["breakpoint", "large"],
99
+ "value": "63.25rem",
100
+ "type": "dimension"
101
101
  },
102
102
  "breakpoint-xlarge": {
103
- "value": "80rem",
104
- "$type": "dimension",
105
103
  "$extensions": {
106
104
  "org.primer.figma": {
107
105
  "collection": "functional/size",
@@ -111,7 +109,7 @@
111
109
  "filePath": "src/tokens/functional/size/breakpoints.json",
112
110
  "isSource": true,
113
111
  "original": {
114
- "value": "1280px",
112
+ "$value": "1280px",
115
113
  "$type": "dimension",
116
114
  "$extensions": {
117
115
  "org.primer.figma": {
@@ -122,11 +120,11 @@
122
120
  },
123
121
  "name": "breakpoint-xlarge",
124
122
  "attributes": {},
125
- "path": ["breakpoint", "xlarge"]
123
+ "path": ["breakpoint", "xlarge"],
124
+ "value": "80rem",
125
+ "type": "dimension"
126
126
  },
127
127
  "breakpoint-xxlarge": {
128
- "value": "87.5rem",
129
- "$type": "dimension",
130
128
  "$extensions": {
131
129
  "org.primer.figma": {
132
130
  "collection": "functional/size",
@@ -136,7 +134,7 @@
136
134
  "filePath": "src/tokens/functional/size/breakpoints.json",
137
135
  "isSource": true,
138
136
  "original": {
139
- "value": "1400px",
137
+ "$value": "1400px",
140
138
  "$type": "dimension",
141
139
  "$extensions": {
142
140
  "org.primer.figma": {
@@ -147,6 +145,8 @@
147
145
  },
148
146
  "name": "breakpoint-xxlarge",
149
147
  "attributes": {},
150
- "path": ["breakpoint", "xxlarge"]
148
+ "path": ["breakpoint", "xxlarge"],
149
+ "value": "87.5rem",
150
+ "type": "dimension"
151
151
  }
152
152
  }
@@ -1,41 +1,41 @@
1
1
  {
2
2
  "control-minTarget-auto": {
3
- "value": "2.75rem",
4
- "$type": "dimension",
5
3
  "filePath": "src/tokens/functional/size/size-coarse.json",
6
4
  "isSource": true,
7
5
  "original": {
8
- "value": "{base.size.44}",
6
+ "$value": "{base.size.44}",
9
7
  "$type": "dimension"
10
8
  },
11
9
  "name": "control-minTarget-auto",
12
10
  "attributes": {},
13
- "path": ["control", "minTarget", "auto"]
11
+ "path": ["control", "minTarget", "auto"],
12
+ "value": "2.75rem",
13
+ "type": "dimension"
14
14
  },
15
15
  "controlStack-small-gap-auto": {
16
- "value": "1rem",
17
- "$type": "dimension",
18
16
  "filePath": "src/tokens/functional/size/size-coarse.json",
19
17
  "isSource": true,
20
18
  "original": {
21
- "value": "{base.size.16}",
19
+ "$value": "{base.size.16}",
22
20
  "$type": "dimension"
23
21
  },
24
22
  "name": "controlStack-small-gap-auto",
25
23
  "attributes": {},
26
- "path": ["controlStack", "small", "gap", "auto"]
24
+ "path": ["controlStack", "small", "gap", "auto"],
25
+ "value": "1rem",
26
+ "type": "dimension"
27
27
  },
28
28
  "controlStack-medium-gap-auto": {
29
- "value": "0.75rem",
30
- "$type": "dimension",
31
29
  "filePath": "src/tokens/functional/size/size-coarse.json",
32
30
  "isSource": true,
33
31
  "original": {
34
- "value": "{base.size.12}",
32
+ "$value": "{base.size.12}",
35
33
  "$type": "dimension"
36
34
  },
37
35
  "name": "controlStack-medium-gap-auto",
38
36
  "attributes": {},
39
- "path": ["controlStack", "medium", "gap", "auto"]
37
+ "path": ["controlStack", "medium", "gap", "auto"],
38
+ "value": "0.75rem",
39
+ "type": "dimension"
40
40
  }
41
41
  }
@@ -1,41 +1,41 @@
1
1
  {
2
2
  "control-minTarget-auto": {
3
- "value": "1rem",
4
- "$type": "dimension",
5
3
  "filePath": "src/tokens/functional/size/size-fine.json",
6
4
  "isSource": true,
7
5
  "original": {
8
- "value": "{base.size.16}",
6
+ "$value": "{base.size.16}",
9
7
  "$type": "dimension"
10
8
  },
11
9
  "name": "control-minTarget-auto",
12
10
  "attributes": {},
13
- "path": ["control", "minTarget", "auto"]
11
+ "path": ["control", "minTarget", "auto"],
12
+ "value": "1rem",
13
+ "type": "dimension"
14
14
  },
15
15
  "controlStack-small-gap-auto": {
16
- "value": "0.5rem",
17
- "$type": "dimension",
18
16
  "filePath": "src/tokens/functional/size/size-fine.json",
19
17
  "isSource": true,
20
18
  "original": {
21
- "value": "{base.size.8}",
19
+ "$value": "{base.size.8}",
22
20
  "$type": "dimension"
23
21
  },
24
22
  "name": "controlStack-small-gap-auto",
25
23
  "attributes": {},
26
- "path": ["controlStack", "small", "gap", "auto"]
24
+ "path": ["controlStack", "small", "gap", "auto"],
25
+ "value": "0.5rem",
26
+ "type": "dimension"
27
27
  },
28
28
  "controlStack-medium-gap-auto": {
29
- "value": "0.5rem",
30
- "$type": "dimension",
31
29
  "filePath": "src/tokens/functional/size/size-fine.json",
32
30
  "isSource": true,
33
31
  "original": {
34
- "value": "{base.size.8}",
32
+ "$value": "{base.size.8}",
35
33
  "$type": "dimension"
36
34
  },
37
35
  "name": "controlStack-medium-gap-auto",
38
36
  "attributes": {},
39
- "path": ["controlStack", "medium", "gap", "auto"]
37
+ "path": ["controlStack", "medium", "gap", "auto"],
38
+ "value": "0.5rem",
39
+ "type": "dimension"
40
40
  }
41
41
  }