@primer/primitives 10.0.0-rc.fd912e08 → 10.1.0-rc.5ced3fe0

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 (345) hide show
  1. package/README.md +2 -2
  2. package/dist/build/filters/index.d.ts +14 -0
  3. package/dist/build/filters/index.js +14 -0
  4. package/dist/build/filters/isBorder.d.ts +7 -0
  5. package/dist/build/filters/isBorder.js +8 -0
  6. package/dist/build/filters/isColor.d.ts +7 -0
  7. package/dist/build/filters/isColor.js +10 -0
  8. package/dist/build/filters/isColorWithAlpha.d.ts +7 -0
  9. package/dist/build/filters/isColorWithAlpha.js +9 -0
  10. package/dist/build/filters/isColorWithMix.d.ts +7 -0
  11. package/dist/build/filters/isColorWithMix.js +24 -0
  12. package/dist/build/filters/isCubicBezier.d.ts +7 -0
  13. package/dist/build/filters/isCubicBezier.js +10 -0
  14. package/dist/build/filters/isDeprecated.d.ts +7 -0
  15. package/dist/build/filters/isDeprecated.js +8 -0
  16. package/dist/build/filters/isDimension.d.ts +7 -0
  17. package/dist/build/filters/isDimension.js +8 -0
  18. package/dist/build/filters/isDuration.d.ts +7 -0
  19. package/dist/build/filters/isDuration.js +8 -0
  20. package/dist/build/filters/isFontFamily.d.ts +7 -0
  21. package/dist/build/filters/isFontFamily.js +8 -0
  22. package/dist/build/filters/isFontWeight.d.ts +7 -0
  23. package/dist/build/filters/isFontWeight.js +8 -0
  24. package/dist/build/filters/isFromFile.d.ts +8 -0
  25. package/dist/build/filters/isFromFile.js +10 -0
  26. package/dist/build/filters/isNumber.d.ts +7 -0
  27. package/dist/build/filters/isNumber.js +8 -0
  28. package/dist/build/filters/isShadow.d.ts +7 -0
  29. package/dist/build/filters/isShadow.js +8 -0
  30. package/dist/build/filters/isSource.d.ts +7 -0
  31. package/dist/build/filters/isSource.js +8 -0
  32. package/dist/build/filters/isTypography.d.ts +7 -0
  33. package/dist/build/filters/isTypography.js +8 -0
  34. package/dist/build/formats/cssAdvanced.d.ts +2 -0
  35. package/dist/build/formats/cssAdvanced.js +86 -0
  36. package/dist/build/formats/cssCustomMedia.d.ts +7 -0
  37. package/dist/build/formats/cssCustomMedia.js +26 -0
  38. package/dist/build/formats/index.d.ts +9 -0
  39. package/dist/build/formats/index.js +9 -0
  40. package/dist/build/formats/javascriptCommonJs.d.ts +7 -0
  41. package/dist/build/formats/javascriptCommonJs.js +26 -0
  42. package/dist/build/formats/javascriptEsm.d.ts +7 -0
  43. package/dist/build/formats/javascriptEsm.js +26 -0
  44. package/dist/build/formats/jsonFigma.d.ts +7 -0
  45. package/dist/build/formats/jsonFigma.js +121 -0
  46. package/dist/build/formats/jsonNestedPrefixed.d.ts +8 -0
  47. package/dist/build/formats/jsonNestedPrefixed.js +30 -0
  48. package/dist/build/formats/jsonOneDimensional.d.ts +8 -0
  49. package/dist/build/formats/jsonOneDimensional.js +32 -0
  50. package/dist/build/formats/jsonPostCssFallback.d.ts +8 -0
  51. package/dist/build/formats/jsonPostCssFallback.js +14 -0
  52. package/dist/build/formats/typescriptExportDefinition.d.ts +7 -0
  53. package/dist/build/formats/typescriptExportDefinition.js +170 -0
  54. package/dist/build/formats/utilities/getPropName.d.ts +1 -0
  55. package/dist/build/formats/utilities/getPropName.js +16 -0
  56. package/dist/build/formats/utilities/jsonToFlat.d.ts +11 -0
  57. package/dist/build/formats/utilities/jsonToFlat.js +8 -0
  58. package/dist/build/formats/utilities/jsonToNestedValue.d.ts +8 -0
  59. package/dist/build/formats/utilities/jsonToNestedValue.js +23 -0
  60. package/dist/build/formats/utilities/prefixTokens.d.ts +8 -0
  61. package/dist/build/formats/utilities/prefixTokens.js +13 -0
  62. package/dist/build/parsers/index.d.ts +1 -0
  63. package/dist/build/parsers/index.js +1 -0
  64. package/dist/build/parsers/w3cJsonParser.d.ts +6 -0
  65. package/dist/build/parsers/w3cJsonParser.js +25 -0
  66. package/dist/build/platforms/css.d.ts +2 -0
  67. package/dist/build/platforms/css.js +100 -0
  68. package/dist/build/platforms/deprecatedJson.d.ts +2 -0
  69. package/dist/build/platforms/deprecatedJson.js +13 -0
  70. package/dist/build/platforms/docJson.d.ts +2 -0
  71. package/dist/build/platforms/docJson.js +39 -0
  72. package/dist/build/platforms/fallbacks.d.ts +2 -0
  73. package/dist/build/platforms/fallbacks.js +30 -0
  74. package/dist/build/platforms/figma.d.ts +2 -0
  75. package/dist/build/platforms/figma.js +63 -0
  76. package/dist/build/platforms/index.d.ts +10 -0
  77. package/dist/build/platforms/index.js +10 -0
  78. package/dist/build/platforms/javascript.d.ts +2 -0
  79. package/dist/build/platforms/javascript.js +30 -0
  80. package/dist/build/platforms/json.d.ts +2 -0
  81. package/dist/build/platforms/json.js +32 -0
  82. package/dist/build/platforms/styleLint.d.ts +2 -0
  83. package/dist/build/platforms/styleLint.js +34 -0
  84. package/dist/build/platforms/typeDefinitions.d.ts +2 -0
  85. package/dist/build/platforms/typeDefinitions.js +30 -0
  86. package/dist/build/platforms/typescript.d.ts +2 -0
  87. package/dist/build/platforms/typescript.js +30 -0
  88. package/dist/build/preprocessor/themeOverrides.d.ts +2 -0
  89. package/dist/build/preprocessor/themeOverrides.js +22 -0
  90. package/dist/build/preprocessor/utilities/transformTokens.d.ts +8 -0
  91. package/dist/build/preprocessor/utilities/transformTokens.js +22 -0
  92. package/dist/build/primerStyleDictionary.d.ts +8 -0
  93. package/dist/build/primerStyleDictionary.js +82 -0
  94. package/dist/build/schemas/alphaValue.d.ts +2 -0
  95. package/dist/build/schemas/alphaValue.js +5 -0
  96. package/dist/build/schemas/baseToken.d.ts +11 -0
  97. package/dist/build/schemas/baseToken.js +7 -0
  98. package/dist/build/schemas/borderToken.d.ts +51 -0
  99. package/dist/build/schemas/borderToken.js +17 -0
  100. package/dist/build/schemas/collections.d.ts +6 -0
  101. package/dist/build/schemas/collections.js +12 -0
  102. package/dist/build/schemas/colorHexValue.d.ts +2 -0
  103. package/dist/build/schemas/colorHexValue.js +9 -0
  104. package/dist/build/schemas/colorToken.d.ts +167 -0
  105. package/dist/build/schemas/colorToken.js +76 -0
  106. package/dist/build/schemas/cubicBezierToken.d.ts +18 -0
  107. package/dist/build/schemas/cubicBezierToken.js +8 -0
  108. package/dist/build/schemas/designToken.d.ts +2 -0
  109. package/dist/build/schemas/designToken.js +35 -0
  110. package/dist/build/schemas/dimensionToken.d.ts +59 -0
  111. package/dist/build/schemas/dimensionToken.js +34 -0
  112. package/dist/build/schemas/dimensionValue.d.ts +2 -0
  113. package/dist/build/schemas/dimensionValue.js +9 -0
  114. package/dist/build/schemas/durationToken.d.ts +18 -0
  115. package/dist/build/schemas/durationToken.js +11 -0
  116. package/dist/build/schemas/durationValue.d.ts +2 -0
  117. package/dist/build/schemas/durationValue.js +5 -0
  118. package/dist/build/schemas/fontFamilyToken.d.ts +52 -0
  119. package/dist/build/schemas/fontFamilyToken.js +20 -0
  120. package/dist/build/schemas/fontWeightToken.d.ts +52 -0
  121. package/dist/build/schemas/fontWeightToken.js +21 -0
  122. package/dist/build/schemas/fontWeightValue.d.ts +2 -0
  123. package/dist/build/schemas/fontWeightValue.js +6 -0
  124. package/dist/build/schemas/numberToken.d.ts +71 -0
  125. package/dist/build/schemas/numberToken.js +27 -0
  126. package/dist/build/schemas/referenceValue.d.ts +2 -0
  127. package/dist/build/schemas/referenceValue.js +5 -0
  128. package/dist/build/schemas/scopes.d.ts +5 -0
  129. package/dist/build/schemas/scopes.js +29 -0
  130. package/dist/build/schemas/shadowToken.d.ts +164 -0
  131. package/dist/build/schemas/shadowToken.js +46 -0
  132. package/dist/build/schemas/stringToken.d.ts +18 -0
  133. package/dist/build/schemas/stringToken.js +10 -0
  134. package/dist/build/schemas/tokenName.d.ts +2 -0
  135. package/dist/build/schemas/tokenName.js +5 -0
  136. package/dist/build/schemas/tokenType.d.ts +3 -0
  137. package/dist/build/schemas/tokenType.js +2 -0
  138. package/dist/build/schemas/typographyToken.d.ts +59 -0
  139. package/dist/build/schemas/typographyToken.js +18 -0
  140. package/dist/build/schemas/validTokenType.d.ts +5 -0
  141. package/dist/build/schemas/validTokenType.js +31 -0
  142. package/dist/build/schemas/viewportRangeToken.d.ts +18 -0
  143. package/dist/build/schemas/viewportRangeToken.js +10 -0
  144. package/dist/build/transformers/borderToCss.d.ts +8 -0
  145. package/dist/build/transformers/borderToCss.js +38 -0
  146. package/dist/build/transformers/colorToHex.d.ts +8 -0
  147. package/dist/build/transformers/colorToHex.js +24 -0
  148. package/dist/build/transformers/colorToHexMix.d.ts +8 -0
  149. package/dist/build/transformers/colorToHexMix.js +20 -0
  150. package/dist/build/transformers/colorToRgbAlpha.d.ts +8 -0
  151. package/dist/build/transformers/colorToRgbAlpha.js +20 -0
  152. package/dist/build/transformers/colorToRgbaFloat.d.ts +8 -0
  153. package/dist/build/transformers/colorToRgbaFloat.js +46 -0
  154. package/dist/build/transformers/cubicBezierToCss.d.ts +8 -0
  155. package/dist/build/transformers/cubicBezierToCss.js +23 -0
  156. package/dist/build/transformers/dimensionToPixelUnitless.d.ts +8 -0
  157. package/dist/build/transformers/dimensionToPixelUnitless.js +49 -0
  158. package/dist/build/transformers/dimensionToRem.d.ts +8 -0
  159. package/dist/build/transformers/dimensionToRem.js +46 -0
  160. package/dist/build/transformers/dimensionToRemPxArray.d.ts +8 -0
  161. package/dist/build/transformers/dimensionToRemPxArray.js +46 -0
  162. package/dist/build/transformers/durationToCss.d.ts +8 -0
  163. package/dist/build/transformers/durationToCss.js +29 -0
  164. package/dist/build/transformers/figmaAttributes.d.ts +8 -0
  165. package/dist/build/transformers/figmaAttributes.js +55 -0
  166. package/dist/build/transformers/floatToPixel.d.ts +15 -0
  167. package/dist/build/transformers/floatToPixel.js +39 -0
  168. package/dist/build/transformers/fontFamilyToCss.d.ts +14 -0
  169. package/dist/build/transformers/fontFamilyToCss.js +37 -0
  170. package/dist/build/transformers/fontFamilyToFigma.d.ts +14 -0
  171. package/dist/build/transformers/fontFamilyToFigma.js +44 -0
  172. package/dist/build/transformers/fontWeightToNumber.d.ts +9 -0
  173. package/dist/build/transformers/fontWeightToNumber.js +50 -0
  174. package/dist/build/transformers/index.d.ts +25 -0
  175. package/dist/build/transformers/index.js +25 -0
  176. package/dist/build/transformers/jsonDeprecated.d.ts +8 -0
  177. package/dist/build/transformers/jsonDeprecated.js +14 -0
  178. package/dist/build/transformers/namePathToCamelCase.d.ts +8 -0
  179. package/dist/build/transformers/namePathToCamelCase.js +12 -0
  180. package/dist/build/transformers/namePathToDotNotation.d.ts +8 -0
  181. package/dist/build/transformers/namePathToDotNotation.js +31 -0
  182. package/dist/build/transformers/namePathToFigma.d.ts +9 -0
  183. package/dist/build/transformers/namePathToFigma.js +21 -0
  184. package/dist/build/transformers/namePathToKebabCase.d.ts +8 -0
  185. package/dist/build/transformers/namePathToKebabCase.js +16 -0
  186. package/dist/build/transformers/namePathToPascalCase.d.ts +8 -0
  187. package/dist/build/transformers/namePathToPascalCase.js +12 -0
  188. package/dist/build/transformers/namePathToSlashNotation.d.ts +8 -0
  189. package/dist/build/transformers/namePathToSlashNotation.js +16 -0
  190. package/dist/build/transformers/shadowToCss.d.ts +8 -0
  191. package/dist/build/transformers/shadowToCss.js +34 -0
  192. package/dist/build/transformers/typographyToCss.d.ts +8 -0
  193. package/dist/build/transformers/typographyToCss.js +27 -0
  194. package/dist/build/transformers/utilities/alpha.d.ts +9 -0
  195. package/dist/build/transformers/utilities/alpha.js +16 -0
  196. package/dist/build/transformers/utilities/checkRequiredTokenProperties.d.ts +7 -0
  197. package/dist/build/transformers/utilities/checkRequiredTokenProperties.js +13 -0
  198. package/dist/build/transformers/utilities/getTokenValue.d.ts +2 -0
  199. package/dist/build/transformers/utilities/getTokenValue.js +16 -0
  200. package/dist/build/transformers/utilities/hasSpaceInString.d.ts +1 -0
  201. package/dist/build/transformers/utilities/hasSpaceInString.js +6 -0
  202. package/dist/build/transformers/utilities/hexToRgbaFloat.d.ts +2 -0
  203. package/dist/build/transformers/utilities/hexToRgbaFloat.js +29 -0
  204. package/dist/build/transformers/utilities/invalidTokenError.d.ts +7 -0
  205. package/dist/build/transformers/utilities/invalidTokenError.js +25 -0
  206. package/dist/build/transformers/utilities/isRgbaFloat.d.ts +7 -0
  207. package/dist/build/transformers/utilities/isRgbaFloat.js +20 -0
  208. package/dist/build/transformers/utilities/mix.d.ts +5 -0
  209. package/dist/build/transformers/utilities/mix.js +38 -0
  210. package/dist/build/transformers/utilities/rgbaFloatToHex.d.ts +6 -0
  211. package/dist/build/transformers/utilities/rgbaFloatToHex.js +11 -0
  212. package/dist/build/types/border.d.ts +5 -0
  213. package/dist/build/types/borderTokenValue.d.ts +10 -0
  214. package/dist/build/types/colorHex.d.ts +4 -0
  215. package/dist/build/types/platformInitializer.d.ts +11 -0
  216. package/dist/build/types/shadow.d.ts +5 -0
  217. package/dist/build/types/shadowTokenValue.d.ts +14 -0
  218. package/dist/build/types/sizeEm.d.ts +4 -0
  219. package/dist/build/types/sizePx.d.ts +4 -0
  220. package/dist/build/types/sizeRem.d.ts +4 -0
  221. package/dist/build/types/styleDictionaryConfigGenerator.d.ts +16 -0
  222. package/dist/build/types/tokenBuildInput.d.ts +10 -0
  223. package/dist/build/types/typographyTokenValue.d.ts +12 -0
  224. package/dist/build/types/w3cTransformedToken.d.ts +8 -0
  225. package/dist/build/utilities/copyFromDir.d.ts +8 -0
  226. package/dist/build/utilities/copyFromDir.js +31 -0
  227. package/dist/build/utilities/filterStringArray.d.ts +1 -0
  228. package/dist/build/utilities/filterStringArray.js +13 -0
  229. package/dist/build/utilities/getFlag.d.ts +8 -0
  230. package/dist/build/utilities/getFlag.js +12 -0
  231. package/dist/build/utilities/index.d.ts +9 -0
  232. package/dist/build/utilities/index.js +9 -0
  233. package/dist/build/utilities/joinFriendly.d.ts +1 -0
  234. package/dist/build/utilities/joinFriendly.js +1 -0
  235. package/dist/build/utilities/lowerCaseFirstCharacter.d.ts +8 -0
  236. package/dist/build/utilities/lowerCaseFirstCharacter.js +10 -0
  237. package/dist/build/utilities/schemaErrorMessage.d.ts +1 -0
  238. package/dist/build/utilities/schemaErrorMessage.js +1 -0
  239. package/dist/build/utilities/toCamelCase.d.ts +1 -0
  240. package/dist/build/utilities/toCamelCase.js +16 -0
  241. package/dist/build/utilities/toPascalCase.d.ts +1 -0
  242. package/dist/build/utilities/toPascalCase.js +13 -0
  243. package/dist/build/utilities/treeWalker.d.ts +8 -0
  244. package/dist/build/utilities/treeWalker.js +23 -0
  245. package/dist/build/utilities/upperCaseFirstCharacter.d.ts +8 -0
  246. package/dist/build/utilities/upperCaseFirstCharacter.js +10 -0
  247. package/dist/css/base/motion/motion.css +17 -0
  248. package/dist/css/functional/motion/motion.css +4 -3
  249. package/dist/css/functional/themes/dark-colorblind.css +58 -38
  250. package/dist/css/functional/themes/dark-dimmed.css +44 -24
  251. package/dist/css/functional/themes/dark-high-contrast.css +42 -22
  252. package/dist/css/functional/themes/dark-tritanopia.css +44 -24
  253. package/dist/css/functional/themes/dark.css +42 -22
  254. package/dist/css/functional/themes/light-colorblind.css +60 -40
  255. package/dist/css/functional/themes/light-high-contrast.css +44 -24
  256. package/dist/css/functional/themes/light-tritanopia.css +42 -22
  257. package/dist/css/functional/themes/light.css +42 -22
  258. package/dist/css/functional/typography/typography.css +43 -43
  259. package/dist/css/primitives.css +64 -46
  260. package/dist/docs/base/motion/motion.json +205 -0
  261. package/dist/docs/functional/motion/motion.json +18 -3
  262. package/dist/docs/functional/themes/dark-colorblind.json +350 -1114
  263. package/dist/docs/functional/themes/dark-dimmed.json +364 -1152
  264. package/dist/docs/functional/themes/dark-high-contrast.json +312 -922
  265. package/dist/docs/functional/themes/dark-tritanopia.json +344 -1138
  266. package/dist/docs/functional/themes/dark.json +346 -1206
  267. package/dist/docs/functional/themes/light-colorblind.json +366 -1140
  268. package/dist/docs/functional/themes/light-high-contrast.json +335 -949
  269. package/dist/docs/functional/themes/light-tritanopia.json +311 -1135
  270. package/dist/docs/functional/themes/light.json +336 -1202
  271. package/dist/fallbacks/base/motion/motion.json +17 -0
  272. package/dist/fallbacks/functional/motion/motion.json +1 -0
  273. package/dist/figma/dimension/dimension.json +518 -518
  274. package/dist/figma/figma.json +15 -23
  275. package/dist/figma/scales/dark-dimmed.json +3536 -656
  276. package/dist/figma/scales/dark-high-constrast.json +3535 -655
  277. package/dist/figma/scales/dark.json +3371 -491
  278. package/dist/figma/scales/light-high-constrast.json +3533 -653
  279. package/dist/figma/scales/light.json +3370 -490
  280. package/dist/figma/shadows/dark-colorblind.json +285 -285
  281. package/dist/figma/shadows/dark-dimmed.json +285 -285
  282. package/dist/figma/shadows/dark-high-contrast.json +285 -285
  283. package/dist/figma/shadows/dark-tritanopia.json +285 -285
  284. package/dist/figma/shadows/dark.json +285 -285
  285. package/dist/figma/shadows/light-colorblind.json +254 -254
  286. package/dist/figma/shadows/light-high-contrast.json +254 -254
  287. package/dist/figma/shadows/light-tritanopia.json +254 -254
  288. package/dist/figma/shadows/light.json +254 -254
  289. package/dist/figma/themes/dark-colorblind.json +5197 -5068
  290. package/dist/figma/themes/dark-dimmed.json +5526 -5351
  291. package/dist/figma/themes/dark-high-contrast.json +4361 -4251
  292. package/dist/figma/themes/dark-tritanopia.json +5315 -5187
  293. package/dist/figma/themes/dark.json +5740 -5581
  294. package/dist/figma/themes/light-colorblind.json +5104 -4929
  295. package/dist/figma/themes/light-high-contrast.json +4462 -4319
  296. package/dist/figma/themes/light-tritanopia.json +5176 -5050
  297. package/dist/figma/themes/light.json +5657 -5500
  298. package/dist/figma/typography/typography.json +162 -162
  299. package/dist/internalCss/dark-colorblind.css +58 -38
  300. package/dist/internalCss/dark-dimmed.css +44 -24
  301. package/dist/internalCss/dark-high-contrast.css +42 -22
  302. package/dist/internalCss/dark-tritanopia.css +44 -24
  303. package/dist/internalCss/dark.css +42 -22
  304. package/dist/internalCss/light-colorblind.css +60 -40
  305. package/dist/internalCss/light-high-contrast.css +44 -24
  306. package/dist/internalCss/light-tritanopia.css +42 -22
  307. package/dist/internalCss/light.css +42 -22
  308. package/dist/styleLint/base/motion/motion.json +205 -0
  309. package/dist/styleLint/functional/motion/motion.json +18 -3
  310. package/dist/styleLint/functional/themes/dark-colorblind.json +350 -1114
  311. package/dist/styleLint/functional/themes/dark-dimmed.json +364 -1152
  312. package/dist/styleLint/functional/themes/dark-high-contrast.json +311 -921
  313. package/dist/styleLint/functional/themes/dark-tritanopia.json +344 -1138
  314. package/dist/styleLint/functional/themes/dark.json +346 -1206
  315. package/dist/styleLint/functional/themes/light-colorblind.json +366 -1140
  316. package/dist/styleLint/functional/themes/light-high-contrast.json +335 -949
  317. package/dist/styleLint/functional/themes/light-tritanopia.json +311 -1135
  318. package/dist/styleLint/functional/themes/light.json +336 -1202
  319. package/package.json +30 -36
  320. package/src/tokens/base/motion/easing.json5 +26 -0
  321. package/src/tokens/base/motion/timing.json5 +50 -0
  322. package/src/tokens/functional/color/dark/app-dark.json5 +236 -121
  323. package/src/tokens/functional/color/dark/data-vis-dark.json5 +40 -40
  324. package/src/tokens/functional/color/dark/display-dark.json5 +95 -95
  325. package/src/tokens/functional/color/dark/overrides/dark.dimmed.json5 +1 -9
  326. package/src/tokens/functional/color/dark/overrides/dark.high-contrast.json5 +40 -27
  327. package/src/tokens/functional/color/dark/overrides/dark.protanopia-deuteranopia.json5 +56 -30
  328. package/src/tokens/functional/color/dark/overrides/dark.tritanopia.json5 +37 -14
  329. package/src/tokens/functional/color/dark/patterns-dark.json +3963 -0
  330. package/src/tokens/functional/color/dark/patterns-dark.json5 +126 -277
  331. package/src/tokens/functional/color/dark/primitives-dark.json5 +78 -78
  332. package/src/tokens/functional/color/dark/syntax-dark.json5 +47 -47
  333. package/src/tokens/functional/color/light/app-light.json5 +179 -118
  334. package/src/tokens/functional/color/light/data-vis-light.json5 +40 -40
  335. package/src/tokens/functional/color/light/display-light.json5 +0 -95
  336. package/src/tokens/functional/color/light/overrides/light.high-contrast.json5 +25 -27
  337. package/src/tokens/functional/color/light/overrides/light.protanopia-deuteranopia.json5 +58 -33
  338. package/src/tokens/functional/color/light/overrides/light.tritanopia.json5 +59 -10
  339. package/src/tokens/functional/color/light/patterns-light.json5 +126 -276
  340. package/src/tokens/functional/color/light/primitives-light.json5 +0 -78
  341. package/src/tokens/functional/color/light/syntax-light.json5 +0 -47
  342. package/src/tokens/functional/motion/loading.json5 +1 -1
  343. package/src/tokens/functional/motion/patterns.json5 +9 -2
  344. package/src/tokens/functional/shadow/dark.json5 +0 -14
  345. package/src/tokens/functional/shadow/light.json5 +0 -13
