@primer/primitives 9.1.2 → 10.0.0-rc.1bc5b670

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 (328) hide show
  1. package/README.md +2 -2
  2. package/dist/build/PrimerStyleDictionary.d.ts +1 -2
  3. package/dist/build/PrimerStyleDictionary.js +52 -64
  4. package/dist/build/filters/index.d.ts +14 -13
  5. package/dist/build/filters/index.js +14 -29
  6. package/dist/build/filters/isBorder.d.ts +3 -3
  7. package/dist/build/filters/isBorder.js +2 -6
  8. package/dist/build/filters/isColor.d.ts +3 -3
  9. package/dist/build/filters/isColor.js +8 -7
  10. package/dist/build/filters/isColorWithAlpha.d.ts +3 -3
  11. package/dist/build/filters/isColorWithAlpha.js +4 -8
  12. package/dist/build/filters/isColorWithMix.d.ts +3 -3
  13. package/dist/build/filters/isColorWithMix.js +4 -8
  14. package/dist/build/filters/isCubicBezier.d.ts +7 -0
  15. package/dist/build/filters/isCubicBezier.js +10 -0
  16. package/dist/build/filters/isDeprecated.d.ts +3 -3
  17. package/dist/build/filters/isDeprecated.js +2 -6
  18. package/dist/build/filters/isDimension.d.ts +3 -3
  19. package/dist/build/filters/isDimension.js +2 -6
  20. package/dist/build/filters/isDuration.d.ts +3 -3
  21. package/dist/build/filters/isDuration.js +2 -6
  22. package/dist/build/filters/isFontFamily.d.ts +3 -3
  23. package/dist/build/filters/isFontFamily.js +2 -6
  24. package/dist/build/filters/isFontWeight.d.ts +3 -3
  25. package/dist/build/filters/isFontWeight.js +2 -6
  26. package/dist/build/filters/isFromFile.d.ts +3 -3
  27. package/dist/build/filters/isFromFile.js +2 -6
  28. package/dist/build/filters/isNumber.d.ts +3 -3
  29. package/dist/build/filters/isNumber.js +4 -6
  30. package/dist/build/filters/isShadow.d.ts +3 -3
  31. package/dist/build/filters/isShadow.js +2 -6
  32. package/dist/build/filters/isSource.d.ts +3 -3
  33. package/dist/build/filters/isSource.js +2 -6
  34. package/dist/build/filters/isTypography.d.ts +3 -3
  35. package/dist/build/filters/isTypography.js +2 -6
  36. package/dist/build/formats/cssAdvanced.d.ts +2 -2
  37. package/dist/build/formats/cssAdvanced.js +22 -20
  38. package/dist/build/formats/cssCustomMedia.d.ts +2 -2
  39. package/dist/build/formats/cssCustomMedia.js +16 -15
  40. package/dist/build/formats/index.d.ts +9 -9
  41. package/dist/build/formats/index.js +9 -21
  42. package/dist/build/formats/javascriptCommonJs.d.ts +2 -2
  43. package/dist/build/formats/javascriptCommonJs.js +17 -16
  44. package/dist/build/formats/javascriptEsm.d.ts +2 -2
  45. package/dist/build/formats/javascriptEsm.js +17 -16
  46. package/dist/build/formats/jsonFigma.d.ts +2 -2
  47. package/dist/build/formats/jsonFigma.js +27 -22
  48. package/dist/build/formats/jsonNestedPrefixed.d.ts +3 -3
  49. package/dist/build/formats/jsonNestedPrefixed.js +17 -15
  50. package/dist/build/formats/jsonOneDimensional.d.ts +3 -3
  51. package/dist/build/formats/jsonOneDimensional.js +24 -16
  52. package/dist/build/formats/jsonPostCssFallback.d.ts +3 -3
  53. package/dist/build/formats/jsonPostCssFallback.js +5 -12
  54. package/dist/build/formats/typescriptExportDefinition.d.ts +2 -2
  55. package/dist/build/formats/typescriptExportDefinition.js +50 -46
  56. package/dist/build/formats/utilities/getPropName.d.ts +1 -0
  57. package/dist/build/formats/utilities/getPropName.js +16 -0
  58. package/dist/build/formats/utilities/jsonToFlat.d.ts +2 -2
  59. package/dist/build/formats/utilities/jsonToFlat.js +1 -5
  60. package/dist/build/formats/utilities/jsonToNestedValue.d.ts +2 -2
  61. package/dist/build/formats/utilities/jsonToNestedValue.js +4 -6
  62. package/dist/build/formats/utilities/prefixTokens.d.ts +2 -2
  63. package/dist/build/formats/utilities/prefixTokens.js +1 -5
  64. package/dist/build/parsers/index.d.ts +1 -1
  65. package/dist/build/parsers/index.js +1 -5
  66. package/dist/build/parsers/w3cJsonParser.d.ts +2 -2
  67. package/dist/build/parsers/w3cJsonParser.js +7 -9
  68. package/dist/build/platforms/css.d.ts +1 -1
  69. package/dist/build/platforms/css.js +20 -11
  70. package/dist/build/platforms/deprecatedJson.d.ts +1 -1
  71. package/dist/build/platforms/deprecatedJson.js +3 -7
  72. package/dist/build/platforms/docJson.d.ts +1 -1
  73. package/dist/build/platforms/docJson.js +8 -7
  74. package/dist/build/platforms/fallbacks.d.ts +1 -1
  75. package/dist/build/platforms/fallbacks.js +3 -7
  76. package/dist/build/platforms/figma.d.ts +1 -1
  77. package/dist/build/platforms/figma.js +21 -14
  78. package/dist/build/platforms/index.d.ts +10 -10
  79. package/dist/build/platforms/index.js +10 -23
  80. package/dist/build/platforms/javascript.d.ts +1 -1
  81. package/dist/build/platforms/javascript.js +3 -7
  82. package/dist/build/platforms/json.d.ts +1 -1
  83. package/dist/build/platforms/json.js +3 -7
  84. package/dist/build/platforms/styleLint.d.ts +1 -1
  85. package/dist/build/platforms/styleLint.js +3 -7
  86. package/dist/build/platforms/typeDefinitions.d.ts +1 -1
  87. package/dist/build/platforms/typeDefinitions.js +6 -10
  88. package/dist/build/platforms/typescript.d.ts +1 -1
  89. package/dist/build/platforms/typescript.js +3 -7
  90. package/dist/build/schemas/alphaValue.js +4 -7
  91. package/dist/build/schemas/baseToken.d.ts +2 -2
  92. package/dist/build/schemas/baseToken.js +4 -7
  93. package/dist/build/schemas/borderToken.d.ts +5 -5
  94. package/dist/build/schemas/borderToken.js +13 -16
  95. package/dist/build/schemas/collections.js +8 -14
  96. package/dist/build/schemas/colorHexValue.js +4 -7
  97. package/dist/build/schemas/colorToken.d.ts +20 -15
  98. package/dist/build/schemas/colorToken.js +24 -24
  99. package/dist/build/schemas/cubicBezierToken.d.ts +18 -0
  100. package/dist/build/schemas/cubicBezierToken.js +8 -0
  101. package/dist/build/schemas/designToken.js +30 -32
  102. package/dist/build/schemas/dimensionToken.d.ts +5 -5
  103. package/dist/build/schemas/dimensionToken.js +14 -17
  104. package/dist/build/schemas/dimensionValue.js +7 -10
  105. package/dist/build/schemas/durationToken.d.ts +5 -5
  106. package/dist/build/schemas/durationToken.js +8 -11
  107. package/dist/build/schemas/durationValue.js +4 -7
  108. package/dist/build/schemas/fontFamilyToken.d.ts +5 -5
  109. package/dist/build/schemas/fontFamilyToken.js +13 -16
  110. package/dist/build/schemas/fontWeightToken.d.ts +5 -5
  111. package/dist/build/schemas/fontWeightToken.js +14 -17
  112. package/dist/build/schemas/fontWeightValue.js +4 -7
  113. package/dist/build/schemas/numberToken.d.ts +5 -5
  114. package/dist/build/schemas/numberToken.js +15 -18
  115. package/dist/build/schemas/referenceValue.js +4 -7
  116. package/dist/build/schemas/scopes.js +5 -10
  117. package/dist/build/schemas/shadowToken.d.ts +5 -5
  118. package/dist/build/schemas/shadowToken.js +23 -26
  119. package/dist/build/schemas/stringToken.d.ts +5 -5
  120. package/dist/build/schemas/stringToken.js +7 -10
  121. package/dist/build/schemas/tokenName.js +4 -7
  122. package/dist/build/schemas/tokenType.d.ts +2 -2
  123. package/dist/build/schemas/tokenType.js +2 -6
  124. package/dist/build/schemas/typographyToken.d.ts +5 -5
  125. package/dist/build/schemas/typographyToken.js +14 -17
  126. package/dist/build/schemas/validTokenType.d.ts +1 -1
  127. package/dist/build/schemas/validTokenType.js +10 -13
  128. package/dist/build/schemas/viewportRangeToken.d.ts +5 -5
  129. package/dist/build/schemas/viewportRangeToken.js +7 -10
  130. package/dist/build/transformers/borderToCss.d.ts +3 -3
  131. package/dist/build/transformers/borderToCss.js +16 -16
  132. package/dist/build/transformers/colorToHex.d.ts +2 -2
  133. package/dist/build/transformers/colorToHex.js +11 -13
  134. package/dist/build/transformers/colorToHexMix.d.ts +2 -2
  135. package/dist/build/transformers/colorToHexMix.js +10 -15
  136. package/dist/build/transformers/colorToRgbAlpha.d.ts +2 -2
  137. package/dist/build/transformers/colorToRgbAlpha.js +10 -12
  138. package/dist/build/transformers/colorToRgbaFloat.d.ts +2 -2
  139. package/dist/build/transformers/colorToRgbaFloat.js +24 -28
  140. package/dist/build/transformers/cubicBezierToCss.d.ts +8 -0
  141. package/dist/build/transformers/cubicBezierToCss.js +23 -0
  142. package/dist/build/transformers/dimensionToPixelUnitless.d.ts +2 -2
  143. package/dist/build/transformers/dimensionToPixelUnitless.js +13 -14
  144. package/dist/build/transformers/dimensionToRem.d.ts +2 -2
  145. package/dist/build/transformers/dimensionToRem.js +12 -13
  146. package/dist/build/transformers/dimensionToRemPxArray.d.ts +2 -2
  147. package/dist/build/transformers/dimensionToRemPxArray.js +11 -12
  148. package/dist/build/transformers/durationToCss.d.ts +2 -2
  149. package/dist/build/transformers/durationToCss.js +10 -11
  150. package/dist/build/transformers/figmaAttributes.d.ts +2 -2
  151. package/dist/build/transformers/figmaAttributes.js +3 -5
  152. package/dist/build/transformers/floatToPixel.d.ts +4 -4
  153. package/dist/build/transformers/floatToPixel.js +12 -14
  154. package/dist/build/transformers/fontFamilyToCss.d.ts +2 -2
  155. package/dist/build/transformers/fontFamilyToCss.js +10 -13
  156. package/dist/build/transformers/fontFamilyToFigma.d.ts +3 -3
  157. package/dist/build/transformers/fontFamilyToFigma.js +15 -17
  158. package/dist/build/transformers/fontWeightToNumber.d.ts +2 -2
  159. package/dist/build/transformers/fontWeightToNumber.js +8 -11
  160. package/dist/build/transformers/index.d.ts +25 -24
  161. package/dist/build/transformers/index.js +25 -51
  162. package/dist/build/transformers/jsonDeprecated.d.ts +2 -2
  163. package/dist/build/transformers/jsonDeprecated.js +6 -8
  164. package/dist/build/transformers/namePathToCamelCase.d.ts +2 -2
  165. package/dist/build/transformers/namePathToCamelCase.js +5 -7
  166. package/dist/build/transformers/namePathToDotNotation.d.ts +2 -2
  167. package/dist/build/transformers/namePathToDotNotation.js +6 -8
  168. package/dist/build/transformers/namePathToFigma.d.ts +3 -3
  169. package/dist/build/transformers/namePathToFigma.js +5 -8
  170. package/dist/build/transformers/namePathToKebabCase.d.ts +2 -2
  171. package/dist/build/transformers/namePathToKebabCase.js +4 -6
  172. package/dist/build/transformers/namePathToPascalCase.d.ts +2 -2
  173. package/dist/build/transformers/namePathToPascalCase.js +5 -7
  174. package/dist/build/transformers/namePathToSlashNotation.d.ts +2 -2
  175. package/dist/build/transformers/namePathToSlashNotation.js +4 -6
  176. package/dist/build/transformers/shadowToCss.d.ts +2 -2
  177. package/dist/build/transformers/shadowToCss.js +14 -15
  178. package/dist/build/transformers/typographyToCss.d.ts +2 -2
  179. package/dist/build/transformers/typographyToCss.js +13 -15
  180. package/dist/build/transformers/utilities/alpha.d.ts +1 -1
  181. package/dist/build/transformers/utilities/alpha.js +4 -8
  182. package/dist/build/transformers/utilities/checkRequiredTokenProperties.js +1 -5
  183. package/dist/build/transformers/utilities/getTokenValue.d.ts +2 -2
  184. package/dist/build/transformers/utilities/getTokenValue.js +10 -12
  185. package/dist/build/transformers/utilities/hasSpaceInString.js +1 -5
  186. package/dist/build/transformers/utilities/hexToRgbaFloat.d.ts +1 -1
  187. package/dist/build/transformers/utilities/hexToRgbaFloat.js +1 -5
  188. package/dist/build/transformers/utilities/invalidTokenError.d.ts +1 -1
  189. package/dist/build/transformers/utilities/invalidTokenError.js +11 -10
  190. package/dist/build/transformers/utilities/isRgbaFloat.js +1 -5
  191. package/dist/build/transformers/utilities/mix.js +5 -7
  192. package/dist/build/transformers/utilities/rgbaFloatToHex.js +1 -5
  193. package/dist/build/types/Border.d.ts +5 -0
  194. package/dist/build/types/BorderTokenValue.d.ts +10 -0
  195. package/dist/build/types/ColorHex.d.ts +4 -0
  196. package/dist/build/types/PlatformInitializer.d.ts +11 -0
  197. package/dist/build/types/Shadow.d.ts +5 -0
  198. package/dist/build/types/ShadowTokenValue.d.ts +14 -0
  199. package/dist/build/types/SizeEm.d.ts +4 -0
  200. package/dist/build/types/SizePx.d.ts +4 -0
  201. package/dist/build/types/SizeRem.d.ts +4 -0
  202. package/dist/build/types/StyleDictionaryConfigGenerator.d.ts +15 -0
  203. package/dist/build/types/TokenBuildInput.d.ts +8 -0
  204. package/dist/build/types/TypographyTokenValue.d.ts +12 -0
  205. package/dist/build/types/w3cTransformedToken.d.ts +8 -0
  206. package/dist/build/utilities/copyFromDir.d.ts +2 -2
  207. package/dist/build/utilities/copyFromDir.js +7 -10
  208. package/dist/build/utilities/filterStringArray.js +1 -5
  209. package/dist/build/utilities/getFlag.js +1 -5
  210. package/dist/build/utilities/index.d.ts +9 -3
  211. package/dist/build/utilities/index.js +9 -9
  212. package/dist/build/utilities/joinFriendly.js +1 -5
  213. package/dist/build/utilities/schemaErrorMessage.js +1 -5
  214. package/dist/build/utilities/toCamelCase.js +5 -9
  215. package/dist/build/utilities/toPascalCase.js +5 -9
  216. package/dist/build/utilities/treeWalker.js +2 -6
  217. package/dist/build/utilities/upperCaseFirstCharacter.js +1 -5
  218. package/dist/css/base/motion/motion.css +17 -0
  219. package/dist/css/functional/motion/motion.css +4 -3
  220. package/dist/css/functional/themes/dark-colorblind.css +58 -38
  221. package/dist/css/functional/themes/dark-dimmed.css +44 -24
  222. package/dist/css/functional/themes/dark-high-contrast.css +62 -42
  223. package/dist/css/functional/themes/dark-tritanopia.css +44 -24
  224. package/dist/css/functional/themes/dark.css +42 -22
  225. package/dist/css/functional/themes/light-colorblind.css +60 -40
  226. package/dist/css/functional/themes/light-high-contrast.css +58 -38
  227. package/dist/css/functional/themes/light-tritanopia.css +42 -22
  228. package/dist/css/functional/themes/light.css +42 -22
  229. package/dist/css/functional/typography/typography.css +43 -43
  230. package/dist/css/primitives.css +64 -46
  231. package/dist/docs/base/motion/motion.json +205 -0
  232. package/dist/docs/base/size/size.json +76 -76
  233. package/dist/docs/base/typography/typography.json +16 -16
  234. package/dist/docs/functional/motion/motion.json +33 -18
  235. package/dist/docs/functional/size/border.json +56 -56
  236. package/dist/docs/functional/size/breakpoints.json +24 -24
  237. package/dist/docs/functional/size/size-coarse.json +12 -12
  238. package/dist/docs/functional/size/size-fine.json +12 -12
  239. package/dist/docs/functional/size/size.json +264 -264
  240. package/dist/docs/functional/size/viewport.json +24 -24
  241. package/dist/docs/functional/themes/dark-colorblind.json +2868 -3462
  242. package/dist/docs/functional/themes/dark-dimmed.json +2826 -3016
  243. package/dist/docs/functional/themes/dark-high-contrast.json +2822 -5100
  244. package/dist/docs/functional/themes/dark-tritanopia.json +2829 -3203
  245. package/dist/docs/functional/themes/dark.json +2808 -2520
  246. package/dist/docs/functional/themes/light-colorblind.json +2604 -3150
  247. package/dist/docs/functional/themes/light-high-contrast.json +2653 -4609
  248. package/dist/docs/functional/themes/light-tritanopia.json +2546 -2960
  249. package/dist/docs/functional/themes/light.json +2590 -2312
  250. package/dist/docs/functional/typography/typography.json +206 -206
  251. package/dist/fallbacks/base/motion/motion.json +17 -0
  252. package/dist/fallbacks/functional/motion/motion.json +1 -0
  253. package/dist/figma/dimension/dimension.json +492 -492
  254. package/dist/figma/figma.json +21 -13
  255. package/dist/figma/scales/dark-dimmed.json +3536 -656
  256. package/dist/figma/scales/dark-high-constrast.json +3535 -655
  257. package/dist/figma/scales/dark.json +3371 -491
  258. package/dist/figma/scales/light-high-constrast.json +3532 -652
  259. package/dist/figma/scales/light.json +3367 -487
  260. package/dist/figma/shadows/dark-colorblind.json +199 -199
  261. package/dist/figma/shadows/dark-dimmed.json +199 -199
  262. package/dist/figma/shadows/dark-high-contrast.json +199 -199
  263. package/dist/figma/shadows/dark-tritanopia.json +199 -199
  264. package/dist/figma/shadows/dark.json +199 -199
  265. package/dist/figma/shadows/light-colorblind.json +189 -189
  266. package/dist/figma/shadows/light-high-contrast.json +191 -191
  267. package/dist/figma/shadows/light-tritanopia.json +189 -189
  268. package/dist/figma/shadows/light.json +189 -189
  269. package/dist/figma/themes/dark-colorblind.json +4470 -5204
  270. package/dist/figma/themes/dark-dimmed.json +4771 -5081
  271. package/dist/figma/themes/dark-high-contrast.json +4189 -6548
  272. package/dist/figma/themes/dark-tritanopia.json +4629 -5153
  273. package/dist/figma/themes/dark.json +5072 -4916
  274. package/dist/figma/themes/light-colorblind.json +4490 -5127
  275. package/dist/figma/themes/light-high-contrast.json +4170 -6201
  276. package/dist/figma/themes/light-tritanopia.json +4525 -5027
  277. package/dist/figma/themes/light.json +4982 -4825
  278. package/dist/figma/typography/typography.json +159 -203
  279. package/dist/internalCss/dark-colorblind.css +58 -38
  280. package/dist/internalCss/dark-dimmed.css +44 -24
  281. package/dist/internalCss/dark-high-contrast.css +62 -42
  282. package/dist/internalCss/dark-tritanopia.css +44 -24
  283. package/dist/internalCss/dark.css +42 -22
  284. package/dist/internalCss/light-colorblind.css +60 -40
  285. package/dist/internalCss/light-high-contrast.css +58 -38
  286. package/dist/internalCss/light-tritanopia.css +42 -22
  287. package/dist/internalCss/light.css +42 -22
  288. package/dist/styleLint/base/motion/motion.json +205 -0
  289. package/dist/styleLint/base/size/size.json +38 -38
  290. package/dist/styleLint/base/typography/typography.json +8 -8
  291. package/dist/styleLint/functional/motion/motion.json +27 -12
  292. package/dist/styleLint/functional/size/border.json +30 -30
  293. package/dist/styleLint/functional/size/breakpoints.json +12 -12
  294. package/dist/styleLint/functional/size/size-coarse.json +6 -6
  295. package/dist/styleLint/functional/size/size-fine.json +6 -6
  296. package/dist/styleLint/functional/size/size.json +132 -132
  297. package/dist/styleLint/functional/size/viewport.json +12 -12
  298. package/dist/styleLint/functional/themes/dark-colorblind.json +1644 -2238
  299. package/dist/styleLint/functional/themes/dark-dimmed.json +1699 -1889
  300. package/dist/styleLint/functional/themes/dark-high-contrast.json +1627 -3905
  301. package/dist/styleLint/functional/themes/dark-tritanopia.json +1704 -2078
  302. package/dist/styleLint/functional/themes/dark.json +1692 -1404
  303. package/dist/styleLint/functional/themes/light-colorblind.json +1506 -2052
  304. package/dist/styleLint/functional/themes/light-high-contrast.json +1515 -3471
  305. package/dist/styleLint/functional/themes/light-tritanopia.json +1434 -1848
  306. package/dist/styleLint/functional/themes/light.json +1474 -1196
  307. package/dist/styleLint/functional/typography/typography.json +114 -114
  308. package/package.json +33 -32
  309. package/src/tokens/base/motion/easing.json5 +26 -0
  310. package/src/tokens/base/motion/timing.json5 +50 -0
  311. package/src/tokens/functional/color/dark/app-dark.json5 +203 -88
  312. package/src/tokens/functional/color/dark/data-vis-dark.json5 +20 -20
  313. package/src/tokens/functional/color/dark/display-dark.json5 +95 -95
  314. package/src/tokens/functional/color/dark/overrides/dark.dimmed.json5 +0 -8
  315. package/src/tokens/functional/color/dark/overrides/dark.high-contrast.json5 +43 -30
  316. package/src/tokens/functional/color/dark/overrides/dark.protanopia-deuteranopia.json5 +62 -30
  317. package/src/tokens/functional/color/dark/overrides/dark.tritanopia.json5 +53 -12
  318. package/src/tokens/functional/color/dark/patterns-dark.json5 +16 -4
  319. package/src/tokens/functional/color/dark/primitives-dark.json5 +4 -4
  320. package/src/tokens/functional/color/light/app-light.json5 +195 -85
  321. package/src/tokens/functional/color/light/data-vis-light.json5 +20 -20
  322. package/src/tokens/functional/color/light/overrides/light.high-contrast.json5 +25 -25
  323. package/src/tokens/functional/color/light/overrides/light.protanopia-deuteranopia.json5 +65 -34
  324. package/src/tokens/functional/color/light/overrides/light.tritanopia.json5 +66 -11
  325. package/src/tokens/functional/color/light/patterns-light.json5 +13 -1
  326. package/src/tokens/functional/color/light/primitives-light.json5 +2 -2
  327. package/src/tokens/functional/motion/loading.json5 +1 -1
  328. package/src/tokens/functional/motion/patterns.json5 +9 -2
