@primer/primitives 9.1.2 → 10.0.0-rc.0c3e84bf

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 (334) 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 +3 -7
  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 +3 -3
  92. package/dist/build/schemas/baseToken.js +4 -7
  93. package/dist/build/schemas/borderToken.d.ts +6 -6
  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 +37 -25
  98. package/dist/build/schemas/colorToken.js +25 -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 +15 -8
  103. package/dist/build/schemas/dimensionToken.js +15 -17
  104. package/dist/build/schemas/dimensionValue.js +7 -10
  105. package/dist/build/schemas/durationToken.d.ts +6 -6
  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 +8 -8
  109. package/dist/build/schemas/fontFamilyToken.js +13 -16
  110. package/dist/build/schemas/fontWeightToken.d.ts +8 -8
  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 +8 -8
  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 +23 -16
  118. package/dist/build/schemas/shadowToken.js +27 -27
  119. package/dist/build/schemas/stringToken.d.ts +6 -6
  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 +6 -6
  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 +6 -6
  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 +5 -7
  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 +2561 -4201
  242. package/dist/docs/functional/themes/dark-dimmed.json +2610 -3892
  243. package/dist/docs/functional/themes/dark-high-contrast.json +2687 -5815
  244. package/dist/docs/functional/themes/dark-tritanopia.json +2613 -4059
  245. package/dist/docs/functional/themes/dark.json +2590 -3450
  246. package/dist/docs/functional/themes/light-colorblind.json +2568 -4168
  247. package/dist/docs/functional/themes/light-high-contrast.json +2686 -5526
  248. package/dist/docs/functional/themes/light-tritanopia.json +2542 -4026
  249. package/dist/docs/functional/themes/light.json +2570 -3436
  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 +1442 -3082
  299. package/dist/styleLint/functional/themes/dark-dimmed.json +1486 -2768
  300. package/dist/styleLint/functional/themes/dark-high-contrast.json +1517 -4645
  301. package/dist/styleLint/functional/themes/dark-tritanopia.json +1480 -2926
  302. package/dist/styleLint/functional/themes/dark.json +1474 -2334
  303. package/dist/styleLint/functional/themes/light-colorblind.json +1428 -3028
  304. package/dist/styleLint/functional/themes/light-high-contrast.json +1524 -4364
  305. package/dist/styleLint/functional/themes/light-tritanopia.json +1416 -2900
  306. package/dist/styleLint/functional/themes/light.json +1454 -2320
  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 +236 -121
  312. package/src/tokens/functional/color/dark/data-vis-dark.json5 +40 -40
  313. package/src/tokens/functional/color/dark/display-dark.json5 +95 -95
  314. package/src/tokens/functional/color/dark/overrides/dark.dimmed.json5 +1 -9
  315. package/src/tokens/functional/color/dark/overrides/dark.high-contrast.json5 +44 -31
  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.json +3963 -0
  319. package/src/tokens/functional/color/dark/patterns-dark.json5 +126 -277
  320. package/src/tokens/functional/color/dark/primitives-dark.json5 +81 -81
  321. package/src/tokens/functional/color/dark/syntax-dark.json5 +47 -47
  322. package/src/tokens/functional/color/light/app-light.json5 +179 -118
  323. package/src/tokens/functional/color/light/data-vis-light.json5 +40 -40
  324. package/src/tokens/functional/color/light/display-light.json5 +0 -95
  325. package/src/tokens/functional/color/light/overrides/light.high-contrast.json5 +25 -27
  326. package/src/tokens/functional/color/light/overrides/light.protanopia-deuteranopia.json5 +62 -34
  327. package/src/tokens/functional/color/light/overrides/light.tritanopia.json5 +63 -11
  328. package/src/tokens/functional/color/light/patterns-light.json5 +126 -276
  329. package/src/tokens/functional/color/light/primitives-light.json5 +2 -80
  330. package/src/tokens/functional/color/light/syntax-light.json5 +0 -47
  331. package/src/tokens/functional/motion/loading.json5 +1 -1
  332. package/src/tokens/functional/motion/patterns.json5 +9 -2
  333. package/src/tokens/functional/shadow/dark.json5 +0 -14
  334. package/src/tokens/functional/shadow/light.json5 +0 -13
@@ -5,17 +5,26 @@
5
5
  --topicTag-borderColor: #ffffff00;
6
6
  --highlight-neutral-bgColor: #fff8c5;
7
7
  --page-header-bgColor: #f6f8fa;
8
- --diffBlob-addition-fgColor-text: #1f2328;
9
- --diffBlob-addition-fgColor-num: #1f2328;
10
- --diffBlob-addition-bgColor-num: #d5f1ff;
11
- --diffBlob-addition-bgColor-line: #ddf4ff;
12
- --diffBlob-addition-bgColor-word: #b6e3ff;
13
- --diffBlob-deletion-fgColor-text: #1f2328;
14
- --diffBlob-deletion-fgColor-num: #1f2328;
15
- --diffBlob-deletion-bgColor-num: #ffcecb;
16
- --diffBlob-deletion-bgColor-line: #ffebe9;
17
- --diffBlob-deletion-bgColor-word: #ff818266;
18
- --diffBlob-hunk-bgColor-num: #54aeff66;
8
+ --diffBlob-additionLine-fgColor: #1f2328;
9
+ --diffBlob-additionLine-bgColor: #ddf4ff;
10
+ --diffBlob-additionWord-fgColor: #1f2328;
11
+ --diffBlob-additionWord-bgColor: #b6e3ff;
12
+ --diffBlob-additionNum-fgColor: #1f2328;
13
+ --diffBlob-additionNum-bgColor: #b6e3ff;
14
+ --diffBlob-deletionLine-fgColor: #1f2328;
15
+ --diffBlob-deletionLine-bgColor: #ffebe9;
16
+ --diffBlob-deletionWord-fgColor: #1f2328;
17
+ --diffBlob-deletionWord-bgColor: #ffcecb;
18
+ --diffBlob-deletionNum-fgColor: #1f2328;
19
+ --diffBlob-deletionNum-bgColor: #ffcecb;
20
+ --diffBlob-hunkLine-bgColor: #f6f8fa;
21
+ --diffBlob-hunkLine-fgColor: #59636e;
22
+ --diffBlob-hunkNum-fgColor-rest: #1f2328;
23
+ --diffBlob-hunkNum-fgColor-hover: #1f2328;
24
+ --diffBlob-hunkNum-bgColor-rest: #e6eaef;
25
+ --diffBlob-hunkNum-bgColor-hover: #c8d1da;
26
+ --diffBlob-emptyNum-bgColor: #f6f8fa;
27
+ --diffBlob-emptyLine-bgColor: #f6f8fa;
19
28
  --diffBlob-expander-iconColor: #59636e;