@@ -0,0 +1,11 @@
1
+ export const rgbaFloatToHex = ({ r, g, b, a }, alpha = true) => {
2
+ const values = [r, g, b, alpha === true && a && a < 1 ? a : undefined].filter(item => item !== undefined);
3
+ if (r > 1 || r < 0 || g > 1 || g < 0 || b > 1 || b < 0) {
4
+ throw new Error('Invalid RgbaFloat value. R, G and B values must be between 0 and 1.');
5
+ }
6
+ return `#${values
7
+ .map(v => Number(parseInt(`${v * 255}`, 10))
8
+ .toString(16)
9
+ .padStart(2, '0'))
10
+ .join('')}`;
11
+ };
@@ -0,0 +1,5 @@
1
+ /**
2
+ * @description a css border string
3
+ * @format color | style | width
4
+ */
5
+ type Border = `${string} ${string} ${string}`
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Type definition for w3c border composite token value
3
+ * @link https://design-tokens.github.io/community-group/format/#border
4
+ */
5
+ export type StrokeStyleString = 'solid' | 'dashed' | 'dotted' | 'double' | 'groove' | 'ridge' | 'outset' | 'inset'
6
+ export type BorderTokenValue = {
7
+ color: string
8
+ width: string
9
+ style: StrokeStyleString
10
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * @description hex string (6 or 8-digit)
3
+ */
4
+ type ColorHex = string
@@ -0,0 +1,11 @@
1
+ import type {LocalOptions, PlatformConfig} from 'style-dictionary/types'
2
+
3
+ export type PlatformInitializer = (
4
+ // the filename including the extension (e.g. `.css`) and any subfolders after the buildPath (e.g. `functional`)
5
+ outputFile: string,
6
+ // the prefix is prepended to all tokens
7
+ prefix: string | undefined,
8
+ // the build path in which the `outputFile` is placed
9
+ buildPath: string,
10
+ options?: LocalOptions,
11
+ ) => PlatformConfig
@@ -0,0 +1,5 @@
1
+ /**
2
+ * @description a css shadow
3
+ * @format inset? | offset-x | offset-y | blur-radius? | spread-radius? | color?
4
+ */
5
+ type Shadow = string
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Type definition for w3c shadow composite token value
3
+ * @link https://design-tokens.github.io/community-group/format/#shadow
4
+ */
5
+ export type ShadowTokenValue = {
6
+ color: string
7
+ offsetX: string
8
+ offsetY: string
9
+ blur: string
10
+ spread: string
11
+ // custom non w3c values
12
+ inset?: boolean
13
+ alpha?: number
14
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * @description size in em
3
+ */
4
+ type SizeEm = `${number}em`
@@ -0,0 +1,4 @@
1
+ /**
2
+ * @description size in px
3
+ */
4
+ type SizePx = `${number}px`
@@ -0,0 +1,4 @@
1
+ /**
2
+ * @description size in rem
3
+ */
4
+ type SizeRem = `${number}rem`
@@ -0,0 +1,16 @@
1
+ import type {Config, PlatformConfig} from 'style-dictionary/types'
2
+
3
+ export type ConfigGeneratorOptions = {
4
+ buildPath: string
5
+ prefix?: string
6
+ themed?: boolean
7
+ theme?: string
8
+ }
9
+
10
+ export type StyleDictionaryConfigGenerator = (
11
+ outputName: string,
12
+ source: string[],
13
+ include: string[],
14
+ options: ConfigGeneratorOptions,
15
+ platforms?: Record<string, PlatformConfig | undefined>,
16
+ ) => Config
@@ -0,0 +1,10 @@
1
+ export type TokenBuildInput = {
2
+ // The output filename WITHOUT the extension
3
+ filename: string
4
+ // Array of `filepaths` to token files that should be converted and included in the output. Accepts relative or glob paths.
5
+ source: string[]
6
+ // The mode of the theme
7
+ theme?: string
8
+ // Array of `filepaths` to token fils that should NOT be included in the output, but should be available to reference during compilation e.g. base color scales
9
+ include: string[]
10
+ }
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Type definition for w3c typography composite token value
3
+ * @link https://design-tokens.github.io/community-group/format/#typography
4
+ */
5
+ export type TypographyTokenValue = {
6
+ fontFamily: string
7
+ fontSize: number
8
+ fontWeight: number
9
+ lineHeight: number
10
+ fontStyle?: string
11
+ letterSpacing?: number
12
+ }
@@ -0,0 +1,8 @@
1
+ import type {TransformedToken} from 'style-dictionary/types'
2
+
3
+ export type w3cTokenType = 'color' | 'dimension' | 'fontFamily' | 'fontWeight' | 'duration' | 'cubicBezier'
4
+ export type w3cCompositeTokenType = 'shadow' | 'border' | 'gradient' | 'transition' | 'strokeStyle' | 'typography'
5
+
6
+ export interface w3cTransformedToken extends TransformedToken {
7
+ $type?: w3cTokenType | w3cCompositeTokenType
8
+ }
@@ -0,0 +1,8 @@
1
+ /**
2
+ * copyFromDir
3
+ * @description Copies all files from source folder to destination
4
+ * @param source path
5
+ * @param destination path
6
+ * @returns promise of file name array
7
+ */
8
+ export declare const copyFromDir: (source: string, destination: string) => Promise<string[]>;
@@ -0,0 +1,31 @@
1
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
+ return new (P || (P = Promise))(function (resolve, reject) {
4
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
8
+ });
9
+ };
10
+ /* istanbul ignore file */
11
+ import { copyFile, readdir, mkdir } from 'fs/promises';
12
+ /**
13
+ * copyFromDir
14
+ * @description Copies all files from source folder to destination
15
+ * @param source path
16
+ * @param destination path
17
+ * @returns promise of file name array
18
+ */
19
+ export const copyFromDir = (source, destination) => __awaiter(void 0, void 0, void 0, function* () {
20
+ // adjust trailing slash
21
+ const src = `${source.replace(/\/$/, '')}`;
22
+ const dest = `${destination.replace(/\/$/, '')}`;
23
+ // create dest if it does not exists
24
+ yield mkdir(dest, { recursive: true });
25
+ // read files from source
26
+ const files = yield readdir(src);
27
+ for (const file of files) {
28
+ copyFile(`${src}/${file}`, `${dest}/${file}`);
29
+ }
30
+ return files;
31
+ });
@@ -0,0 +1 @@
1
+ export declare const filterStringArray: (string: string[]) => string[];
@@ -0,0 +1,13 @@
1
+ export const filterStringArray = (string) => {
2
+ // match unsupported characters
3
+ const regex = /[^a-zA-Z0-9]+/g;
4
+ // replace any non-letter and non-number character and split into word array
5
+ const stringArray = string
6
+ .filter(Boolean)
7
+ .join(' ')
8
+ .replace(regex, ' ')
9
+ .split(' ')
10
+ // remove undefined if exists
11
+ .filter((part) => Boolean(part) && typeof part === 'string');
12
+ return stringArray;
13
+ };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Get the value of a flag from the command line
3
+ * @param flag name of the flag to get
4
+ * @param prefix default `--` but can be changed to `-` the part to the left of the flag name
5
+ * @returns null if flag is not found, otherwise the value of the flag or the flag name if the flag has no value
6
+ * @example `getFlag('--silent')` returns `null` if `--silent` is not found, `--silent` if `--silent` is found with no value, and `true` if `--silent=true` is found
7
+ */
8
+ export declare const getFlag: (flag: string, prefix?: string) => string | null;
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Get the value of a flag from the command line
3
+ * @param flag name of the flag to get
4
+ * @param prefix default `--` but can be changed to `-` the part to the left of the flag name
5
+ * @returns null if flag is not found, otherwise the value of the flag or the flag name if the flag has no value
6
+ * @example `getFlag('--silent')` returns `null` if `--silent` is not found, `--silent` if `--silent` is found with no value, and `true` if `--silent=true` is found
7
+ */
8
+ export const getFlag = (flag, prefix = '--') => {
9
+ flag = `${prefix}${flag.replace(prefix, '')}`;
10
+ const index = process.argv.findIndex(arg => arg === flag || arg.startsWith(`${flag}=`));
11
+ return index === -1 ? null : process.argv[index].replace(`${flag}=`, '');
12
+ };
@@ -0,0 +1,9 @@
1
+ export { copyFromDir } from './copyFromDir.js';
2
+ export { filterStringArray } from './filterStringArray.js';
3
+ export { getFlag } from './getFlag.js';
4
+ export { joinFriendly } from './joinFriendly.js';
5
+ export { schemaErrorMessage } from './schemaErrorMessage.js';
6
+ export { toCamelCase } from './toCamelCase.js';
7
+ export { toPascalCase } from './toPascalCase.js';
8
+ export { treeWalker } from './treeWalker.js';
9
+ export { upperCaseFirstCharacter } from './upperCaseFirstCharacter.js';
@@ -0,0 +1,9 @@
1
+ export { copyFromDir } from './copyFromDir.js';
2
+ export { filterStringArray } from './filterStringArray.js';
3
+ export { getFlag } from './getFlag.js';
4
+ export { joinFriendly } from './joinFriendly.js';
5
+ export { schemaErrorMessage } from './schemaErrorMessage.js';
6
+ export { toCamelCase } from './toCamelCase.js';
7
+ export { toPascalCase } from './toPascalCase.js';
8
+ export { treeWalker } from './treeWalker.js';
9
+ export { upperCaseFirstCharacter } from './upperCaseFirstCharacter.js';
@@ -0,0 +1 @@
1
+ export declare const joinFriendly: (array: string[], lastJoin?: string) => string;
@@ -0,0 +1 @@
1
+ export const joinFriendly = (array, lastJoin = 'and') => array.length > 1 ? `${array.slice(0, -1).join(', ')} ${lastJoin} ${array.slice(-1)}` : `${array[0]}`;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * lowerCaseFirstCharacter
3
+ * @scope custom implementation should only be used within `name path to ...` transformer
4
+ * @description changes first letter to uppercase but keeps the rest of the word as is
5
+ * @param string
6
+ * @returns string
7
+ */
8
+ export declare const lowerCaseFirstCharacter: ([firstLetter, ...restOfWord]: string) => string;
@@ -0,0 +1,10 @@
1
+ /**
2
+ * lowerCaseFirstCharacter
3
+ * @scope custom implementation should only be used within `name path to ...` transformer
4
+ * @description changes first letter to uppercase but keeps the rest of the word as is
5
+ * @param string
6
+ * @returns string
7
+ */
8
+ export const lowerCaseFirstCharacter = ([firstLetter, ...restOfWord]) => {
9
+ return firstLetter.toLowerCase() + restOfWord.join('');
10
+ };
@@ -0,0 +1 @@
1
+ export declare const schemaErrorMessage: (title: string, description?: string) => string;
@@ -0,0 +1 @@
1
+ export const schemaErrorMessage = (title, description) => `**${title}**${description ? `\n${description}` : ``}`;
@@ -0,0 +1 @@
1
+ export declare const toCamelCase: (string: string | string[]) => string;
@@ -0,0 +1,16 @@
1
+ import { filterStringArray } from './filterStringArray.js';
2
+ import { upperCaseFirstCharacter } from './upperCaseFirstCharacter.js';
3
+ export const toCamelCase = (string) => {
4
+ if (!Array.isArray(string)) {
5
+ string = [string];
6
+ }
7
+ return (filterStringArray(string)
8
+ // ucFirst all but first part
9
+ .map((part, index) => {
10
+ if (index > 0) {
11
+ return upperCaseFirstCharacter(part);
12
+ }
13
+ return part;
14
+ })
15
+ .join(''));
16
+ };
@@ -0,0 +1 @@
1
+ export declare const toPascalCase: (string: string | string[]) => string;
@@ -0,0 +1,13 @@
1
+ import { filterStringArray } from './filterStringArray.js';
2
+ import { upperCaseFirstCharacter } from './upperCaseFirstCharacter.js';
3
+ export const toPascalCase = (string) => {
4
+ if (!Array.isArray(string)) {
5
+ string = [string];
6
+ }
7
+ return (filterStringArray(string)
8
+ // ucFirst all but first part
9
+ .map((part) => {
10
+ return upperCaseFirstCharacter(part);
11
+ })
12
+ .join(''));
13
+ };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @description converts tokens to type and returns array with used type
3
+ * @param tree object
4
+ * @param callback function to be run on valid items
5
+ * @param validItem function to test if a node is a validItem to be transformed
6
+ * @returns object
7
+ */
8
+ export declare const treeWalker: (tree: unknown, callback: <T>(argument: T) => unknown, isValidItem: (argument: unknown) => boolean) => unknown;
@@ -0,0 +1,23 @@
1
+ /**
2
+ * @description converts tokens to type and returns array with used type
3
+ * @param tree object
4
+ * @param callback function to be run on valid items
5
+ * @param validItem function to test if a node is a validItem to be transformed
6
+ * @returns object
7
+ */
8
+ export const treeWalker = (tree, callback, isValidItem) => {
9
+ // is a valid item -> pass through callback
10
+ if (isValidItem(tree)) {
11
+ return callback(tree);
12
+ }
13
+ // is non-object value -> ignore
14
+ if (typeof tree !== 'object' || tree === null) {
15
+ return;
16
+ }
17
+ // is obj -> continue
18
+ const nextObj = {};
19
+ for (const [prop, value] of Object.entries(tree)) {
20
+ nextObj[prop] = treeWalker(value, callback, isValidItem);
21
+ }
22
+ return nextObj;
23
+ };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * upperCaseFirstCharacter
3
+ * @scope custom implementation should only be used within `name path to ...` transformer
4
+ * @description changes first letter to uppercase but keeps the rest of the word as is
5
+ * @param string
6
+ * @returns string
7
+ */
8
+ export declare const upperCaseFirstCharacter: ([firstLetter, ...restOfWord]: string) => string;
@@ -0,0 +1,10 @@
1
+ /**
2
+ * upperCaseFirstCharacter
3
+ * @scope custom implementation should only be used within `name path to ...` transformer
4
+ * @description changes first letter to uppercase but keeps the rest of the word as is
5
+ * @param string
6
+ * @returns string
7
+ */
8
+ export const upperCaseFirstCharacter = ([firstLetter, ...restOfWord]) => {
9
+ return firstLetter.toUpperCase() + restOfWord.join('');
10
+ };
@@ -0,0 +1,17 @@
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,5 +1,6 @@
1
1
  :root {
2
- --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) */
3
- --motion-spinner-duration-rotation: 1s; /* The amount of time it takes the "Spinner" loading indicator to make a full 360deg rotation */
4
- --motion-loading-delay-default: 1s; /* The amount of time to wait before showing a loading indicator or announcing a loading state to assistive technologies. */
2
+ --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. */
3
+ --motion-spinner-duration-rotation: var(--base-duration-1000); /* The amount of time it takes the "Spinner" loading indicator to make a full 360deg rotation */
4
+ --motion-spinner-easing-rotation: var(--base-easing-linear); /* The easing curve for the "Spinner" loading indicator rotation */
5
+ --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) */
5
6
  }