@@ -1,7 +1,5 @@
1
1
  {
2
2
  "base-size-2": {
3
- "value": "0.125rem",
4
- "$type": "dimension",
5
3
  "$extensions": {
6
4
  "org.primer.figma": {
7
5
  "collection": "base/size",
@@ -11,7 +9,7 @@
11
9
  "filePath": "src/tokens/base/size/size.json",
12
10
  "isSource": true,
13
11
  "original": {
14
- "value": "2px",
12
+ "$value": "2px",
15
13
  "$type": "dimension",
16
14
  "$extensions": {
17
15
  "org.primer.figma": {
@@ -22,11 +20,11 @@
22
20
  },
23
21
  "name": "base-size-2",
24
22
  "attributes": {},
25
- "path": ["base", "size", "2"]
23
+ "path": ["base", "size", "2"],
24
+ "value": "0.125rem",
25
+ "type": "dimension"
26
26
  },
27
27
  "base-size-4": {
28
- "value": "0.25rem",
29
- "$type": "dimension",
30
28
  "$extensions": {
31
29
  "org.primer.figma": {
32
30
  "collection": "base/size",
@@ -36,7 +34,7 @@
36
34
  "filePath": "src/tokens/base/size/size.json",
37
35
  "isSource": true,
38
36
  "original": {
39
- "value": "4px",
37
+ "$value": "4px",
40
38
  "$type": "dimension",
41
39
  "$extensions": {
42
40
  "org.primer.figma": {
@@ -47,11 +45,11 @@
47
45
  },
48
46
  "name": "base-size-4",
49
47
  "attributes": {},
50
- "path": ["base", "size", "4"]
48
+ "path": ["base", "size", "4"],
49
+ "value": "0.25rem",
50
+ "type": "dimension"
51
51
  },
52
52
  "base-size-6": {
53
- "value": "0.375rem",
54
- "$type": "dimension",
55
53
  "$extensions": {
56
54
  "org.primer.figma": {
57
55
  "collection": "base/size",
@@ -61,7 +59,7 @@
61
59
  "filePath": "src/tokens/base/size/size.json",
62
60
  "isSource": true,
63
61
  "original": {
64
- "value": "6px",
62
+ "$value": "6px",
65
63
  "$type": "dimension",
66
64
  "$extensions": {
67
65
  "org.primer.figma": {
@@ -72,11 +70,11 @@
72
70
  },
73
71
  "name": "base-size-6",
74
72
  "attributes": {},
75
- "path": ["base", "size", "6"]
73
+ "path": ["base", "size", "6"],
74
+ "value": "0.375rem",
75
+ "type": "dimension"
76
76
  },
77
77
  "base-size-8": {
78
- "value": "0.5rem",
79
- "$type": "dimension",
80
78
  "$extensions": {
81
79
  "org.primer.figma": {
82
80
  "collection": "base/size",
@@ -86,7 +84,7 @@
86
84
  "filePath": "src/tokens/base/size/size.json",
87
85
  "isSource": true,
88
86
  "original": {
89
- "value": "8px",
87
+ "$value": "8px",
90
88
  "$type": "dimension",
91
89
  "$extensions": {
92
90
  "org.primer.figma": {
@@ -97,11 +95,11 @@
97
95
  },
98
96
  "name": "base-size-8",
99
97
  "attributes": {},
100
- "path": ["base", "size", "8"]
98
+ "path": ["base", "size", "8"],
99
+ "value": "0.5rem",
100
+ "type": "dimension"
101
101
  },
102
102
  "base-size-12": {
103
- "value": "0.75rem",
104
- "$type": "dimension",
105
103
  "$extensions": {
106
104
  "org.primer.figma": {
107
105
  "collection": "base/size",
@@ -111,7 +109,7 @@
111
109
  "filePath": "src/tokens/base/size/size.json",
112
110
  "isSource": true,
113
111
  "original": {
114
- "value": "12px",
112
+ "$value": "12px",
115
113
  "$type": "dimension",
116
114
  "$extensions": {
117
115
  "org.primer.figma": {
@@ -122,11 +120,11 @@
122
120
  },
123
121
  "name": "base-size-12",
124
122
  "attributes": {},
125
- "path": ["base", "size", "12"]
123
+ "path": ["base", "size", "12"],
124
+ "value": "0.75rem",
125
+ "type": "dimension"
126
126
  },
127
127
  "base-size-16": {
128
- "value": "1rem",
129
- "$type": "dimension",
130
128
  "$extensions": {
131
129
  "org.primer.figma": {
132
130
  "collection": "base/size",
@@ -136,7 +134,7 @@
136
134
  "filePath": "src/tokens/base/size/size.json",
137
135
  "isSource": true,
138
136
  "original": {
139
- "value": "16px",
137
+ "$value": "16px",
140
138
  "$type": "dimension",
141
139
  "$extensions": {
142
140
  "org.primer.figma": {
@@ -147,11 +145,11 @@
147
145
  },
148
146
  "name": "base-size-16",
149
147
  "attributes": {},
150
- "path": ["base", "size", "16"]
148
+ "path": ["base", "size", "16"],
149
+ "value": "1rem",
150
+ "type": "dimension"
151
151
  },
152
152
  "base-size-20": {
153
- "value": "1.25rem",
154
- "$type": "dimension",
155
153
  "$extensions": {
156
154
  "org.primer.figma": {
157
155
  "collection": "base/size",
@@ -161,7 +159,7 @@
161
159
  "filePath": "src/tokens/base/size/size.json",
162
160
  "isSource": true,
163
161
  "original": {
164
- "value": "20px",
162
+ "$value": "20px",
165
163
  "$type": "dimension",
166
164
  "$extensions": {
167
165
  "org.primer.figma": {
@@ -172,11 +170,11 @@
172
170
  },
173
171
  "name": "base-size-20",
174
172
  "attributes": {},
175
- "path": ["base", "size", "20"]
173
+ "path": ["base", "size", "20"],
174
+ "value": "1.25rem",
175
+ "type": "dimension"
176
176
  },
177
177
  "base-size-24": {
178
- "value": "1.5rem",
179
- "$type": "dimension",
180
178
  "$extensions": {
181
179
  "org.primer.figma": {
182
180
  "collection": "base/size",
@@ -186,7 +184,7 @@
186
184
  "filePath": "src/tokens/base/size/size.json",
187
185
  "isSource": true,
188
186
  "original": {
189
- "value": "24px",
187
+ "$value": "24px",
190
188
  "$type": "dimension",
191
189
  "$extensions": {
192
190
  "org.primer.figma": {
@@ -197,11 +195,11 @@
197
195
  },
198
196
  "name": "base-size-24",
199
197
  "attributes": {},
200
- "path": ["base", "size", "24"]
198
+ "path": ["base", "size", "24"],
199
+ "value": "1.5rem",
200
+ "type": "dimension"
201
201
  },
202
202
  "base-size-28": {
203
- "value": "1.75rem",
204
- "$type": "dimension",
205
203
  "$extensions": {
206
204
  "org.primer.figma": {
207
205
  "collection": "base/size",
@@ -211,7 +209,7 @@
211
209
  "filePath": "src/tokens/base/size/size.json",
212
210
  "isSource": true,
213
211
  "original": {
214
- "value": "28px",
212
+ "$value": "28px",
215
213
  "$type": "dimension",
216
214
  "$extensions": {
217
215
  "org.primer.figma": {
@@ -222,11 +220,11 @@
222
220
  },
223
221
  "name": "base-size-28",
224
222
  "attributes": {},
225
- "path": ["base", "size", "28"]
223
+ "path": ["base", "size", "28"],
224
+ "value": "1.75rem",
225
+ "type": "dimension"
226
226
  },
227
227
  "base-size-32": {
228
- "value": "2rem",
229
- "$type": "dimension",
230
228
  "$extensions": {
231
229
  "org.primer.figma": {
232
230
  "collection": "base/size",
@@ -236,7 +234,7 @@
236
234
  "filePath": "src/tokens/base/size/size.json",
237
235
  "isSource": true,
238
236
  "original": {
239
- "value": "32px",
237
+ "$value": "32px",
240
238
  "$type": "dimension",
241
239
  "$extensions": {
242
240
  "org.primer.figma": {
@@ -247,11 +245,11 @@
247
245
  },
248
246
  "name": "base-size-32",
249
247
  "attributes": {},
250
- "path": ["base", "size", "32"]
248
+ "path": ["base", "size", "32"],
249
+ "value": "2rem",
250
+ "type": "dimension"
251
251
  },
252
252
  "base-size-36": {
253
- "value": "2.25rem",
254
- "$type": "dimension",
255
253
  "$extensions": {
256
254
  "org.primer.figma": {
257
255
  "collection": "base/size",
@@ -261,7 +259,7 @@
261
259
  "filePath": "src/tokens/base/size/size.json",
262
260
  "isSource": true,
263
261
  "original": {
264
- "value": "36px",
262
+ "$value": "36px",
265
263
  "$type": "dimension",
266
264
  "$extensions": {
267
265
  "org.primer.figma": {
@@ -272,11 +270,11 @@
272
270
  },
273
271
  "name": "base-size-36",
274
272
  "attributes": {},
275
- "path": ["base", "size", "36"]
273
+ "path": ["base", "size", "36"],
274
+ "value": "2.25rem",
275
+ "type": "dimension"
276
276
  },
277
277
  "base-size-40": {
278
- "value": "2.5rem",
279
- "$type": "dimension",
280
278
  "$extensions": {
281
279
  "org.primer.figma": {
282
280
  "collection": "base/size",
@@ -286,7 +284,7 @@
286
284
  "filePath": "src/tokens/base/size/size.json",
287
285
  "isSource": true,
288
286
  "original": {
289
- "value": "40px",
287
+ "$value": "40px",
290
288
  "$type": "dimension",
291
289
  "$extensions": {
292
290
  "org.primer.figma": {
@@ -297,11 +295,11 @@
297
295
  },
298
296
  "name": "base-size-40",
299
297
  "attributes": {},
300
- "path": ["base", "size", "40"]
298
+ "path": ["base", "size", "40"],
299
+ "value": "2.5rem",
300
+ "type": "dimension"
301
301
  },
302
302
  "base-size-44": {
303
- "value": "2.75rem",
304
- "$type": "dimension",
305
303
  "$extensions": {
306
304
  "org.primer.figma": {
307
305
  "collection": "base/size",
@@ -311,7 +309,7 @@
311
309
  "filePath": "src/tokens/base/size/size.json",
312
310
  "isSource": true,
313
311
  "original": {
314
- "value": "44px",
312
+ "$value": "44px",
315
313
  "$type": "dimension",
316
314
  "$extensions": {
317
315
  "org.primer.figma": {
@@ -322,11 +320,11 @@
322
320
  },
323
321
  "name": "base-size-44",
324
322
  "attributes": {},
325
- "path": ["base", "size", "44"]
323
+ "path": ["base", "size", "44"],
324
+ "value": "2.75rem",
325
+ "type": "dimension"
326
326
  },
327
327
  "base-size-48": {
328
- "value": "3rem",
329
- "$type": "dimension",
330
328
  "$extensions": {
331
329
  "org.primer.figma": {
332
330
  "collection": "base/size",
@@ -336,7 +334,7 @@
336
334
  "filePath": "src/tokens/base/size/size.json",
337
335
  "isSource": true,
338
336
  "original": {
339
- "value": "48px",
337
+ "$value": "48px",
340
338
  "$type": "dimension",
341
339
  "$extensions": {
342
340
  "org.primer.figma": {
@@ -347,11 +345,11 @@
347
345
  },
348
346
  "name": "base-size-48",
349
347
  "attributes": {},
350
- "path": ["base", "size", "48"]
348
+ "path": ["base", "size", "48"],
349
+ "value": "3rem",
350
+ "type": "dimension"
351
351
  },
352
352
  "base-size-64": {
353
- "value": "4rem",
354
- "$type": "dimension",
355
353
  "$extensions": {
356
354
  "org.primer.figma": {
357
355
  "collection": "base/size",
@@ -361,7 +359,7 @@
361
359
  "filePath": "src/tokens/base/size/size.json",
362
360
  "isSource": true,
363
361
  "original": {
364
- "value": "64px",
362
+ "$value": "64px",
365
363
  "$type": "dimension",
366
364
  "$extensions": {
367
365
  "org.primer.figma": {
@@ -372,11 +370,11 @@
372
370
  },
373
371
  "name": "base-size-64",
374
372
  "attributes": {},
375
- "path": ["base", "size", "64"]
373
+ "path": ["base", "size", "64"],
374
+ "value": "4rem",
375
+ "type": "dimension"
376
376
  },
377
377
  "base-size-80": {
378
- "value": "5rem",
379
- "$type": "dimension",
380
378
  "$extensions": {
381
379
  "org.primer.figma": {
382
380
  "collection": "base/size",
@@ -386,7 +384,7 @@
386
384
  "filePath": "src/tokens/base/size/size.json",
387
385
  "isSource": true,
388
386
  "original": {
389
- "value": "80px",
387
+ "$value": "80px",
390
388
  "$type": "dimension",
391
389
  "$extensions": {
392
390
  "org.primer.figma": {
@@ -397,11 +395,11 @@
397
395
  },
398
396
  "name": "base-size-80",
399
397
  "attributes": {},
400
- "path": ["base", "size", "80"]
398
+ "path": ["base", "size", "80"],
399
+ "value": "5rem",
400
+ "type": "dimension"
401
401
  },
402
402
  "base-size-96": {
403
- "value": "6rem",
404
- "$type": "dimension",
405
403
  "$extensions": {
406
404
  "org.primer.figma": {
407
405
  "collection": "base/size",
@@ -411,7 +409,7 @@
411
409
  "filePath": "src/tokens/base/size/size.json",
412
410
  "isSource": true,
413
411
  "original": {
414
- "value": "96px",
412
+ "$value": "96px",
415
413
  "$type": "dimension",
416
414
  "$extensions": {
417
415
  "org.primer.figma": {
@@ -422,11 +420,11 @@
422
420
  },
423
421
  "name": "base-size-96",
424
422
  "attributes": {},
425
- "path": ["base", "size", "96"]
423
+ "path": ["base", "size", "96"],
424
+ "value": "6rem",
425
+ "type": "dimension"
426
426
  },
427
427
  "base-size-112": {
428
- "value": "7rem",
429
- "$type": "dimension",
430
428
  "$extensions": {
431
429
  "org.primer.figma": {
432
430
  "collection": "base/size",
@@ -436,7 +434,7 @@
436
434
  "filePath": "src/tokens/base/size/size.json",
437
435
  "isSource": true,
438
436
  "original": {
439
- "value": "112px",
437
+ "$value": "112px",
440
438
  "$type": "dimension",
441
439
  "$extensions": {
442
440
  "org.primer.figma": {
@@ -447,11 +445,11 @@
447
445
  },
448
446
  "name": "base-size-112",
449
447
  "attributes": {},
450
- "path": ["base", "size", "112"]
448
+ "path": ["base", "size", "112"],
449
+ "value": "7rem",
450
+ "type": "dimension"
451
451
  },
452
452
  "base-size-128": {
453
- "value": "8rem",
454
- "$type": "dimension",
455
453
  "$extensions": {
456
454
  "org.primer.figma": {
457
455
  "collection": "base/size",
@@ -461,7 +459,7 @@
461
459
  "filePath": "src/tokens/base/size/size.json",
462
460
  "isSource": true,
463
461
  "original": {
464
- "value": "128px",
462
+ "$value": "128px",
465
463
  "$type": "dimension",
466
464
  "$extensions": {
467
465
  "org.primer.figma": {
@@ -472,6 +470,8 @@
472
470
  },
473
471
  "name": "base-size-128",
474
472
  "attributes": {},
475
- "path": ["base", "size", "128"]
473
+ "path": ["base", "size", "128"],
474
+ "value": "8rem",
475
+ "type": "dimension"
476
476
  }
477
477
  }
@@ -1,7 +1,5 @@
1
1
  {
2
2
  "base-text-weight-light": {
3
- "$type": "fontWeight",
4
- "value": 300,
5
3
  "$extensions": {
6
4
  "org.primer.figma": {
7
5
  "collection": "base/typography",
@@ -12,7 +10,7 @@
12
10
  "isSource": true,
13
11
  "original": {
14
12
  "$type": "fontWeight",
15
- "value": 300,
13
+ "$value": 300,
16
14
  "$extensions": {
17
15
  "org.primer.figma": {
18
16
  "collection": "base/typography",
@@ -22,11 +20,11 @@
22
20
  },
23
21
  "name": "base-text-weight-light",
24
22
  "attributes": {},
25
- "path": ["base", "text", "weight", "light"]
23
+ "path": ["base", "text", "weight", "light"],
24
+ "value": 300,
25
+ "type": "fontWeight"
26
26
  },
27
27
  "base-text-weight-normal": {
28
- "value": 400,
29
- "$type": "fontWeight",
30
28
  "$extensions": {
31
29
  "org.primer.figma": {
32
30
  "collection": "base/typography",
@@ -36,7 +34,7 @@
36
34
  "filePath": "src/tokens/base/typography/typography.json",
37
35
  "isSource": true,
38
36
  "original": {
39
- "value": 400,
37
+ "$value": 400,
40
38
  "$type": "fontWeight",
41
39
  "$extensions": {
42
40
  "org.primer.figma": {
@@ -47,11 +45,11 @@
47
45
  },
48
46
  "name": "base-text-weight-normal",
49
47
  "attributes": {},
50
- "path": ["base", "text", "weight", "normal"]
48
+ "path": ["base", "text", "weight", "normal"],
49
+ "value": 400,
50
+ "type": "fontWeight"
51
51
  },
52
52
  "base-text-weight-medium": {
53
- "value": 500,
54
- "$type": "fontWeight",
55
53
  "$extensions": {
56
54
  "org.primer.figma": {
57
55
  "collection": "base/typography",
@@ -61,7 +59,7 @@
61
59
  "filePath": "src/tokens/base/typography/typography.json",
62
60
  "isSource": true,
63
61
  "original": {
64
- "value": 500,
62
+ "$value": 500,
65
63
  "$type": "fontWeight",
66
64
  "$extensions": {
67
65
  "org.primer.figma": {
@@ -72,11 +70,11 @@
72
70
  },
73
71
  "name": "base-text-weight-medium",
74
72
  "attributes": {},
75
- "path": ["base", "text", "weight", "medium"]
73
+ "path": ["base", "text", "weight", "medium"],
74
+ "value": 500,
75
+ "type": "fontWeight"
76
76
  },
77
77
  "base-text-weight-semibold": {
78
- "value": 600,
79
- "$type": "fontWeight",
80
78
  "$extensions": {
81
79
  "org.primer.figma": {
82
80
  "collection": "base/typography",
@@ -86,7 +84,7 @@
86
84
  "filePath": "src/tokens/base/typography/typography.json",
87
85
  "isSource": true,
88
86
  "original": {
89
- "value": 600,
87
+ "$value": 600,
90
88
  "$type": "fontWeight",
91
89
  "$extensions": {
92
90
  "org.primer.figma": {
@@ -97,6 +95,8 @@
97
95
  },
98
96
  "name": "base-text-weight-semibold",
99
97
  "attributes": {},
100
- "path": ["base", "text", "weight", "semibold"]
98
+ "path": ["base", "text", "weight", "semibold"],
99
+ "value": 600,
100
+ "type": "fontWeight"
101
101
  }
102
102
  }
@@ -1,47 +1,62 @@
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": "{base.duration.1000}",
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": "{base.duration.1000}",
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
+ },
32
+ "motion-spinner-easing-rotation": {
33
+ "filePath": "src/tokens/functional/motion/patterns.json5",
34
+ "isSource": true,
35
+ "original": {
36
+ "$value": "{base.easing.linear}",
37
+ "$type": "cubicBezier",
38
+ "$description": "The easing curve for the \"Spinner\" loading indicator rotation"
39
+ },
40
+ "name": "motion-spinner-easing-rotation",
41
+ "attributes": {},
42
+ "path": ["motion", "spinner", "easing", "rotation"],
43
+ "value": [0, 0, 1, 1],
44
+ "type": "cubicBezier",
45
+ "description": "The easing curve for the \"Spinner\" loading indicator rotation"
31
46
  },
32
47
  "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
48
  "filePath": "src/tokens/functional/motion/patterns.json5",
37
49
  "isSource": true,
38
50
  "original": {
39
- "value": "1000ms",
51
+ "$value": "{base.duration.1000}",
40
52
  "$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)"
53
+ "$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
54
  },
43
55
  "name": "motion-skeletonLoader-shimmer-duration-scale",
44
56
  "attributes": {},
45
- "path": ["motion", "skeletonLoader", "shimmer", "duration", "scale"]
57
+ "path": ["motion", "skeletonLoader", "shimmer", "duration", "scale"],
58
+ "value": "1000ms",
59
+ "type": "duration",
60
+ "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
61
  }
47
62
  }