20
29
  --codeMirror-fgColor: #1f2328;
21
30
  --codeMirror-bgColor: #ffffff;
@@ -242,6 +251,7 @@
242
251
  --button-primary-shadow-selected: inset 0px 1px 0px 0px #0021554d;
243
252
  --button-invisible-fgColor-rest: #25292e;
244
253
  --button-invisible-fgColor-hover: #25292e;
254
+ --button-invisible-fgColor-active: #25292e;
245
255
  --button-invisible-fgColor-disabled: #818b98;
246
256
  --button-invisible-iconColor-rest: #59636e;
247
257
  --button-invisible-iconColor-hover: #59636e;
@@ -574,17 +584,26 @@
574
584
  --topicTag-borderColor: #ffffff00;
575
585
  --highlight-neutral-bgColor: #fff8c5;
576
586
  --page-header-bgColor: #f6f8fa;
577
- --diffBlob-addition-fgColor-text: #1f2328;
578
- --diffBlob-addition-fgColor-num: #1f2328;
579
- --diffBlob-addition-bgColor-num: #d5f1ff;
580
- --diffBlob-addition-bgColor-line: #ddf4ff;
581
- --diffBlob-addition-bgColor-word: #b6e3ff;
582
- --diffBlob-deletion-fgColor-text: #1f2328;
583
- --diffBlob-deletion-fgColor-num: #1f2328;
584
- --diffBlob-deletion-bgColor-num: #ffcecb;
585
- --diffBlob-deletion-bgColor-line: #ffebe9;
586
- --diffBlob-deletion-bgColor-word: #ff818266;
587
- --diffBlob-hunk-bgColor-num: #54aeff66;
587
+ --diffBlob-additionLine-fgColor: #1f2328;
588
+ --diffBlob-additionLine-bgColor: #ddf4ff;
589
+ --diffBlob-additionWord-fgColor: #1f2328;
590
+ --diffBlob-additionWord-bgColor: #b6e3ff;
591
+ --diffBlob-additionNum-fgColor: #1f2328;
592
+ --diffBlob-additionNum-bgColor: #b6e3ff;
593
+ --diffBlob-deletionLine-fgColor: #1f2328;
594
+ --diffBlob-deletionLine-bgColor: #ffebe9;
595
+ --diffBlob-deletionWord-fgColor: #1f2328;
596
+ --diffBlob-deletionWord-bgColor: #ffcecb;
597
+ --diffBlob-deletionNum-fgColor: #1f2328;
598
+ --diffBlob-deletionNum-bgColor: #ffcecb;
599
+ --diffBlob-hunkLine-bgColor: #f6f8fa;
600
+ --diffBlob-hunkLine-fgColor: #59636e;
601
+ --diffBlob-hunkNum-fgColor-rest: #1f2328;
602
+ --diffBlob-hunkNum-fgColor-hover: #1f2328;
603
+ --diffBlob-hunkNum-bgColor-rest: #e6eaef;
604
+ --diffBlob-hunkNum-bgColor-hover: #c8d1da;
605
+ --diffBlob-emptyNum-bgColor: #f6f8fa;
606
+ --diffBlob-emptyLine-bgColor: #f6f8fa;
588
607
  --diffBlob-expander-iconColor: #59636e;
589
608
  --codeMirror-fgColor: #1f2328;
590
609
  --codeMirror-bgColor: #ffffff;
@@ -811,6 +830,7 @@
811
830
  --button-primary-shadow-selected: inset 0px 1px 0px 0px #0021554d;
812
831
  --button-invisible-fgColor-rest: #25292e;
813
832
  --button-invisible-fgColor-hover: #25292e;
833
+ --button-invisible-fgColor-active: #25292e;
814
834
  --button-invisible-fgColor-disabled: #818b98;
815
835
  --button-invisible-iconColor-rest: #59636e;
816
836
  --button-invisible-iconColor-hover: #59636e;
@@ -5,17 +5,26 @@
5
5
  --topicTag-borderColor: #ffffff00;
6
6
  --highlight-neutral-bgColor: #fff8c5;
7
7
  --page-header-bgColor: #f6f8fa;