@@ -5,17 +5,26 @@
5
5
  --topicTag-borderColor: #00000000;
6
6
  --highlight-neutral-bgColor: #d2992266;
7
7
  --page-header-bgColor: #0d1117;
8
- --diffBlob-addition-fgColor-text: #f0f6fc;
9
- --diffBlob-addition-fgColor-num: #f0f6fc;
10
- --diffBlob-addition-bgColor-num: #58a6ff4d;
11
- --diffBlob-addition-bgColor-line: #388bfd26;
12
- --diffBlob-addition-bgColor-word: #388bfd66;
13
- --diffBlob-deletion-fgColor-text: #f0f6fc;
14
- --diffBlob-deletion-fgColor-num: #f0f6fc;
15
- --diffBlob-deletion-bgColor-num: #db6d284d;
16
- --diffBlob-deletion-bgColor-line: #db6d2826;
17
- --diffBlob-deletion-bgColor-word: #db6d2866;
18
- --diffBlob-hunk-bgColor-num: #388bfd66;
8
+ --diffBlob-additionLine-fgColor: #f0f6fc;
9
+ --diffBlob-additionLine-bgColor: #388bfd26;
10
+ --diffBlob-additionWord-fgColor: #f0f6fc;
11
+ --diffBlob-additionWord-bgColor: #388bfd66;
12
+ --diffBlob-additionNum-fgColor: #f0f6fc;
13
+ --diffBlob-additionNum-bgColor: #58a6ff4d;
14
+ --diffBlob-deletionLine-fgColor: #f0f6fc;
15
+ --diffBlob-deletionLine-bgColor: #db6d2826;
16
+ --diffBlob-deletionWord-fgColor: #f0f6fc;
17
+ --diffBlob-deletionWord-bgColor: #db6d2866;
18
+ --diffBlob-deletionNum-fgColor: #f0f6fc;
19
+ --diffBlob-deletionNum-bgColor: #db6d284d;
20
+ --diffBlob-hunkLine-fgColor: #9198a1;
21
+ --diffBlob-hunkLine-bgColor: #212830;
22
+ --diffBlob-hunkNum-fgColor-rest: #f0f6fc;
23
+ --diffBlob-hunkNum-fgColor-hover: #ffffff;
24
+ --diffBlob-hunkNum-bgColor-rest: #2f3742;
25
+ --diffBlob-hunkNum-bgColor-hover: #656c76;
26
+ --diffBlob-emptyNum-bgColor: #151b23;
27
+ --diffBlob-emptyLine-bgColor: #151b23;
19
28
  --diffBlob-expander-iconColor: #9198a1;
