@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.
- package/README.md +2 -2
- package/dist/build/filters/index.d.ts +14 -0
- package/dist/build/filters/index.js +14 -0
- package/dist/build/filters/isBorder.d.ts +7 -0
- package/dist/build/filters/isBorder.js +8 -0
- package/dist/build/filters/isColor.d.ts +7 -0
- package/dist/build/filters/isColor.js +10 -0
- package/dist/build/filters/isColorWithAlpha.d.ts +7 -0
- package/dist/build/filters/isColorWithAlpha.js +9 -0
- package/dist/build/filters/isColorWithMix.d.ts +7 -0
- package/dist/build/filters/isColorWithMix.js +24 -0
- package/dist/build/filters/isCubicBezier.d.ts +7 -0
- package/dist/build/filters/isCubicBezier.js +10 -0
- package/dist/build/filters/isDeprecated.d.ts +7 -0
- package/dist/build/filters/isDeprecated.js +8 -0
- package/dist/build/filters/isDimension.d.ts +7 -0
- package/dist/build/filters/isDimension.js +8 -0
- package/dist/build/filters/isDuration.d.ts +7 -0
- package/dist/build/filters/isDuration.js +8 -0
- package/dist/build/filters/isFontFamily.d.ts +7 -0
- package/dist/build/filters/isFontFamily.js +8 -0
- package/dist/build/filters/isFontWeight.d.ts +7 -0
- package/dist/build/filters/isFontWeight.js +8 -0
- package/dist/build/filters/isFromFile.d.ts +8 -0
- package/dist/build/filters/isFromFile.js +10 -0
- package/dist/build/filters/isNumber.d.ts +7 -0
- package/dist/build/filters/isNumber.js +8 -0
- package/dist/build/filters/isShadow.d.ts +7 -0
- package/dist/build/filters/isShadow.js +8 -0
- package/dist/build/filters/isSource.d.ts +7 -0
- package/dist/build/filters/isSource.js +8 -0
- package/dist/build/filters/isTypography.d.ts +7 -0
- package/dist/build/filters/isTypography.js +8 -0
- package/dist/build/formats/cssAdvanced.d.ts +2 -0
- package/dist/build/formats/cssAdvanced.js +86 -0
- package/dist/build/formats/cssCustomMedia.d.ts +7 -0
- package/dist/build/formats/cssCustomMedia.js +26 -0
- package/dist/build/formats/index.d.ts +9 -0
- package/dist/build/formats/index.js +9 -0
- package/dist/build/formats/javascriptCommonJs.d.ts +7 -0
- package/dist/build/formats/javascriptCommonJs.js +26 -0
- package/dist/build/formats/javascriptEsm.d.ts +7 -0
- package/dist/build/formats/javascriptEsm.js +26 -0
- package/dist/build/formats/jsonFigma.d.ts +7 -0
- package/dist/build/formats/jsonFigma.js +121 -0
- package/dist/build/formats/jsonNestedPrefixed.d.ts +8 -0
- package/dist/build/formats/jsonNestedPrefixed.js +30 -0
- package/dist/build/formats/jsonOneDimensional.d.ts +8 -0
- package/dist/build/formats/jsonOneDimensional.js +32 -0
- package/dist/build/formats/jsonPostCssFallback.d.ts +8 -0
- package/dist/build/formats/jsonPostCssFallback.js +14 -0
- package/dist/build/formats/typescriptExportDefinition.d.ts +7 -0
- package/dist/build/formats/typescriptExportDefinition.js +170 -0
- package/dist/build/formats/utilities/getPropName.d.ts +1 -0
- package/dist/build/formats/utilities/getPropName.js +16 -0
- package/dist/build/formats/utilities/jsonToFlat.d.ts +11 -0
- package/dist/build/formats/utilities/jsonToFlat.js +8 -0
- package/dist/build/formats/utilities/jsonToNestedValue.d.ts +8 -0
- package/dist/build/formats/utilities/jsonToNestedValue.js +23 -0
- package/dist/build/formats/utilities/prefixTokens.d.ts +8 -0
- package/dist/build/formats/utilities/prefixTokens.js +13 -0
- package/dist/build/parsers/index.d.ts +1 -0
- package/dist/build/parsers/index.js +1 -0
- package/dist/build/parsers/w3cJsonParser.d.ts +6 -0
- package/dist/build/parsers/w3cJsonParser.js +25 -0
- package/dist/build/platforms/css.d.ts +2 -0
- package/dist/build/platforms/css.js +100 -0
- package/dist/build/platforms/deprecatedJson.d.ts +2 -0
- package/dist/build/platforms/deprecatedJson.js +13 -0
- package/dist/build/platforms/docJson.d.ts +2 -0
- package/dist/build/platforms/docJson.js +39 -0
- package/dist/build/platforms/fallbacks.d.ts +2 -0
- package/dist/build/platforms/fallbacks.js +30 -0
- package/dist/build/platforms/figma.d.ts +2 -0
- package/dist/build/platforms/figma.js +63 -0
- package/dist/build/platforms/index.d.ts +10 -0
- package/dist/build/platforms/index.js +10 -0
- package/dist/build/platforms/javascript.d.ts +2 -0
- package/dist/build/platforms/javascript.js +30 -0
- package/dist/build/platforms/json.d.ts +2 -0
- package/dist/build/platforms/json.js +32 -0
- package/dist/build/platforms/styleLint.d.ts +2 -0
- package/dist/build/platforms/styleLint.js +34 -0
- package/dist/build/platforms/typeDefinitions.d.ts +2 -0
- package/dist/build/platforms/typeDefinitions.js +30 -0
- package/dist/build/platforms/typescript.d.ts +2 -0
- package/dist/build/platforms/typescript.js +30 -0
- package/dist/build/preprocessor/themeOverrides.d.ts +2 -0
- package/dist/build/preprocessor/themeOverrides.js +22 -0
- package/dist/build/preprocessor/utilities/transformTokens.d.ts +8 -0
- package/dist/build/preprocessor/utilities/transformTokens.js +22 -0
- package/dist/build/primerStyleDictionary.d.ts +8 -0
- package/dist/build/primerStyleDictionary.js +82 -0
- package/dist/build/schemas/alphaValue.d.ts +2 -0
- package/dist/build/schemas/alphaValue.js +5 -0
- package/dist/build/schemas/baseToken.d.ts +11 -0
- package/dist/build/schemas/baseToken.js +7 -0
- package/dist/build/schemas/borderToken.d.ts +51 -0
- package/dist/build/schemas/borderToken.js +17 -0
- package/dist/build/schemas/collections.d.ts +6 -0
- package/dist/build/schemas/collections.js +12 -0
- package/dist/build/schemas/colorHexValue.d.ts +2 -0
- package/dist/build/schemas/colorHexValue.js +9 -0
- package/dist/build/schemas/colorToken.d.ts +167 -0
- package/dist/build/schemas/colorToken.js +76 -0
- package/dist/build/schemas/cubicBezierToken.d.ts +18 -0
- package/dist/build/schemas/cubicBezierToken.js +8 -0
- package/dist/build/schemas/designToken.d.ts +2 -0
- package/dist/build/schemas/designToken.js +35 -0
- package/dist/build/schemas/dimensionToken.d.ts +59 -0
- package/dist/build/schemas/dimensionToken.js +34 -0
- package/dist/build/schemas/dimensionValue.d.ts +2 -0
- package/dist/build/schemas/dimensionValue.js +9 -0
- package/dist/build/schemas/durationToken.d.ts +18 -0
- package/dist/build/schemas/durationToken.js +11 -0
- package/dist/build/schemas/durationValue.d.ts +2 -0
- package/dist/build/schemas/durationValue.js +5 -0
- package/dist/build/schemas/fontFamilyToken.d.ts +52 -0
- package/dist/build/schemas/fontFamilyToken.js +20 -0
- package/dist/build/schemas/fontWeightToken.d.ts +52 -0
- package/dist/build/schemas/fontWeightToken.js +21 -0
- package/dist/build/schemas/fontWeightValue.d.ts +2 -0
- package/dist/build/schemas/fontWeightValue.js +6 -0
- package/dist/build/schemas/numberToken.d.ts +71 -0
- package/dist/build/schemas/numberToken.js +27 -0
- package/dist/build/schemas/referenceValue.d.ts +2 -0
- package/dist/build/schemas/referenceValue.js +5 -0
- package/dist/build/schemas/scopes.d.ts +5 -0
- package/dist/build/schemas/scopes.js +29 -0
- package/dist/build/schemas/shadowToken.d.ts +164 -0
- package/dist/build/schemas/shadowToken.js +46 -0
- package/dist/build/schemas/stringToken.d.ts +18 -0
- package/dist/build/schemas/stringToken.js +10 -0
- package/dist/build/schemas/tokenName.d.ts +2 -0
- package/dist/build/schemas/tokenName.js +5 -0
- package/dist/build/schemas/tokenType.d.ts +3 -0
- package/dist/build/schemas/tokenType.js +2 -0
- package/dist/build/schemas/typographyToken.d.ts +59 -0
- package/dist/build/schemas/typographyToken.js +18 -0
- package/dist/build/schemas/validTokenType.d.ts +5 -0
- package/dist/build/schemas/validTokenType.js +31 -0
- package/dist/build/schemas/viewportRangeToken.d.ts +18 -0
- package/dist/build/schemas/viewportRangeToken.js +10 -0
- package/dist/build/transformers/borderToCss.d.ts +8 -0
- package/dist/build/transformers/borderToCss.js +38 -0
- package/dist/build/transformers/colorToHex.d.ts +8 -0
- package/dist/build/transformers/colorToHex.js +24 -0
- package/dist/build/transformers/colorToHexMix.d.ts +8 -0
- package/dist/build/transformers/colorToHexMix.js +20 -0
- package/dist/build/transformers/colorToRgbAlpha.d.ts +8 -0
- package/dist/build/transformers/colorToRgbAlpha.js +20 -0
- package/dist/build/transformers/colorToRgbaFloat.d.ts +8 -0
- package/dist/build/transformers/colorToRgbaFloat.js +46 -0
- package/dist/build/transformers/cubicBezierToCss.d.ts +8 -0
- package/dist/build/transformers/cubicBezierToCss.js +23 -0
- package/dist/build/transformers/dimensionToPixelUnitless.d.ts +8 -0
- package/dist/build/transformers/dimensionToPixelUnitless.js +49 -0
- package/dist/build/transformers/dimensionToRem.d.ts +8 -0
- package/dist/build/transformers/dimensionToRem.js +46 -0
- package/dist/build/transformers/dimensionToRemPxArray.d.ts +8 -0
- package/dist/build/transformers/dimensionToRemPxArray.js +46 -0
- package/dist/build/transformers/durationToCss.d.ts +8 -0
- package/dist/build/transformers/durationToCss.js +29 -0
- package/dist/build/transformers/figmaAttributes.d.ts +8 -0
- package/dist/build/transformers/figmaAttributes.js +55 -0
- package/dist/build/transformers/floatToPixel.d.ts +15 -0
- package/dist/build/transformers/floatToPixel.js +39 -0
- package/dist/build/transformers/fontFamilyToCss.d.ts +14 -0
- package/dist/build/transformers/fontFamilyToCss.js +37 -0
- package/dist/build/transformers/fontFamilyToFigma.d.ts +14 -0
- package/dist/build/transformers/fontFamilyToFigma.js +44 -0
- package/dist/build/transformers/fontWeightToNumber.d.ts +9 -0
- package/dist/build/transformers/fontWeightToNumber.js +50 -0
- package/dist/build/transformers/index.d.ts +25 -0
- package/dist/build/transformers/index.js +25 -0
- package/dist/build/transformers/jsonDeprecated.d.ts +8 -0
- package/dist/build/transformers/jsonDeprecated.js +14 -0
- package/dist/build/transformers/namePathToCamelCase.d.ts +8 -0
- package/dist/build/transformers/namePathToCamelCase.js +12 -0
- package/dist/build/transformers/namePathToDotNotation.d.ts +8 -0
- package/dist/build/transformers/namePathToDotNotation.js +31 -0
- package/dist/build/transformers/namePathToFigma.d.ts +9 -0
- package/dist/build/transformers/namePathToFigma.js +21 -0
- package/dist/build/transformers/namePathToKebabCase.d.ts +8 -0
- package/dist/build/transformers/namePathToKebabCase.js +16 -0
- package/dist/build/transformers/namePathToPascalCase.d.ts +8 -0
- package/dist/build/transformers/namePathToPascalCase.js +12 -0
- package/dist/build/transformers/namePathToSlashNotation.d.ts +8 -0
- package/dist/build/transformers/namePathToSlashNotation.js +16 -0
- package/dist/build/transformers/shadowToCss.d.ts +8 -0
- package/dist/build/transformers/shadowToCss.js +34 -0
- package/dist/build/transformers/typographyToCss.d.ts +8 -0
- package/dist/build/transformers/typographyToCss.js +27 -0
- package/dist/build/transformers/utilities/alpha.d.ts +9 -0
- package/dist/build/transformers/utilities/alpha.js +16 -0
- package/dist/build/transformers/utilities/checkRequiredTokenProperties.d.ts +7 -0
- package/dist/build/transformers/utilities/checkRequiredTokenProperties.js +13 -0
- package/dist/build/transformers/utilities/getTokenValue.d.ts +2 -0
- package/dist/build/transformers/utilities/getTokenValue.js +16 -0
- package/dist/build/transformers/utilities/hasSpaceInString.d.ts +1 -0
- package/dist/build/transformers/utilities/hasSpaceInString.js +6 -0
- package/dist/build/transformers/utilities/hexToRgbaFloat.d.ts +2 -0
- package/dist/build/transformers/utilities/hexToRgbaFloat.js +29 -0
- package/dist/build/transformers/utilities/invalidTokenError.d.ts +7 -0
- package/dist/build/transformers/utilities/invalidTokenError.js +25 -0
- package/dist/build/transformers/utilities/isRgbaFloat.d.ts +7 -0
- package/dist/build/transformers/utilities/isRgbaFloat.js +20 -0
- package/dist/build/transformers/utilities/mix.d.ts +5 -0
- package/dist/build/transformers/utilities/mix.js +38 -0
- package/dist/build/transformers/utilities/rgbaFloatToHex.d.ts +6 -0
- package/dist/build/transformers/utilities/rgbaFloatToHex.js +11 -0
- package/dist/build/types/border.d.ts +5 -0
- package/dist/build/types/borderTokenValue.d.ts +10 -0
- package/dist/build/types/colorHex.d.ts +4 -0
- package/dist/build/types/platformInitializer.d.ts +11 -0
- package/dist/build/types/shadow.d.ts +5 -0
- package/dist/build/types/shadowTokenValue.d.ts +14 -0
- package/dist/build/types/sizeEm.d.ts +4 -0
- package/dist/build/types/sizePx.d.ts +4 -0
- package/dist/build/types/sizeRem.d.ts +4 -0
- package/dist/build/types/styleDictionaryConfigGenerator.d.ts +16 -0
- package/dist/build/types/tokenBuildInput.d.ts +10 -0
- package/dist/build/types/typographyTokenValue.d.ts +12 -0
- package/dist/build/types/w3cTransformedToken.d.ts +8 -0
- package/dist/build/utilities/copyFromDir.d.ts +8 -0
- package/dist/build/utilities/copyFromDir.js +31 -0
- package/dist/build/utilities/filterStringArray.d.ts +1 -0
- package/dist/build/utilities/filterStringArray.js +13 -0
- package/dist/build/utilities/getFlag.d.ts +8 -0
- package/dist/build/utilities/getFlag.js +12 -0
- package/dist/build/utilities/index.d.ts +9 -0
- package/dist/build/utilities/index.js +9 -0
- package/dist/build/utilities/joinFriendly.d.ts +1 -0
- package/dist/build/utilities/joinFriendly.js +1 -0
- package/dist/build/utilities/lowerCaseFirstCharacter.d.ts +8 -0
- package/dist/build/utilities/lowerCaseFirstCharacter.js +10 -0
- package/dist/build/utilities/schemaErrorMessage.d.ts +1 -0
- package/dist/build/utilities/schemaErrorMessage.js +1 -0
- package/dist/build/utilities/toCamelCase.d.ts +1 -0
- package/dist/build/utilities/toCamelCase.js +16 -0
- package/dist/build/utilities/toPascalCase.d.ts +1 -0
- package/dist/build/utilities/toPascalCase.js +13 -0
- package/dist/build/utilities/treeWalker.d.ts +8 -0
- package/dist/build/utilities/treeWalker.js +23 -0
- package/dist/build/utilities/upperCaseFirstCharacter.d.ts +8 -0
- package/dist/build/utilities/upperCaseFirstCharacter.js +10 -0
- package/dist/css/base/motion/motion.css +17 -0
- package/dist/css/functional/motion/motion.css +4 -3
- package/dist/css/functional/themes/dark-colorblind.css +58 -38
- package/dist/css/functional/themes/dark-dimmed.css +44 -24
- package/dist/css/functional/themes/dark-high-contrast.css +42 -22
- package/dist/css/functional/themes/dark-tritanopia.css +44 -24
- package/dist/css/functional/themes/dark.css +42 -22
- package/dist/css/functional/themes/light-colorblind.css +60 -40
- package/dist/css/functional/themes/light-high-contrast.css +44 -24
- package/dist/css/functional/themes/light-tritanopia.css +42 -22
- package/dist/css/functional/themes/light.css +42 -22
- package/dist/css/functional/typography/typography.css +43 -43
- package/dist/css/primitives.css +64 -46
- package/dist/docs/base/motion/motion.json +205 -0
- package/dist/docs/functional/motion/motion.json +18 -3
- package/dist/docs/functional/themes/dark-colorblind.json +350 -1114
- package/dist/docs/functional/themes/dark-dimmed.json +364 -1152
- package/dist/docs/functional/themes/dark-high-contrast.json +312 -922
- package/dist/docs/functional/themes/dark-tritanopia.json +344 -1138
- package/dist/docs/functional/themes/dark.json +346 -1206
- package/dist/docs/functional/themes/light-colorblind.json +366 -1140
- package/dist/docs/functional/themes/light-high-contrast.json +335 -949
- package/dist/docs/functional/themes/light-tritanopia.json +311 -1135
- package/dist/docs/functional/themes/light.json +336 -1202
- package/dist/fallbacks/base/motion/motion.json +17 -0
- package/dist/fallbacks/functional/motion/motion.json +1 -0
- package/dist/figma/dimension/dimension.json +518 -518
- package/dist/figma/figma.json +15 -23
- package/dist/figma/scales/dark-dimmed.json +3536 -656
- package/dist/figma/scales/dark-high-constrast.json +3535 -655
- package/dist/figma/scales/dark.json +3371 -491
- package/dist/figma/scales/light-high-constrast.json +3533 -653
- package/dist/figma/scales/light.json +3370 -490
- package/dist/figma/shadows/dark-colorblind.json +285 -285
- package/dist/figma/shadows/dark-dimmed.json +285 -285
- package/dist/figma/shadows/dark-high-contrast.json +285 -285
- package/dist/figma/shadows/dark-tritanopia.json +285 -285
- package/dist/figma/shadows/dark.json +285 -285
- package/dist/figma/shadows/light-colorblind.json +254 -254
- package/dist/figma/shadows/light-high-contrast.json +254 -254
- package/dist/figma/shadows/light-tritanopia.json +254 -254
- package/dist/figma/shadows/light.json +254 -254
- package/dist/figma/themes/dark-colorblind.json +5197 -5068
- package/dist/figma/themes/dark-dimmed.json +5526 -5351
- package/dist/figma/themes/dark-high-contrast.json +4361 -4251
- package/dist/figma/themes/dark-tritanopia.json +5315 -5187
- package/dist/figma/themes/dark.json +5740 -5581
- package/dist/figma/themes/light-colorblind.json +5104 -4929
- package/dist/figma/themes/light-high-contrast.json +4462 -4319
- package/dist/figma/themes/light-tritanopia.json +5176 -5050
- package/dist/figma/themes/light.json +5657 -5500
- package/dist/figma/typography/typography.json +162 -162
- package/dist/internalCss/dark-colorblind.css +58 -38
- package/dist/internalCss/dark-dimmed.css +44 -24
- package/dist/internalCss/dark-high-contrast.css +42 -22
- package/dist/internalCss/dark-tritanopia.css +44 -24
- package/dist/internalCss/dark.css +42 -22
- package/dist/internalCss/light-colorblind.css +60 -40
- package/dist/internalCss/light-high-contrast.css +44 -24
- package/dist/internalCss/light-tritanopia.css +42 -22
- package/dist/internalCss/light.css +42 -22
- package/dist/styleLint/base/motion/motion.json +205 -0
- package/dist/styleLint/functional/motion/motion.json +18 -3
- package/dist/styleLint/functional/themes/dark-colorblind.json +350 -1114
- package/dist/styleLint/functional/themes/dark-dimmed.json +364 -1152
- package/dist/styleLint/functional/themes/dark-high-contrast.json +311 -921
- package/dist/styleLint/functional/themes/dark-tritanopia.json +344 -1138
- package/dist/styleLint/functional/themes/dark.json +346 -1206
- package/dist/styleLint/functional/themes/light-colorblind.json +366 -1140
- package/dist/styleLint/functional/themes/light-high-contrast.json +335 -949
- package/dist/styleLint/functional/themes/light-tritanopia.json +311 -1135
- package/dist/styleLint/functional/themes/light.json +336 -1202
- package/package.json +30 -36
- package/src/tokens/base/motion/easing.json5 +26 -0
- package/src/tokens/base/motion/timing.json5 +50 -0
- package/src/tokens/functional/color/dark/app-dark.json5 +236 -121
- package/src/tokens/functional/color/dark/data-vis-dark.json5 +40 -40
- package/src/tokens/functional/color/dark/display-dark.json5 +95 -95
- package/src/tokens/functional/color/dark/overrides/dark.dimmed.json5 +1 -9
- package/src/tokens/functional/color/dark/overrides/dark.high-contrast.json5 +40 -27
- package/src/tokens/functional/color/dark/overrides/dark.protanopia-deuteranopia.json5 +56 -30
- package/src/tokens/functional/color/dark/overrides/dark.tritanopia.json5 +37 -14
- package/src/tokens/functional/color/dark/patterns-dark.json +3963 -0
- package/src/tokens/functional/color/dark/patterns-dark.json5 +126 -277
- package/src/tokens/functional/color/dark/primitives-dark.json5 +78 -78
- package/src/tokens/functional/color/dark/syntax-dark.json5 +47 -47
- package/src/tokens/functional/color/light/app-light.json5 +179 -118
- package/src/tokens/functional/color/light/data-vis-light.json5 +40 -40
- package/src/tokens/functional/color/light/display-light.json5 +0 -95
- package/src/tokens/functional/color/light/overrides/light.high-contrast.json5 +25 -27
- package/src/tokens/functional/color/light/overrides/light.protanopia-deuteranopia.json5 +58 -33
- package/src/tokens/functional/color/light/overrides/light.tritanopia.json5 +59 -10
- package/src/tokens/functional/color/light/patterns-light.json5 +126 -276
- package/src/tokens/functional/color/light/primitives-light.json5 +0 -78
- package/src/tokens/functional/color/light/syntax-light.json5 +0 -47
- package/src/tokens/functional/motion/loading.json5 +1 -1
- package/src/tokens/functional/motion/patterns.json5 +9 -2
- package/src/tokens/functional/shadow/dark.json5 +0 -14
- 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,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,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,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,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-
|
|
3
|
-
--motion-spinner-duration-rotation:
|
|
4
|
-
--motion-
|
|
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-
|
|
9
|
-
--diffBlob-
|
|
10
|
-
--diffBlob-
|
|
11
|
-
--diffBlob-
|
|
12
|
-
--diffBlob-
|
|
13
|
-
--diffBlob-
|
|
14
|
-
--diffBlob-
|
|
15
|
-
--diffBlob-
|
|
16
|
-
--diffBlob-
|
|
17
|
-
--diffBlob-
|
|
18
|
-
--diffBlob-
|
|
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: #
|
|
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: #
|
|
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: #
|
|
271
|
-
--button-danger-iconColor-rest: #
|
|
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: #
|
|
306
|
+
--buttonCounter-danger-fgColor-rest: #f0883e;
|
|
297
307
|
--buttonCounter-danger-fgColor-hover: #ffffff;
|
|
298
|
-
--buttonCounter-danger-fgColor-disabled: #
|
|
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: #
|
|
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: #
|
|
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-
|
|
578
|
-
--diffBlob-
|
|
579
|
-
--diffBlob-
|
|
580
|
-
--diffBlob-
|
|
581
|
-
--diffBlob-
|
|
582
|
-
--diffBlob-
|
|
583
|
-
--diffBlob-
|
|
584
|
-
--diffBlob-
|
|
585
|
-
--diffBlob-
|
|
586
|
-
--diffBlob-
|
|
587
|
-
--diffBlob-
|
|
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: #
|
|
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: #
|
|
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: #
|
|
840
|
-
--button-danger-iconColor-rest: #
|
|
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: #
|
|
885
|
+
--buttonCounter-danger-fgColor-rest: #f0883e;
|
|
866
886
|
--buttonCounter-danger-fgColor-hover: #ffffff;
|
|
867
|
-
--buttonCounter-danger-fgColor-disabled: #
|
|
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: #
|
|
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: #
|
|
1058
|
+
--bgColor-open-muted: #db6d2833;
|
|
1039
1059
|
--bgColor-open-emphasis: #bd561d;
|
|
1040
1060
|
--bgColor-attention-muted: #bb800926;
|
|
1041
1061
|
--bgColor-attention-emphasis: #9e6a03;
|