8
- --diffBlob-addition-fgColor-text: #1f2328;
9
- --diffBlob-addition-fgColor-num: #1f2328;
10
- --diffBlob-addition-bgColor-num: #d1f8d9;
11
- --diffBlob-addition-bgColor-line: #dafbe1;
12
- --diffBlob-addition-bgColor-word: #aceebb;
13
- --diffBlob-deletion-fgColor-text: #1f2328;
14
- --diffBlob-deletion-fgColor-num: #1f2328;
15
- --diffBlob-deletion-bgColor-num: #ffcecb;
16
- --diffBlob-deletion-bgColor-line: #ffebe9;
17
- --diffBlob-deletion-bgColor-word: #ff818266;
18
- --diffBlob-hunk-bgColor-num: #54aeff66;
8
+ --diffBlob-additionLine-fgColor: #1f2328;
9
+ --diffBlob-additionLine-bgColor: #dafbe1;
10
+ --diffBlob-additionWord-fgColor: #1f2328;
11
+ --diffBlob-additionWord-bgColor: #aceebb;
12
+ --diffBlob-additionNum-fgColor: #1f2328;
13
+ --diffBlob-additionNum-bgColor: #aceebb;
14
+ --diffBlob-deletionLine-fgColor: #1f2328;
15
+ --diffBlob-deletionLine-bgColor: #ffebe9;
16
+ --diffBlob-deletionWord-fgColor: #1f2328;
17
+ --diffBlob-deletionWord-bgColor: #ffcecb;
18
+ --diffBlob-deletionNum-fgColor: #1f2328;
19
+ --diffBlob-deletionNum-bgColor: #ffcecb;
20
+ --diffBlob-hunkLine-bgColor: #ddf4ff;
21
+ --diffBlob-hunkLine-fgColor: #59636e;
22
+ --diffBlob-hunkNum-fgColor-rest: #1f2328;
23
+ --diffBlob-hunkNum-fgColor-hover: #ffffff;
24
+ --diffBlob-hunkNum-bgColor-rest: #b6e3ff;
25
+ --diffBlob-hunkNum-bgColor-hover: #0969da;
26
+ --diffBlob-emptyNum-bgColor: #f6f8fa;
27
+ --diffBlob-emptyLine-bgColor: #f6f8fa;
19
28
  --diffBlob-expander-iconColor: #59636e;
20
29
  --codeMirror-fgColor: #1f2328;
21
30
  --codeMirror-bgColor: #ffffff;
@@ -242,6 +251,7 @@
242
251
  --button-primary-shadow-selected: inset 0px 1px 0px 0px #002d114d;
243
252
  --button-invisible-fgColor-rest: #25292e;
244
253
  --button-invisible-fgColor-hover: #25292e;
254
+ --button-invisible-fgColor-active: #25292e;
245
255
  --button-invisible-fgColor-disabled: #818b98;
246
256
  --button-invisible-iconColor-rest: #59636e;
247
257
  --button-invisible-iconColor-hover: #59636e;
@@ -574,17 +584,26 @@
574
584
  --topicTag-borderColor: #ffffff00;
575
585
  --highlight-neutral-bgColor: #fff8c5;
576
586
  --page-header-bgColor: #f6f8fa;
577
- --diffBlob-addition-fgColor-text: #1f2328;
578
- --diffBlob-addition-fgColor-num: #1f2328;
579
- --diffBlob-addition-bgColor-num: #d1f8d9;
580
- --diffBlob-addition-bgColor-line: #dafbe1;
581
- --diffBlob-addition-bgColor-word: #aceebb;
582
- --diffBlob-deletion-fgColor-text: #1f2328;
583
- --diffBlob-deletion-fgColor-num: #1f2328;
584
- --diffBlob-deletion-bgColor-num: #ffcecb;
585
- --diffBlob-deletion-bgColor-line: #ffebe9;
586
- --diffBlob-deletion-bgColor-word: #ff818266;
587
- --diffBlob-hunk-bgColor-num: #54aeff66;
587
+ --diffBlob-additionLine-fgColor: #1f2328;
588
+ --diffBlob-additionLine-bgColor: #dafbe1;
589
+ --diffBlob-additionWord-fgColor: #1f2328;
590
+ --diffBlob-additionWord-bgColor: #aceebb;
591
+ --diffBlob-additionNum-fgColor: #1f2328;
592
+ --diffBlob-additionNum-bgColor: #aceebb;
593
+ --diffBlob-deletionLine-fgColor: #1f2328;
594
+ --diffBlob-deletionLine-bgColor: #ffebe9;
595
+ --diffBlob-deletionWord-fgColor: #1f2328;
596
+ --diffBlob-deletionWord-bgColor: #ffcecb;
597
+ --diffBlob-deletionNum-fgColor: #1f2328;
598
+ --diffBlob-deletionNum-bgColor: #ffcecb;
599
+ --diffBlob-hunkLine-bgColor: #ddf4ff;
600
+ --diffBlob-hunkLine-fgColor: #59636e;
601
+ --diffBlob-hunkNum-fgColor-rest: #1f2328;
602
+ --diffBlob-hunkNum-fgColor-hover: #ffffff;
603
+ --diffBlob-hunkNum-bgColor-rest: #b6e3ff;
604
+ --diffBlob-hunkNum-bgColor-hover: #0969da;
605
+ --diffBlob-emptyNum-bgColor: #f6f8fa;
606
+ --diffBlob-emptyLine-bgColor: #f6f8fa;
588
607
  --diffBlob-expander-iconColor: #59636e;
589
608
  --codeMirror-fgColor: #1f2328;
590
609
  --codeMirror-bgColor: #ffffff;
@@ -811,6 +830,7 @@
811
830
  --button-primary-shadow-selected: inset 0px 1px 0px 0px #002d114d;
812
831
  --button-invisible-fgColor-rest: #25292e;
813
832
  --button-invisible-fgColor-hover: #25292e;
833
+ --button-invisible-fgColor-active: #25292e;
814
834
  --button-invisible-fgColor-disabled: #818b98;
815
835
  --button-invisible-iconColor-rest: #59636e;