20
29
  --codeMirror-fgColor: #f0f6fc;
21
30
  --codeMirror-bgColor: #0d1117;
@@ -186,7 +195,7 @@
186
195
  --control-transparent-borderColor-rest: #00000000;
187
196
  --control-transparent-borderColor-hover: #00000000;
188
197
  --control-transparent-borderColor-active: #00000000;
189
- --control-danger-fgColor-rest: #db6d28;
198
+ --control-danger-fgColor-rest: #f0883e;
190
199
  --control-danger-fgColor-hover: #f0883e;
191
200
  --control-danger-bgColor-hover: #db6d281a;
192
201
  --control-danger-bgColor-active: #db6d2866;
@@ -242,6 +251,7 @@
242
251
  --button-primary-shadow-selected: 0px 0px 0px 0px #000000;
243
252
  --button-invisible-fgColor-rest: #f0f6fc;
244
253
  --button-invisible-fgColor-hover: #f0f6fc;
254
+ --button-invisible-fgColor-active: #f0f6fc;
245
255
  --button-invisible-fgColor-disabled: #656c7699;
246
256
  --button-invisible-iconColor-rest: #9198a1;
247
257
  --button-invisible-iconColor-hover: #9198a1;
@@ -264,11 +274,11 @@
264
274
  --button-outline-borderColor-hover: #3d444d;