816
836
  --button-invisible-iconColor-hover: #59636e;
@@ -1,48 +1,48 @@
1
1
  :root {
2
- --text-codeInline-size: 0.9285em;
3
- --text-codeBlock-lineHeight: 1.5385;
4
- --text-codeBlock-size: 0.8125rem;
5
- --text-caption-lineHeight: 1.3333;
6
- --text-caption-size: 0.75rem;
7
- --text-body-lineHeight-small: 1.6666;
8
- --text-body-lineHeight-medium: 1.4285;
9
- --text-body-lineHeight-large: 1.5;
10
- --text-body-size-small: 0.75rem;
11
- --text-body-size-medium: 0.875rem;
12
- --text-body-size-large: 1rem;
13
- --text-subtitle-lineHeight: 1.6;
14
- --text-subtitle-size: 1.25rem;
15
- --text-title-lineHeight-small: 1.5;
16
- --text-title-lineHeight-medium: 1.6;
17
- --text-title-lineHeight-large: 1.5;
18
- --text-title-size-small: 1rem;
19
- --text-title-size-medium: 1.25rem;
20
- --text-title-size-large: 2rem;
21
- --text-display-lineHeight: 1.4;
22
- --text-display-size: 2.5rem;
23
- --text-display-lineBoxHeight: 1.4;
24
- --fontStack-monospace: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace;
25
- --fontStack-sansSerifDisplay: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
26
- --fontStack-sansSerif: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
27
2
  --fontStack-system: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
28
- --text-codeInline-weight: var(--base-text-weight-normal);
29
- --text-codeBlock-weight: var(--base-text-weight-normal);
30
- --text-caption-weight: var(--base-text-weight-normal);
31
- --text-body-weight: var(--base-text-weight-normal);
32
- --text-subtitle-weight: var(--base-text-weight-normal);
33
- --text-title-weight-small: var(--base-text-weight-semibold);
34
- --text-title-weight-medium: var(--base-text-weight-semibold);
35
- --text-title-weight-large: var(--base-text-weight-semibold);
3
+ --fontStack-sansSerif: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
4
+ --fontStack-sansSerifDisplay: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
5
+ --fontStack-monospace: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace;
6
+ --text-display-lineBoxHeight: 1.4;
7
+ --text-display-size: 2.5rem;
8
+ --text-display-lineHeight: 1.4;
9
+ --text-title-size-large: 2rem;
10
+ --text-title-size-medium: 1.25rem;
11
+ --text-title-size-small: 1rem;
12
+ --text-title-lineHeight-large: 1.5;
13
+ --text-title-lineHeight-medium: 1.6;
14
+ --text-title-lineHeight-small: 1.5;
15
+ --text-subtitle-size: 1.25rem;
16
+ --text-subtitle-lineHeight: 1.6;
17
+ --text-body-size-large: 1rem;
18
+ --text-body-size-medium: 0.875rem;
19
+ --text-body-size-small: 0.75rem;
20
+ --text-body-lineHeight-large: 1.5;
21
+ --text-body-lineHeight-medium: 1.4285;
22
+ --text-body-lineHeight-small: 1.6666;
23
+ --text-caption-size: 0.75rem;
24
+ --text-caption-lineHeight: 1.3333;
25
+ --text-codeBlock-size: 0.8125rem;
26
+ --text-codeBlock-lineHeight: 1.5385;
27
+ --text-codeInline-size: 0.9285em;
36
28
  --text-display-weight: var(--base-text-weight-medium);
37
- --text-codeInline-shorthand: var(--text-codeInline-weight) var(--text-codeInline-size) var(--fontStack-monospace); /* Inline code blocks using em units to inherit size from its parent. */
38
- --text-codeBlock-shorthand: var(--text-codeBlock-weight) var(--text-codeBlock-size) / var(--text-codeBlock-lineHeight) var(--fontStack-monospace); /* Default style for rendering code blocks. */
39
- --text-caption-shorthand: var(--text-caption-weight) var(--text-caption-size) / var(--text-caption-lineHeight) var(--fontStack-sansSerif); /* 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. */
40
- --text-body-shorthand-small: var(--text-body-weight) var(--text-body-size-small) / var(--text-body-lineHeight-small) var(--fontStack-sansSerif); /* 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. */
41
- --text-body-shorthand-medium: var(--text-body-weight) var(--text-body-size-medium) / var(--text-body-lineHeight-medium) var(--fontStack-sansSerif); /* Default UI font. Most commonly used for body text. */
42
- --text-body-shorthand-large: var(--text-body-weight) var(--text-body-size-large) / var(--text-body-lineHeight-large) var(--fontStack-sansSerif); /* User-generated content, markdown rendering. */
43
- --text-subtitle-shorthand: var(--text-subtitle-weight) var(--text-subtitle-size) / var(--text-subtitle-lineHeight) var(--fontStack-sansSerifDisplay); /* Page sections/sub headings, or less important object names in page titles (automated action titles, for example). Same line-height as title (medium). */
44
- --text-title-shorthand-small: var(--text-title-weight-small) var(--text-title-size-small) / var(--text-title-lineHeight-small) var(--fontStack-sansSerif); /* Uses the same size as body (large) with a heavier weight of semibold (600). */
45
- --text-title-shorthand-medium: var(--text-title-weight-medium) var(--text-title-size-medium) / var(--text-title-lineHeight-medium) var(--fontStack-sansSerifDisplay); /* Default page title. The 32px-equivalent line-height matches with button and other medium control heights. Great for page header composition. */
46
- --text-title-shorthand-large: var(--text-title-weight-large) var(--text-title-size-large) / var(--text-title-lineHeight-large) var(--fontStack-sansSerifDisplay); /* Page headings for user-created objects, such as issues or pull requests. Utilize title (medium) styles on narrow viewports. */
29
+ --text-title-weight-large: var(--base-text-weight-semibold);
30
+ --text-title-weight-medium: var(--base-text-weight-semibold);
31
+ --text-title-weight-small: var(--base-text-weight-semibold);
32
+ --text-subtitle-weight: var(--base-text-weight-normal);
33
+ --text-body-weight: var(--base-text-weight-normal);
34
+ --text-caption-weight: var(--base-text-weight-normal);
35
+ --text-codeBlock-weight: var(--base-text-weight-normal);
36
+ --text-codeInline-weight: var(--base-text-weight-normal);
47
37
  --text-display-shorthand: var(--text-display-weight) var(--text-display-size) / var(--text-display-lineHeight) var(--fontStack-sansSerifDisplay); /* Hero-style text for brand to product transition pages. Utilize Title (large) styles on narrow viewports. */
38
+ --text-title-shorthand-large: var(--text-title-weight-large) var(--text-title-size-large) / var(--text-title-lineHeight-large) var(--fontStack-sansSerifDisplay); /* Page headings for user-created objects, such as issues or pull requests. Utilize title (medium) styles on narrow viewports. */
39
+ --text-title-shorthand-medium: var(--text-title-weight-medium) var(--text-title-size-medium) / var(--text-title-lineHeight-medium) var(--fontStack-sansSerifDisplay); /* Default page title. The 32px-equivalent line-height matches with button and other medium control heights. Great for page header composition. */
40
+ --text-title-shorthand-small: var(--text-title-weight-small) var(--text-title-size-small) / var(--text-title-lineHeight-small) var(--fontStack-sansSerif); /* Uses the same size as body (large) with a heavier weight of semibold (600). */
41
+ --text-subtitle-shorthand: var(--text-subtitle-weight) var(--text-subtitle-size) / var(--text-subtitle-lineHeight) var(--fontStack-sansSerifDisplay); /* Page sections/sub headings, or less important object names in page titles (automated action titles, for example). Same line-height as title (medium). */
42
+ --text-body-shorthand-large: var(--text-body-weight) var(--text-body-size-large) / var(--text-body-lineHeight-large) var(--fontStack-sansSerif); /* User-generated content, markdown rendering. */
43
+ --text-body-shorthand-medium: var(--text-body-weight) var(--text-body-size-medium) / var(--text-body-lineHeight-medium) var(--fontStack-sansSerif); /* Default UI font. Most commonly used for body text. */
44
+ --text-body-shorthand-small: var(--text-body-weight) var(--text-body-size-small) / var(--text-body-lineHeight-small) var(--fontStack-sansSerif); /* 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. */
45
+ --text-caption-shorthand: var(--text-caption-weight) var(--text-caption-size) / var(--text-caption-lineHeight) var(--fontStack-sansSerif); /* 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. */
46
+ --text-codeBlock-shorthand: var(--text-codeBlock-weight) var(--text-codeBlock-size) / var(--text-codeBlock-lineHeight) var(--fontStack-monospace); /* Default style for rendering code blocks. */
47
+ --text-codeInline-shorthand: var(--text-codeInline-weight) var(--text-codeInline-size) var(--fontStack-monospace); /* Inline code blocks using em units to inherit size from its parent. */
48
48
  }
@@ -1,3 +1,20 @@
1
+ :root {
2
+ --base-easing-linear: cubic-bezier(0, 0, 1, 1); /* Ideal for non-movement properties, like opacity or background color. */
3
+ --base-easing-easeIn: cubic-bezier(0.7, 0.1, 0.75, 0.9); /* Ideal for movement that starts on the page and ends off the page. */
4
+ --base-easing-easeOut: cubic-bezier(0.16, 1, 0.3, 1); /* Ideal for movement that starts off the page and ends on the page. */
5
+ --base-easing-easeInOut: cubic-bezier(0.6, 0, 0.2, 1); /* Ideal for movement that starts and ends on the page. */
6
+ --base-duration-0: 0ms;
7
+ --base-duration-75: 75ms;
8
+ --base-duration-200: 200ms;
9
+ --base-duration-300: 300ms;
10
+ --base-duration-400: 400ms;
11
+ --base-duration-500: 500ms;
12
+ --base-duration-600: 600ms;
13
+ --base-duration-700: 700ms;
14
+ --base-duration-800: 800ms;
15
+ --base-duration-900: 900ms;
16
+ --base-duration-1000: 1s;
17
+ }
1
18
  :root {
2
19
  --base-size-2: 0.125rem;
3
20
  --base-size-4: 0.25rem;
@@ -26,9 +43,10 @@
26
43
  --base-text-weight-semibold: 600;
27
44
  }
28
45
  :root {
29
- --motion-skeletonLoader-shimmer-duration-scale: 1s; /* The amount of times it takes the "shimmer" effect to go from the start (left) of the skeleton loader to the end (right) */
30
- --motion-spinner-duration-rotation: 1s; /* The amount of time it takes the "Spinner" loading indicator to make a full 360deg rotation */
31
- --motion-loading-delay-default: 1s; /* The amount of time to wait before showing a loading indicator or announcing a loading state to assistive technologies. */
46
+ --motion-loading-delay-default: var(--base-duration-1000); /* The amount of time to wait before showing a loading indicator or announcing a loading state to assistive technologies. */
47
+ --motion-spinner-duration-rotation: var(--base-duration-1000); /* The amount of time it takes the "Spinner" loading indicator to make a full 360deg rotation */
48
+ --motion-spinner-easing-rotation: var(--base-easing-linear); /* The easing curve for the "Spinner" loading indicator rotation */
49
+ --motion-skeletonLoader-shimmer-duration-scale: var(--base-duration-1000); /* The amount of times it takes the "shimmer" effect to go from the start (left) of the skeleton loader to the end (right) */
32
50
  }