265
275
  --button-outline-borderColor-selected: #3d444d;
266
276
  --button-outline-shadow-selected: 0px 0px 0px 0px #000000;
267
- --button-danger-fgColor-rest: #db6d28;
277
+ --button-danger-fgColor-rest: #f0883e;
268
278
  --button-danger-fgColor-hover: #ffffff;
269
279
  --button-danger-fgColor-active: #ffffff;
270
- --button-danger-fgColor-disabled: #db6d2880;
271
- --button-danger-iconColor-rest: #db6d28;
280
+ --button-danger-fgColor-disabled: #f0883e80;
281
+ --button-danger-iconColor-rest: #f0883e;
272
282
  --button-danger-iconColor-hover: #ffffff;
273
283
  --button-danger-bgColor-rest: #212830;
274
284
  --button-danger-bgColor-hover: #9b4215;
@@ -293,9 +303,9 @@
293
303
  --buttonCounter-danger-bgColor-hover: #ffffff33;
294
304
  --buttonCounter-danger-bgColor-disabled: #bd561d0d;
295
305
  --buttonCounter-danger-bgColor-rest: #49020233;
296
- --buttonCounter-danger-fgColor-rest: #db6d28;
306
+ --buttonCounter-danger-fgColor-rest: #f0883e;
297
307
  --buttonCounter-danger-fgColor-hover: #ffffff;