33
51
  :root {
34
52
  --boxShadow-thin: inset 0 0 0 max(1px, 0.0625rem); /* Thin shadow for borders */
@@ -136,50 +154,50 @@
136
154
  --overlay-offset: 0.25rem;
137
155
  }
138
156
  :root {
139
- --text-codeInline-size: 0.9285em;
140
- --text-codeBlock-lineHeight: 1.5385;
141
- --text-codeBlock-size: 0.8125rem;
142
- --text-caption-lineHeight: 1.3333;
143
- --text-caption-size: 0.75rem;
144
- --text-body-lineHeight-small: 1.6666;
145
- --text-body-lineHeight-medium: 1.4285;
146
- --text-body-lineHeight-large: 1.5;
147
- --text-body-size-small: 0.75rem;
148
- --text-body-size-medium: 0.875rem;
149
- --text-body-size-large: 1rem;
150
- --text-subtitle-lineHeight: 1.6;
151
- --text-subtitle-size: 1.25rem;
152
- --text-title-lineHeight-small: 1.5;
153
- --text-title-lineHeight-medium: 1.6;
154
- --text-title-lineHeight-large: 1.5;
155
- --text-title-size-small: 1rem;
156
- --text-title-size-medium: 1.25rem;
157
- --text-title-size-large: 2rem;
158
- --text-display-lineHeight: 1.4;
159
- --text-display-size: 2.5rem;
160
- --text-display-lineBoxHeight: 1.4;
161
- --fontStack-monospace: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace;
162
- --fontStack-sansSerifDisplay: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
163
- --fontStack-sansSerif: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
164
157
  --fontStack-system: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
165
- --text-codeInline-weight: var(--base-text-weight-normal);
166
- --text-codeBlock-weight: var(--base-text-weight-normal);
167
- --text-caption-weight: var(--base-text-weight-normal);
168
- --text-body-weight: var(--base-text-weight-normal);
169
- --text-subtitle-weight: var(--base-text-weight-normal);
170
- --text-title-weight-small: var(--base-text-weight-semibold);
171
- --text-title-weight-medium: var(--base-text-weight-semibold);
172
- --text-title-weight-large: var(--base-text-weight-semibold);
158
+ --fontStack-sansSerif: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
159
+ --fontStack-sansSerifDisplay: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
160
+ --fontStack-monospace: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace;
161
+ --text-display-lineBoxHeight: 1.4;
162
+ --text-display-size: 2.5rem;
163
+ --text-display-lineHeight: 1.4;
164
+ --text-title-size-large: 2rem;
165
+ --text-title-size-medium: 1.25rem;
166
+ --text-title-size-small: 1rem;
167
+ --text-title-lineHeight-large: 1.5;
168
+ --text-title-lineHeight-medium: 1.6;
169
+ --text-title-lineHeight-small: 1.5;
170
+ --text-subtitle-size: 1.25rem;
171
+ --text-subtitle-lineHeight: 1.6;
172
+ --text-body-size-large: 1rem;
173
+ --text-body-size-medium: 0.875rem;
174
+ --text-body-size-small: 0.75rem;
175
+ --text-body-lineHeight-large: 1.5;
176
+ --text-body-lineHeight-medium: 1.4285;
177
+ --text-body-lineHeight-small: 1.6666;
178
+ --text-caption-size: 0.75rem;
179
+ --text-caption-lineHeight: 1.3333;
180
+ --text-codeBlock-size: 0.8125rem;
181
+ --text-codeBlock-lineHeight: 1.5385;
182
+ --text-codeInline-size: 0.9285em;
173
183
  --text-display-weight: var(--base-text-weight-medium);
174
- --text-codeInline-shorthand: var(--text-codeInline-weight) var(--text-codeInline-size) var(--fontStack-monospace); /* Inline code blocks using em units to inherit size from its parent. */
175
- --text-codeBlock-shorthand: var(--text-codeBlock-weight) var(--text-codeBlock-size) / var(--text-codeBlock-lineHeight) var(--fontStack-monospace); /* Default style for rendering code blocks. */
176
- --text-caption-shorthand: var(--text-caption-weight) var(--text-caption-size) / var(--text-caption-lineHeight) var(--fontStack-sansSerif); /* 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. */
177
- --text-body-shorthand-small: var(--text-body-weight) var(--text-body-size-small) / var(--text-body-lineHeight-small) var(--fontStack-sansSerif); /* 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. */
178
- --text-body-shorthand-medium: var(--text-body-weight) var(--text-body-size-medium) / var(--text-body-lineHeight-medium) var(--fontStack-sansSerif); /* Default UI font. Most commonly used for body text. */
179
- --text-body-shorthand-large: var(--text-body-weight) var(--text-body-size-large) / var(--text-body-lineHeight-large) var(--fontStack-sansSerif); /* User-generated content, markdown rendering. */
180
- --text-subtitle-shorthand: var(--text-subtitle-weight) var(--text-subtitle-size) / var(--text-subtitle-lineHeight) var(--fontStack-sansSerifDisplay); /* Page sections/sub headings, or less important object names in page titles (automated action titles, for example). Same line-height as title (medium). */
181
- --text-title-shorthand-small: var(--text-title-weight-small) var(--text-title-size-small) / var(--text-title-lineHeight-small) var(--fontStack-sansSerif); /* Uses the same size as body (large) with a heavier weight of semibold (600). */
182
- --text-title-shorthand-medium: var(--text-title-weight-medium) var(--text-title-size-medium) / var(--text-title-lineHeight-medium) var(--fontStack-sansSerifDisplay); /* Default page title. The 32px-equivalent line-height matches with button and other medium control heights. Great for page header composition. */
183
- --text-title-shorthand-large: var(--text-title-weight-large) var(--text-title-size-large) / var(--text-title-lineHeight-large) var(--fontStack-sansSerifDisplay); /* Page headings for user-created objects, such as issues or pull requests. Utilize title (medium) styles on narrow viewports. */
184
+ --text-title-weight-large: var(--base-text-weight-semibold);
185
+ --text-title-weight-medium: var(--base-text-weight-semibold);
186
+ --text-title-weight-small: var(--base-text-weight-semibold);
187
+ --text-subtitle-weight: var(--base-text-weight-normal);
188
+ --text-body-weight: var(--base-text-weight-normal);
189
+ --text-caption-weight: var(--base-text-weight-normal);
190
+ --text-codeBlock-weight: var(--base-text-weight-normal);
191
+ --text-codeInline-weight: var(--base-text-weight-normal);
184
192
  --text-display-shorthand: var(--text-display-weight) var(--text-display-size) / var(--text-display-lineHeight) var(--fontStack-sansSerifDisplay); /* Hero-style text for brand to product transition pages. Utilize Title (large) styles on narrow viewports. */
193
+ --text-title-shorthand-large: var(--text-title-weight-large) var(--text-title-size-large) / var(--text-title-lineHeight-large) var(--fontStack-sansSerifDisplay); /* Page headings for user-created objects, such as issues or pull requests. Utilize title (medium) styles on narrow viewports. */
194
+ --text-title-shorthand-medium: var(--text-title-weight-medium) var(--text-title-size-medium) / var(--text-title-lineHeight-medium) var(--fontStack-sansSerifDisplay); /* Default page title. The 32px-equivalent line-height matches with button and other medium control heights. Great for page header composition. */
195
+ --text-title-shorthand-small: var(--text-title-weight-small) var(--text-title-size-small) / var(--text-title-lineHeight-small) var(--fontStack-sansSerif); /* Uses the same size as body (large) with a heavier weight of semibold (600). */
196
+ --text-subtitle-shorthand: var(--text-subtitle-weight) var(--text-subtitle-size) / var(--text-subtitle-lineHeight) var(--fontStack-sansSerifDisplay); /* Page sections/sub headings, or less important object names in page titles (automated action titles, for example). Same line-height as title (medium). */
197
+ --text-body-shorthand-large: var(--text-body-weight) var(--text-body-size-large) / var(--text-body-lineHeight-large) var(--fontStack-sansSerif); /* User-generated content, markdown rendering. */
198
+ --text-body-shorthand-medium: var(--text-body-weight) var(--text-body-size-medium) / var(--text-body-lineHeight-medium) var(--fontStack-sansSerif); /* Default UI font. Most commonly used for body text. */
199
+ --text-body-shorthand-small: var(--text-body-weight) var(--text-body-size-small) / var(--text-body-lineHeight-small) var(--fontStack-sansSerif); /* 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. */
200
+ --text-caption-shorthand: var(--text-caption-weight) var(--text-caption-size) / var(--text-caption-lineHeight) var(--fontStack-sansSerif); /* 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. */
201
+ --text-codeBlock-shorthand: var(--text-codeBlock-weight) var(--text-codeBlock-size) / var(--text-codeBlock-lineHeight) var(--fontStack-monospace); /* Default style for rendering code blocks. */
202
+ --text-codeInline-shorthand: var(--text-codeInline-weight) var(--text-codeInline-size) var(--fontStack-monospace); /* Inline code blocks using em units to inherit size from its parent. */
185
203
  }