298
- --buttonCounter-danger-fgColor-disabled: #db6d2880;
308
+ --buttonCounter-danger-fgColor-disabled: #f0883e80;
299
309
  --reactionButton-selected-bgColor-rest: #388bfd33;
300
310
  --reactionButton-selected-bgColor-hover: #3a8cfd5c;
301
311
  --reactionButton-selected-fgColor-rest: #4493f8;
@@ -446,7 +456,7 @@
446
456
  --fgColor-open: #f0883e;
447
457
  --fgColor-attention: #d29922;
448
458
  --fgColor-severe: #db6d28;
449
- --fgColor-danger: #db6d28;
459
+ --fgColor-danger: #f0883e;
450
460
  --fgColor-closed: #9198a1;
451
461
  --fgColor-done: #ab7df8;
452
462
  --fgColor-upsell: #ab7df8;
@@ -466,7 +476,7 @@
466
476
  --bgColor-accent-emphasis: #1f6feb;
467
477
  --bgColor-success-muted: #388bfd26;
468
478
  --bgColor-success-emphasis: #1f6feb;
469
- --bgColor-open-muted: #db6d2866;
479
+ --bgColor-open-muted: #db6d2833;
470
480
  --bgColor-open-emphasis: #bd561d;
471
481
  --bgColor-attention-muted: #bb800926;