@@ -0,0 +1,205 @@
1
+ {
2
+ "base-easing-linear": {
3
+ "filePath": "src/tokens/base/motion/easing.json5",
4
+ "isSource": true,
5
+ "original": {
6
+ "$value": [0, 0, 1, 1],
7
+ "$type": "cubicBezier",
8
+ "$description": "Ideal for non-movement properties, like opacity or background color."
9
+ },
10
+ "name": "base-easing-linear",
11
+ "attributes": {},
12
+ "path": ["base", "easing", "linear"],
13
+ "value": [0, 0, 1, 1],
14
+ "type": "cubicBezier",
15
+ "description": "Ideal for non-movement properties, like opacity or background color."
16
+ },
17
+ "base-easing-easeIn": {
18
+ "filePath": "src/tokens/base/motion/easing.json5",
19
+ "isSource": true,
20
+ "original": {
21
+ "$value": [0.7, 0.1, 0.75, 0.9],
22
+ "$type": "cubicBezier",
23
+ "$description": "Ideal for movement that starts on the page and ends off the page."
24
+ },
25
+ "name": "base-easing-easeIn",
26
+ "attributes": {},
27
+ "path": ["base", "easing", "easeIn"],
28
+ "value": [0.7, 0.1, 0.75, 0.9],
29
+ "type": "cubicBezier",
30
+ "description": "Ideal for movement that starts on the page and ends off the page."
31
+ },
32
+ "base-easing-easeOut": {
33
+ "filePath": "src/tokens/base/motion/easing.json5",
34
+ "isSource": true,
35
+ "original": {
36
+ "$value": [0.16, 1, 0.3, 1],
37
+ "$type": "cubicBezier",
38
+ "$description": "Ideal for movement that starts off the page and ends on the page."
39
+ },
40
+ "name": "base-easing-easeOut",
41
+ "attributes": {},
42
+ "path": ["base", "easing", "easeOut"],
43
+ "value": [0.16, 1, 0.3, 1],
44
+ "type": "cubicBezier",
45
+ "description": "Ideal for movement that starts off the page and ends on the page."
46
+ },
47
+ "base-easing-easeInOut": {
48
+ "filePath": "src/tokens/base/motion/easing.json5",
49
+ "isSource": true,
50
+ "original": {
51
+ "$value": [0.6, 0, 0.2, 1],
52
+ "$type": "cubicBezier",
53
+ "$description": "Ideal for movement that starts and ends on the page."
54
+ },
55
+ "name": "base-easing-easeInOut",
56
+ "attributes": {},
57
+ "path": ["base", "easing", "easeInOut"],
58
+ "value": [0.6, 0, 0.2, 1],
59
+ "type": "cubicBezier",
60
+ "description": "Ideal for movement that starts and ends on the page."
61
+ },
62
+ "base-duration-0": {
63
+ "filePath": "src/tokens/base/motion/timing.json5",
64
+ "isSource": true,
65
+ "original": {
66
+ "$value": "0ms",
67
+ "$type": "duration"
68
+ },
69
+ "name": "base-duration-0",
70
+ "attributes": {},
71
+ "path": ["base", "duration", "0"],
72
+ "value": "0ms",
73
+ "type": "duration"
74
+ },
75
+ "base-duration-75": {
76
+ "filePath": "src/tokens/base/motion/timing.json5",
77
+ "isSource": true,
78
+ "original": {
79
+ "$value": "75ms",
80
+ "$type": "duration"
81
+ },
82
+ "name": "base-duration-75",
83
+ "attributes": {},
84
+ "path": ["base", "duration", "75"],
85
+ "value": "75ms",
86
+ "type": "duration"
87
+ },
88
+ "base-duration-200": {
89
+ "filePath": "src/tokens/base/motion/timing.json5",
90
+ "isSource": true,
91
+ "original": {
92
+ "$value": "200ms",
93
+ "$type": "duration"
94
+ },
95
+ "name": "base-duration-200",
96
+ "attributes": {},
97
+ "path": ["base", "duration", "200"],
98
+ "value": "200ms",
99
+ "type": "duration"
100
+ },
101
+ "base-duration-300": {
102
+ "filePath": "src/tokens/base/motion/timing.json5",
103
+ "isSource": true,
104
+ "original": {
105
+ "$value": "300ms",
106
+ "$type": "duration"
107
+ },
108
+ "name": "base-duration-300",
109
+ "attributes": {},
110
+ "path": ["base", "duration", "300"],
111
+ "value": "300ms",
112
+ "type": "duration"
113
+ },
114
+ "base-duration-400": {
115
+ "filePath": "src/tokens/base/motion/timing.json5",
116
+ "isSource": true,
117
+ "original": {
118
+ "$value": "400ms",
119
+ "$type": "duration"
120
+ },
121
+ "name": "base-duration-400",
122
+ "attributes": {},
123
+ "path": ["base", "duration", "400"],
124
+ "value": "400ms",
125
+ "type": "duration"
126
+ },
127
+ "base-duration-500": {
128
+ "filePath": "src/tokens/base/motion/timing.json5",
129
+ "isSource": true,
130
+ "original": {
131
+ "$value": "500ms",
132
+ "$type": "duration"
133
+ },
134
+ "name": "base-duration-500",
135
+ "attributes": {},
136
+ "path": ["base", "duration", "500"],
137
+ "value": "500ms",
138
+ "type": "duration"
139
+ },
140
+ "base-duration-600": {
141
+ "filePath": "src/tokens/base/motion/timing.json5",
142
+ "isSource": true,
143
+ "original": {
144
+ "$value": "600ms",
145
+ "$type": "duration"
146
+ },
147
+ "name": "base-duration-600",
148
+ "attributes": {},
149
+ "path": ["base", "duration", "600"],
150
+ "value": "600ms",
151
+ "type": "duration"
152
+ },
153
+ "base-duration-700": {
154
+ "filePath": "src/tokens/base/motion/timing.json5",
155
+ "isSource": true,
156
+ "original": {
157
+ "$value": "700ms",
158
+ "$type": "duration"
159
+ },
160
+ "name": "base-duration-700",
161
+ "attributes": {},
162
+ "path": ["base", "duration", "700"],
163
+ "value": "700ms",
164
+ "type": "duration"
165
+ },
166
+ "base-duration-800": {
167
+ "filePath": "src/tokens/base/motion/timing.json5",
168
+ "isSource": true,
169
+ "original": {
170
+ "$value": "800ms",
171
+ "$type": "duration"
172
+ },
173
+ "name": "base-duration-800",
174
+ "attributes": {},
175
+ "path": ["base", "duration", "800"],
176
+ "value": "800ms",
177
+ "type": "duration"
178
+ },
179
+ "base-duration-900": {
180
+ "filePath": "src/tokens/base/motion/timing.json5",
181
+ "isSource": true,
182
+ "original": {
183
+ "$value": "900ms",
184
+ "$type": "duration"
185
+ },
186
+ "name": "base-duration-900",
187
+ "attributes": {},
188
+ "path": ["base", "duration", "900"],
189
+ "value": "900ms",
190
+ "type": "duration"
191
+ },
192
+ "base-duration-1000": {
193
+ "filePath": "src/tokens/base/motion/timing.json5",
194
+ "isSource": true,
195
+ "original": {
196
+ "$value": "1000ms",
197
+ "$type": "duration"
198
+ },
199
+ "name": "base-duration-1000",
200
+ "attributes": {},
201
+ "path": ["base", "duration", "1000"],
202
+ "value": "1000ms",
203
+ "type": "duration"
204
+ }
205
+ }