472
482
  --bgColor-attention-emphasis: #9e6a03;
@@ -574,17 +584,26 @@
574
584
  --topicTag-borderColor: #00000000;
575
585
  --highlight-neutral-bgColor: #d2992266;
576
586
  --page-header-bgColor: #0d1117;
577
- --diffBlob-addition-fgColor-text: #f0f6fc;
578
- --diffBlob-addition-fgColor-num: #f0f6fc;
579
- --diffBlob-addition-bgColor-num: #58a6ff4d;
580
- --diffBlob-addition-bgColor-line: #388bfd26;
581
- --diffBlob-addition-bgColor-word: #388bfd66;
582
- --diffBlob-deletion-fgColor-text: #f0f6fc;
583
- --diffBlob-deletion-fgColor-num: #f0f6fc;
584
- --diffBlob-deletion-bgColor-num: #db6d284d;
585
- --diffBlob-deletion-bgColor-line: #db6d2826;
586
- --diffBlob-deletion-bgColor-word: #db6d2866;
587
- --diffBlob-hunk-bgColor-num: #388bfd66;
587
+ --diffBlob-additionLine-fgColor: #f0f6fc;
588
+ --diffBlob-additionLine-bgColor: #388bfd26;
589
+ --diffBlob-additionWord-fgColor: #f0f6fc;
590
+ --diffBlob-additionWord-bgColor: #388bfd66;
591
+ --diffBlob-additionNum-fgColor: #f0f6fc;
592
+ --diffBlob-additionNum-bgColor: #58a6ff4d;
593
+ --diffBlob-deletionLine-fgColor: #f0f6fc;
594
+ --diffBlob-deletionLine-bgColor: #db6d2826;
595
+ --diffBlob-deletionWord-fgColor: #f0f6fc;
596
+ --diffBlob-deletionWord-bgColor: #db6d2866;
597
+ --diffBlob-deletionNum-fgColor: #f0f6fc;
598
+ --diffBlob-deletionNum-bgColor: #db6d284d;
599
+ --diffBlob-hunkLine-fgColor: #9198a1;
600
+ --diffBlob-hunkLine-bgColor: #212830;
601
+ --diffBlob-hunkNum-fgColor-rest: #f0f6fc;
602
+ --diffBlob-hunkNum-fgColor-hover: #ffffff;
603
+ --diffBlob-hunkNum-bgColor-rest: #2f3742;
604
+ --diffBlob-hunkNum-bgColor-hover: #656c76;
605
+ --diffBlob-emptyNum-bgColor: #151b23;
606
+ --diffBlob-emptyLine-bgColor: #151b23;
588
607
  --diffBlob-expander-iconColor: #9198a1;
589
608
  --codeMirror-fgColor: #f0f6fc;
590
609
  --codeMirror-bgColor: #0d1117;
@@ -755,7 +774,7 @@
755
774
  --control-transparent-borderColor-rest: #00000000;
756
775
  --control-transparent-borderColor-hover: #00000000;
757
776
  --control-transparent-borderColor-active: #00000000;
758
- --control-danger-fgColor-rest: #db6d28;
777
+ --control-danger-fgColor-rest: #f0883e;
759
778
  --control-danger-fgColor-hover: #f0883e;
760
779
  --control-danger-bgColor-hover: #db6d281a;
761
780
  --control-danger-bgColor-active: #db6d2866;
@@ -811,6 +830,7 @@
811
830
  --button-primary-shadow-selected: 0px 0px 0px 0px #000000;
812
831
  --button-invisible-fgColor-rest: #f0f6fc;
813
832
  --button-invisible-fgColor-hover: #f0f6fc;
833
+ --button-invisible-fgColor-active: #f0f6fc;
814
834
  --button-invisible-fgColor-disabled: #656c7699;
815
835
  --button-invisible-iconColor-rest: #9198a1;
816
836
  --button-invisible-iconColor-hover: #9198a1;
@@ -833,11 +853,11 @@
833
853
  --button-outline-borderColor-hover: #3d444d;
834
854
  --button-outline-borderColor-selected: #3d444d;
835
855
  --button-outline-shadow-selected: 0px 0px 0px 0px #000000;
836
- --button-danger-fgColor-rest: #db6d28;
856
+ --button-danger-fgColor-rest: #f0883e;
837
857
  --button-danger-fgColor-hover: #ffffff;
838
858
  --button-danger-fgColor-active: #ffffff;
839
- --button-danger-fgColor-disabled: #db6d2880;
840
- --button-danger-iconColor-rest: #db6d28;
859
+ --button-danger-fgColor-disabled: #f0883e80;
860
+ --button-danger-iconColor-rest: #f0883e;
841
861
  --button-danger-iconColor-hover: #ffffff;
842
862
  --button-danger-bgColor-rest: #212830;
843
863
  --button-danger-bgColor-hover: #9b4215;
@@ -862,9 +882,9 @@
862
882
  --buttonCounter-danger-bgColor-hover: #ffffff33;
863
883
  --buttonCounter-danger-bgColor-disabled: #bd561d0d;
864
884
  --buttonCounter-danger-bgColor-rest: #49020233;
865
- --buttonCounter-danger-fgColor-rest: #db6d28;
885
+ --buttonCounter-danger-fgColor-rest: #f0883e;
866
886
  --buttonCounter-danger-fgColor-hover: #ffffff;
867
- --buttonCounter-danger-fgColor-disabled: #db6d2880;
887
+ --buttonCounter-danger-fgColor-disabled: #f0883e80;
868
888
  --reactionButton-selected-bgColor-rest: #388bfd33;
869
889
  --reactionButton-selected-bgColor-hover: #3a8cfd5c;
870
890
  --reactionButton-selected-fgColor-rest: #4493f8;
@@ -1015,7 +1035,7 @@
1015
1035
  --fgColor-open: #f0883e;
1016
1036
  --fgColor-attention: #d29922;
1017
1037
  --fgColor-severe: #db6d28;
1018
- --fgColor-danger: #db6d28;
1038
+ --fgColor-danger: #f0883e;
1019
1039
  --fgColor-closed: #9198a1;
1020
1040
  --fgColor-done: #ab7df8;
1021
1041
  --fgColor-upsell: #ab7df8;
@@ -1035,7 +1055,7 @@
1035
1055
  --bgColor-accent-emphasis: #1f6feb;
1036
1056
  --bgColor-success-muted: #388bfd26;
1037
1057
  --bgColor-success-emphasis: #1f6feb;
1038
- --bgColor-open-muted: #db6d2866;
1058
+ --bgColor-open-muted: #db6d2833;
1039
1059
  --bgColor-open-emphasis: #bd561d;
1040
1060
  --bgColor-attention-muted: #bb800926;
1041
1061
  --bgColor-attention-emphasis: #9e6a03;