@primer/primitives 9.1.2 → 10.0.0-rc.1d2317e6
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/dist/build/PrimerStyleDictionary.d.ts +1 -2
- package/dist/build/PrimerStyleDictionary.js +52 -64
- package/dist/build/filters/index.d.ts +14 -13
- package/dist/build/filters/index.js +14 -29
- package/dist/build/filters/isBorder.d.ts +3 -3
- package/dist/build/filters/isBorder.js +2 -6
- package/dist/build/filters/isColor.d.ts +3 -3
- package/dist/build/filters/isColor.js +8 -7
- package/dist/build/filters/isColorWithAlpha.d.ts +3 -3
- package/dist/build/filters/isColorWithAlpha.js +4 -8
- package/dist/build/filters/isColorWithMix.d.ts +3 -3
- package/dist/build/filters/isColorWithMix.js +4 -8
- package/dist/build/filters/isCubicBezier.d.ts +7 -0
- package/dist/build/filters/isCubicBezier.js +10 -0
- package/dist/build/filters/isDeprecated.d.ts +3 -3
- package/dist/build/filters/isDeprecated.js +2 -6
- package/dist/build/filters/isDimension.d.ts +3 -3
- package/dist/build/filters/isDimension.js +2 -6
- package/dist/build/filters/isDuration.d.ts +3 -3
- package/dist/build/filters/isDuration.js +2 -6
- package/dist/build/filters/isFontFamily.d.ts +3 -3
- package/dist/build/filters/isFontFamily.js +2 -6
- package/dist/build/filters/isFontWeight.d.ts +3 -3
- package/dist/build/filters/isFontWeight.js +2 -6
- package/dist/build/filters/isFromFile.d.ts +3 -3
- package/dist/build/filters/isFromFile.js +2 -6
- package/dist/build/filters/isNumber.d.ts +3 -3
- package/dist/build/filters/isNumber.js +4 -6
- package/dist/build/filters/isShadow.d.ts +3 -3
- package/dist/build/filters/isShadow.js +2 -6
- package/dist/build/filters/isSource.d.ts +3 -3
- package/dist/build/filters/isSource.js +2 -6
- package/dist/build/filters/isTypography.d.ts +3 -3
- package/dist/build/filters/isTypography.js +2 -6
- package/dist/build/formats/cssAdvanced.d.ts +2 -2
- package/dist/build/formats/cssAdvanced.js +22 -20
- package/dist/build/formats/cssCustomMedia.d.ts +2 -2
- package/dist/build/formats/cssCustomMedia.js +16 -15
- package/dist/build/formats/index.d.ts +9 -9
- package/dist/build/formats/index.js +9 -21
- package/dist/build/formats/javascriptCommonJs.d.ts +2 -2
- package/dist/build/formats/javascriptCommonJs.js +17 -16
- package/dist/build/formats/javascriptEsm.d.ts +2 -2
- package/dist/build/formats/javascriptEsm.js +17 -16
- package/dist/build/formats/jsonFigma.d.ts +2 -2
- package/dist/build/formats/jsonFigma.js +27 -22
- package/dist/build/formats/jsonNestedPrefixed.d.ts +3 -3
- package/dist/build/formats/jsonNestedPrefixed.js +17 -15
- package/dist/build/formats/jsonOneDimensional.d.ts +3 -3
- package/dist/build/formats/jsonOneDimensional.js +24 -16
- package/dist/build/formats/jsonPostCssFallback.d.ts +3 -3
- package/dist/build/formats/jsonPostCssFallback.js +5 -12
- package/dist/build/formats/typescriptExportDefinition.d.ts +2 -2
- package/dist/build/formats/typescriptExportDefinition.js +48 -44
- 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 +2 -2
- package/dist/build/formats/utilities/jsonToFlat.js +1 -5
- package/dist/build/formats/utilities/jsonToNestedValue.d.ts +2 -2
- package/dist/build/formats/utilities/jsonToNestedValue.js +4 -6
- package/dist/build/formats/utilities/prefixTokens.d.ts +2 -2
- package/dist/build/formats/utilities/prefixTokens.js +1 -5
- package/dist/build/parsers/index.d.ts +1 -1
- package/dist/build/parsers/index.js +1 -5
- package/dist/build/parsers/w3cJsonParser.d.ts +2 -2
- package/dist/build/parsers/w3cJsonParser.js +5 -7
- package/dist/build/platforms/css.d.ts +1 -1
- package/dist/build/platforms/css.js +20 -11
- package/dist/build/platforms/deprecatedJson.d.ts +1 -1
- package/dist/build/platforms/deprecatedJson.js +3 -7
- package/dist/build/platforms/docJson.d.ts +1 -1
- package/dist/build/platforms/docJson.js +8 -7
- package/dist/build/platforms/fallbacks.d.ts +1 -1
- package/dist/build/platforms/fallbacks.js +3 -7
- package/dist/build/platforms/figma.d.ts +1 -1
- package/dist/build/platforms/figma.js +21 -14
- package/dist/build/platforms/index.d.ts +10 -10
- package/dist/build/platforms/index.js +10 -23
- package/dist/build/platforms/javascript.d.ts +1 -1
- package/dist/build/platforms/javascript.js +3 -7
- package/dist/build/platforms/json.d.ts +1 -1
- package/dist/build/platforms/json.js +3 -7
- package/dist/build/platforms/styleLint.d.ts +1 -1
- package/dist/build/platforms/styleLint.js +3 -7
- package/dist/build/platforms/typeDefinitions.d.ts +1 -1
- package/dist/build/platforms/typeDefinitions.js +6 -10
- package/dist/build/platforms/typescript.d.ts +1 -1
- package/dist/build/platforms/typescript.js +3 -7
- package/dist/build/schemas/alphaValue.js +4 -7
- package/dist/build/schemas/baseToken.d.ts +2 -2
- package/dist/build/schemas/baseToken.js +4 -7
- package/dist/build/schemas/borderToken.d.ts +5 -5
- package/dist/build/schemas/borderToken.js +13 -16
- package/dist/build/schemas/collections.js +8 -14
- package/dist/build/schemas/colorHexValue.js +4 -7
- package/dist/build/schemas/colorToken.d.ts +20 -15
- package/dist/build/schemas/colorToken.js +24 -24
- package/dist/build/schemas/cubicBezierToken.d.ts +18 -0
- package/dist/build/schemas/cubicBezierToken.js +8 -0
- package/dist/build/schemas/designToken.js +30 -31
- package/dist/build/schemas/dimensionToken.d.ts +5 -5
- package/dist/build/schemas/dimensionToken.js +14 -17
- package/dist/build/schemas/dimensionValue.js +7 -10
- package/dist/build/schemas/durationToken.d.ts +5 -5
- package/dist/build/schemas/durationToken.js +8 -11
- package/dist/build/schemas/durationValue.js +4 -7
- package/dist/build/schemas/fontFamilyToken.d.ts +5 -5
- package/dist/build/schemas/fontFamilyToken.js +13 -16
- package/dist/build/schemas/fontWeightToken.d.ts +5 -5
- package/dist/build/schemas/fontWeightToken.js +14 -17
- package/dist/build/schemas/fontWeightValue.js +4 -7
- package/dist/build/schemas/numberToken.d.ts +5 -5
- package/dist/build/schemas/numberToken.js +15 -18
- package/dist/build/schemas/referenceValue.js +4 -7
- package/dist/build/schemas/scopes.js +5 -10
- package/dist/build/schemas/shadowToken.d.ts +5 -5
- package/dist/build/schemas/shadowToken.js +23 -26
- package/dist/build/schemas/stringToken.d.ts +5 -5
- package/dist/build/schemas/stringToken.js +7 -10
- package/dist/build/schemas/tokenName.js +4 -7
- package/dist/build/schemas/tokenType.d.ts +2 -2
- package/dist/build/schemas/tokenType.js +2 -6
- package/dist/build/schemas/typographyToken.d.ts +5 -5
- package/dist/build/schemas/typographyToken.js +14 -17
- package/dist/build/schemas/validTokenType.d.ts +1 -1
- package/dist/build/schemas/validTokenType.js +10 -13
- package/dist/build/schemas/viewportRangeToken.d.ts +5 -5
- package/dist/build/schemas/viewportRangeToken.js +7 -10
- package/dist/build/transformers/borderToCss.d.ts +3 -3
- package/dist/build/transformers/borderToCss.js +16 -16
- package/dist/build/transformers/colorToHex.d.ts +2 -2
- package/dist/build/transformers/colorToHex.js +11 -13
- package/dist/build/transformers/colorToHexMix.d.ts +2 -2
- package/dist/build/transformers/colorToHexMix.js +10 -15
- package/dist/build/transformers/colorToRgbAlpha.d.ts +2 -2
- package/dist/build/transformers/colorToRgbAlpha.js +10 -12
- package/dist/build/transformers/colorToRgbaFloat.d.ts +2 -2
- package/dist/build/transformers/colorToRgbaFloat.js +24 -28
- package/dist/build/transformers/cubicBezierToCss.d.ts +8 -0
- package/dist/build/transformers/cubicBezierToCss.js +23 -0
- package/dist/build/transformers/dimensionToPixelUnitless.d.ts +2 -2
- package/dist/build/transformers/dimensionToPixelUnitless.js +13 -14
- package/dist/build/transformers/dimensionToRem.d.ts +2 -2
- package/dist/build/transformers/dimensionToRem.js +12 -13
- package/dist/build/transformers/dimensionToRemPxArray.d.ts +2 -2
- package/dist/build/transformers/dimensionToRemPxArray.js +11 -12
- package/dist/build/transformers/durationToCss.d.ts +2 -2
- package/dist/build/transformers/durationToCss.js +9 -10
- package/dist/build/transformers/figmaAttributes.d.ts +2 -2
- package/dist/build/transformers/figmaAttributes.js +3 -5
- package/dist/build/transformers/floatToPixel.d.ts +4 -4
- package/dist/build/transformers/floatToPixel.js +12 -14
- package/dist/build/transformers/fontFamilyToCss.d.ts +2 -2
- package/dist/build/transformers/fontFamilyToCss.js +10 -13
- package/dist/build/transformers/fontFamilyToFigma.d.ts +3 -3
- package/dist/build/transformers/fontFamilyToFigma.js +15 -17
- package/dist/build/transformers/fontWeightToNumber.d.ts +2 -2
- package/dist/build/transformers/fontWeightToNumber.js +8 -11
- package/dist/build/transformers/index.d.ts +25 -24
- package/dist/build/transformers/index.js +25 -51
- package/dist/build/transformers/jsonDeprecated.d.ts +2 -2
- package/dist/build/transformers/jsonDeprecated.js +6 -8
- package/dist/build/transformers/namePathToCamelCase.d.ts +2 -2
- package/dist/build/transformers/namePathToCamelCase.js +5 -7
- package/dist/build/transformers/namePathToDotNotation.d.ts +2 -2
- package/dist/build/transformers/namePathToDotNotation.js +6 -8
- package/dist/build/transformers/namePathToFigma.d.ts +3 -3
- package/dist/build/transformers/namePathToFigma.js +5 -8
- package/dist/build/transformers/namePathToKebabCase.d.ts +2 -2
- package/dist/build/transformers/namePathToKebabCase.js +4 -6
- package/dist/build/transformers/namePathToPascalCase.d.ts +2 -2
- package/dist/build/transformers/namePathToPascalCase.js +5 -7
- package/dist/build/transformers/namePathToSlashNotation.d.ts +2 -2
- package/dist/build/transformers/namePathToSlashNotation.js +4 -6
- package/dist/build/transformers/shadowToCss.d.ts +2 -2
- package/dist/build/transformers/shadowToCss.js +14 -15
- package/dist/build/transformers/typographyToCss.d.ts +2 -2
- package/dist/build/transformers/typographyToCss.js +13 -15
- package/dist/build/transformers/utilities/alpha.d.ts +1 -1
- package/dist/build/transformers/utilities/alpha.js +4 -8
- package/dist/build/transformers/utilities/checkRequiredTokenProperties.js +1 -5
- package/dist/build/transformers/utilities/getTokenValue.d.ts +2 -2
- package/dist/build/transformers/utilities/getTokenValue.js +10 -12
- package/dist/build/transformers/utilities/hasSpaceInString.js +1 -5
- package/dist/build/transformers/utilities/hexToRgbaFloat.d.ts +1 -1
- package/dist/build/transformers/utilities/hexToRgbaFloat.js +1 -5
- package/dist/build/transformers/utilities/invalidTokenError.d.ts +1 -1
- package/dist/build/transformers/utilities/invalidTokenError.js +11 -10
- package/dist/build/transformers/utilities/isRgbaFloat.js +1 -5
- package/dist/build/transformers/utilities/mix.js +5 -7
- package/dist/build/transformers/utilities/rgbaFloatToHex.js +1 -5
- 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 +15 -0
- package/dist/build/types/TokenBuildInput.d.ts +8 -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 +2 -2
- package/dist/build/utilities/copyFromDir.js +7 -10
- package/dist/build/utilities/filterStringArray.js +1 -5
- package/dist/build/utilities/getFlag.js +1 -5
- package/dist/build/utilities/index.d.ts +9 -3
- package/dist/build/utilities/index.js +9 -9
- package/dist/build/utilities/joinFriendly.js +1 -5
- package/dist/build/utilities/schemaErrorMessage.js +1 -5
- package/dist/build/utilities/toCamelCase.js +5 -9
- package/dist/build/utilities/toPascalCase.js +5 -9
- package/dist/build/utilities/treeWalker.js +2 -6
- package/dist/build/utilities/upperCaseFirstCharacter.js +1 -5
- package/dist/css/functional/themes/dark-colorblind.css +56 -38
- package/dist/css/functional/themes/dark-dimmed.css +42 -24
- package/dist/css/functional/themes/dark-high-contrast.css +60 -42
- package/dist/css/functional/themes/dark-tritanopia.css +42 -24
- package/dist/css/functional/themes/dark.css +40 -22
- package/dist/css/functional/themes/light-colorblind.css +58 -40
- package/dist/css/functional/themes/light-high-contrast.css +56 -38
- package/dist/css/functional/themes/light-tritanopia.css +40 -22
- package/dist/css/functional/themes/light.css +40 -22
- package/dist/docs/base/size/size.json +76 -76
- package/dist/docs/base/typography/typography.json +16 -16
- package/dist/docs/functional/motion/motion.json +18 -18
- package/dist/docs/functional/size/border.json +56 -56
- package/dist/docs/functional/size/breakpoints.json +24 -24
- package/dist/docs/functional/size/size-coarse.json +12 -12
- package/dist/docs/functional/size/size-fine.json +12 -12
- package/dist/docs/functional/size/size.json +264 -264
- package/dist/docs/functional/size/viewport.json +24 -24
- package/dist/docs/functional/themes/dark-colorblind.json +2761 -3384
- package/dist/docs/functional/themes/dark-dimmed.json +2809 -3028
- package/dist/docs/functional/themes/dark-high-contrast.json +2806 -5113
- package/dist/docs/functional/themes/dark-tritanopia.json +2800 -3203
- package/dist/docs/functional/themes/dark.json +2779 -2520
- package/dist/docs/functional/themes/light-colorblind.json +2597 -3172
- package/dist/docs/functional/themes/light-high-contrast.json +2642 -4627
- package/dist/docs/functional/themes/light-tritanopia.json +2517 -2960
- package/dist/docs/functional/themes/light.json +2561 -2312
- package/dist/docs/functional/typography/typography.json +206 -206
- package/dist/figma/dimension/dimension.json +489 -489
- package/dist/figma/figma.json +19 -11
- package/dist/figma/scales/dark-dimmed.json +2918 -38
- package/dist/figma/scales/dark-high-constrast.json +2918 -38
- package/dist/figma/scales/dark.json +2915 -35
- package/dist/figma/scales/light-high-constrast.json +2920 -40
- package/dist/figma/scales/light.json +2920 -40
- package/dist/figma/shadows/dark-colorblind.json +280 -280
- package/dist/figma/shadows/dark-dimmed.json +280 -280
- package/dist/figma/shadows/dark-high-contrast.json +280 -280
- package/dist/figma/shadows/dark-tritanopia.json +280 -280
- package/dist/figma/shadows/dark.json +280 -280
- package/dist/figma/shadows/light-colorblind.json +281 -281
- package/dist/figma/shadows/light-high-contrast.json +281 -281
- package/dist/figma/shadows/light-tritanopia.json +281 -281
- package/dist/figma/shadows/light.json +281 -281
- package/dist/figma/themes/dark-colorblind.json +5054 -5804
- package/dist/figma/themes/dark-dimmed.json +5284 -5610
- package/dist/figma/themes/dark-high-contrast.json +4249 -6624
- package/dist/figma/themes/dark-tritanopia.json +5223 -5763
- package/dist/figma/themes/dark.json +5561 -5421
- package/dist/figma/themes/light-colorblind.json +4986 -5639
- package/dist/figma/themes/light-high-contrast.json +4166 -6213
- package/dist/figma/themes/light-tritanopia.json +5082 -5600
- package/dist/figma/themes/light.json +5418 -5277
- package/dist/figma/typography/typography.json +112 -156
- package/dist/internalCss/dark-colorblind.css +56 -38
- package/dist/internalCss/dark-dimmed.css +42 -24
- package/dist/internalCss/dark-high-contrast.css +60 -42
- package/dist/internalCss/dark-tritanopia.css +42 -24
- package/dist/internalCss/dark.css +40 -22
- package/dist/internalCss/light-colorblind.css +58 -40
- package/dist/internalCss/light-high-contrast.css +56 -38
- package/dist/internalCss/light-tritanopia.css +40 -22
- package/dist/internalCss/light.css +40 -22
- package/dist/styleLint/base/size/size.json +38 -38
- package/dist/styleLint/base/typography/typography.json +8 -8
- package/dist/styleLint/functional/motion/motion.json +12 -12
- package/dist/styleLint/functional/size/border.json +30 -30
- package/dist/styleLint/functional/size/breakpoints.json +12 -12
- package/dist/styleLint/functional/size/size-coarse.json +6 -6
- package/dist/styleLint/functional/size/size-fine.json +6 -6
- package/dist/styleLint/functional/size/size.json +132 -132
- package/dist/styleLint/functional/size/viewport.json +12 -12
- package/dist/styleLint/functional/themes/dark-colorblind.json +1642 -2265
- package/dist/styleLint/functional/themes/dark-dimmed.json +1726 -1945
- package/dist/styleLint/functional/themes/dark-high-contrast.json +1610 -3917
- package/dist/styleLint/functional/themes/dark-tritanopia.json +1673 -2076
- package/dist/styleLint/functional/themes/dark.json +1663 -1404
- package/dist/styleLint/functional/themes/light-colorblind.json +1418 -1993
- package/dist/styleLint/functional/themes/light-high-contrast.json +1504 -3489
- package/dist/styleLint/functional/themes/light-tritanopia.json +1397 -1840
- package/dist/styleLint/functional/themes/light.json +1445 -1196
- package/dist/styleLint/functional/typography/typography.json +114 -114
- package/package.json +16 -13
- package/src/tokens/functional/color/dark/app-dark.json5 +203 -88
- package/src/tokens/functional/color/dark/data-vis-dark.json5 +20 -20
- package/src/tokens/functional/color/dark/display-dark.json5 +95 -95
- package/src/tokens/functional/color/dark/overrides/dark.dimmed.json5 +0 -8
- package/src/tokens/functional/color/dark/overrides/dark.high-contrast.json5 +43 -30
- package/src/tokens/functional/color/dark/overrides/dark.protanopia-deuteranopia.json5 +62 -30
- package/src/tokens/functional/color/dark/overrides/dark.tritanopia.json5 +53 -12
- package/src/tokens/functional/color/dark/patterns-dark.json5 +4 -4
- package/src/tokens/functional/color/dark/primitives-dark.json5 +4 -4
- package/src/tokens/functional/color/light/app-light.json5 +195 -85
- package/src/tokens/functional/color/light/data-vis-light.json5 +20 -20
- package/src/tokens/functional/color/light/overrides/light.high-contrast.json5 +25 -25
- package/src/tokens/functional/color/light/overrides/light.protanopia-deuteranopia.json5 +65 -34
- package/src/tokens/functional/color/light/overrides/light.tritanopia.json5 +66 -11
- package/src/tokens/functional/color/light/primitives-light.json5 +2 -2
|
@@ -1,26 +1,27 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.invalidTokenValuePropertyError = exports.invalidTokenValueError = void 0;
|
|
4
|
-
const namePathToDotNotation_1 = require("../namePathToDotNotation");
|
|
1
|
+
import { namePathToDotNotation } from '../namePathToDotNotation.js';
|
|
5
2
|
const composeValueErrorMessage = (token) => {
|
|
3
|
+
var _a, _b;
|
|
4
|
+
const originalValue = (_a = token.original.$value) !== null && _a !== void 0 ? _a : token.original.value;
|
|
5
|
+
const value = (_b = token.$value) !== null && _b !== void 0 ? _b : token.value;
|
|
6
6
|
// eslint-disable-next-line i18n-text/no-en
|
|
7
|
-
return `Invalid token "${
|
|
7
|
+
return `Invalid token "${namePathToDotNotation.transform(token, {}, {})}" in file "${token.filePath}". Transformed value: "${JSON.stringify(value)}". ${originalValue ? `Original value: "${JSON.stringify(originalValue)}" ` : ''}This may be due to referencing a token that does not exists.`;
|
|
8
8
|
};
|
|
9
9
|
const composeValuePropertyErrorMessage = (token, property) => {
|
|
10
|
+
var _a, _b;
|
|
11
|
+
const originalValue = (_a = token.original.$value) !== null && _a !== void 0 ? _a : token.original.value;
|
|
12
|
+
const value = (_b = token.$value) !== null && _b !== void 0 ? _b : token.value;
|
|
10
13
|
// eslint-disable-next-line i18n-text/no-en
|
|
11
|
-
return `Invalid property "${property}" of token "${
|
|
14
|
+
return `Invalid property "${property}" of token "${namePathToDotNotation.transform(token, {}, {})}" in file "${token.filePath}". Transformed property value: "${value[property]}". ${originalValue ? `Original value: "${originalValue[property]}" ` : ''}This may be due to referencing a token that does not exists.`;
|
|
12
15
|
};
|
|
13
|
-
class invalidTokenValueError extends Error {
|
|
16
|
+
export class invalidTokenValueError extends Error {
|
|
14
17
|
constructor(token) {
|
|
15
18
|
super(composeValueErrorMessage(token));
|
|
16
19
|
Error.captureStackTrace(this, invalidTokenValueError);
|
|
17
20
|
}
|
|
18
21
|
}
|
|
19
|
-
|
|
20
|
-
class invalidTokenValuePropertyError extends Error {
|
|
22
|
+
export class invalidTokenValuePropertyError extends Error {
|
|
21
23
|
constructor(token, property) {
|
|
22
24
|
super(composeValuePropertyErrorMessage(token, property));
|
|
23
25
|
Error.captureStackTrace(this, invalidTokenValuePropertyError);
|
|
24
26
|
}
|
|
25
27
|
}
|
|
26
|
-
exports.invalidTokenValuePropertyError = invalidTokenValuePropertyError;
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isRgbaFloat = void 0;
|
|
4
1
|
// check if a value is an rgba float object
|
|
5
|
-
const isRgbaFloat = (value) => {
|
|
2
|
+
export const isRgbaFloat = (value) => {
|
|
6
3
|
if (value &&
|
|
7
4
|
typeof value === `object` &&
|
|
8
5
|
'r' in value &&
|
|
@@ -21,4 +18,3 @@ const isRgbaFloat = (value) => {
|
|
|
21
18
|
}
|
|
22
19
|
return false;
|
|
23
20
|
};
|
|
24
|
-
exports.isRgbaFloat = isRgbaFloat;
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const color2k_1 = require("color2k");
|
|
1
|
+
import { rgba, parseToRgba } from 'color2k';
|
|
4
2
|
/**
|
|
5
3
|
* Mixes two colors together. Taken from sass's implementation.
|
|
6
4
|
*/
|
|
@@ -8,8 +6,8 @@ function mix(color1, color2, weight) {
|
|
|
8
6
|
const normalize = (n, index) =>
|
|
9
7
|
// 3rd index is alpha channel which is already normalized
|
|
10
8
|
index === 3 ? n : n / 255;
|
|
11
|
-
const [r1, g1, b1, a1] =
|
|
12
|
-
const [r2, g2, b2, a2] =
|
|
9
|
+
const [r1, g1, b1, a1] = parseToRgba(color1).map(normalize);
|
|
10
|
+
const [r2, g2, b2, a2] = parseToRgba(color2).map(normalize);
|
|
13
11
|
// The formula is copied from the original Sass implementation:
|
|
14
12
|
// http://sass-lang.com/documentation/Sass/Script/Functions.html#mix-instance_method
|
|
15
13
|
const normalizedWeight = 2 * weight - 1;
|
|
@@ -23,9 +21,9 @@ function mix(color1, color2, weight) {
|
|
|
23
21
|
const g = Math.round((g1 * weight1 + g2 * weight2) * 255);
|
|
24
22
|
const b = Math.round((b1 * weight1 + b2 * weight2) * 255);
|
|
25
23
|
const a = a2 * weight + a1 * (1 - weight);
|
|
26
|
-
return
|
|
24
|
+
return rgba(r, g, b, a);
|
|
27
25
|
}
|
|
28
|
-
|
|
26
|
+
export default mix;
|
|
29
27
|
// Number* weight = ARGR("$weight", Number, 0, 100);
|
|
30
28
|
// double p = weight->value()/100;
|
|
31
29
|
// double w = 2*p - 1;
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.rgbaFloatToHex = void 0;
|
|
4
|
-
const rgbaFloatToHex = ({ r, g, b, a }, alpha = true) => {
|
|
1
|
+
export const rgbaFloatToHex = ({ r, g, b, a }, alpha = true) => {
|
|
5
2
|
const values = [r, g, b, alpha === true && a && a < 1 ? a : undefined].filter(item => item !== undefined);
|
|
6
3
|
if (r > 1 || r < 0 || g > 1 || g < 0 || b > 1 || b < 0) {
|
|
7
4
|
throw new Error('Invalid RgbaFloat value. R, G and B values must be between 0 and 1.');
|
|
@@ -12,4 +9,3 @@ const rgbaFloatToHex = ({ r, g, b, a }, alpha = true) => {
|
|
|
12
9
|
.padStart(2, '0'))
|
|
13
10
|
.join('')}`;
|
|
14
11
|
};
|
|
15
|
-
exports.rgbaFloatToHex = rgbaFloatToHex;
|
|
@@ -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,15 @@
|
|
|
1
|
+
import type {Config, PlatformConfig} from 'style-dictionary/types'
|
|
2
|
+
|
|
3
|
+
export type ConfigGeneratorOptions = {
|
|
4
|
+
buildPath: string
|
|
5
|
+
prefix?: string
|
|
6
|
+
themed?: boolean
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export type StyleDictionaryConfigGenerator = (
|
|
10
|
+
outputName: string,
|
|
11
|
+
source: string[],
|
|
12
|
+
include: string[],
|
|
13
|
+
options: ConfigGeneratorOptions,
|
|
14
|
+
platforms?: Record<string, PlatformConfig | undefined>,
|
|
15
|
+
) => Config
|
|
@@ -0,0 +1,8 @@
|
|
|
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
|
+
// 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
|
|
7
|
+
include: string[]
|
|
8
|
+
}
|
|
@@ -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
|
+
}
|
|
@@ -3,6 +3,6 @@
|
|
|
3
3
|
* @description Copies all files from source folder to destination
|
|
4
4
|
* @param source path
|
|
5
5
|
* @param destination path
|
|
6
|
-
* @returns promise
|
|
6
|
+
* @returns promise of file name array
|
|
7
7
|
*/
|
|
8
|
-
export declare const copyFromDir: (source: string, destination: string) => Promise<
|
|
8
|
+
export declare const copyFromDir: (source: string, destination: string) => Promise<string[]>;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
2
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
3
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -8,27 +7,25 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
7
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
8
|
});
|
|
10
9
|
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.copyFromDir = void 0;
|
|
13
10
|
/* istanbul ignore file */
|
|
14
|
-
|
|
11
|
+
import { copyFile, readdir, mkdir } from 'fs/promises';
|
|
15
12
|
/**
|
|
16
13
|
* copyFromDir
|
|
17
14
|
* @description Copies all files from source folder to destination
|
|
18
15
|
* @param source path
|
|
19
16
|
* @param destination path
|
|
20
|
-
* @returns promise
|
|
17
|
+
* @returns promise of file name array
|
|
21
18
|
*/
|
|
22
|
-
const copyFromDir = (source, destination) => __awaiter(void 0, void 0, void 0, function* () {
|
|
19
|
+
export const copyFromDir = (source, destination) => __awaiter(void 0, void 0, void 0, function* () {
|
|
23
20
|
// adjust trailing slash
|
|
24
21
|
const src = `${source.replace(/\/$/, '')}`;
|
|
25
22
|
const dest = `${destination.replace(/\/$/, '')}`;
|
|
26
23
|
// create dest if it does not exists
|
|
27
|
-
yield
|
|
24
|
+
yield mkdir(dest, { recursive: true });
|
|
28
25
|
// read files from source
|
|
29
|
-
const files = yield
|
|
26
|
+
const files = yield readdir(src);
|
|
30
27
|
for (const file of files) {
|
|
31
|
-
|
|
28
|
+
copyFile(`${src}/${file}`, `${dest}/${file}`);
|
|
32
29
|
}
|
|
30
|
+
return files;
|
|
33
31
|
});
|
|
34
|
-
exports.copyFromDir = copyFromDir;
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.filterStringArray = void 0;
|
|
4
|
-
const filterStringArray = (string) => {
|
|
1
|
+
export const filterStringArray = (string) => {
|
|
5
2
|
// match unsupported characters
|
|
6
3
|
const regex = /[^a-zA-Z0-9]+/g;
|
|
7
4
|
// replace any non-letter and non-number character and split into word array
|
|
@@ -14,4 +11,3 @@ const filterStringArray = (string) => {
|
|
|
14
11
|
.filter((part) => Boolean(part) && typeof part === 'string');
|
|
15
12
|
return stringArray;
|
|
16
13
|
};
|
|
17
|
-
exports.filterStringArray = filterStringArray;
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getFlag = void 0;
|
|
4
1
|
/**
|
|
5
2
|
* Get the value of a flag from the command line
|
|
6
3
|
* @param flag name of the flag to get
|
|
@@ -8,9 +5,8 @@ exports.getFlag = void 0;
|
|
|
8
5
|
* @returns null if flag is not found, otherwise the value of the flag or the flag name if the flag has no value
|
|
9
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
|
|
10
7
|
*/
|
|
11
|
-
const getFlag = (flag, prefix = '--') => {
|
|
8
|
+
export const getFlag = (flag, prefix = '--') => {
|
|
12
9
|
flag = `${prefix}${flag.replace(prefix, '')}`;
|
|
13
10
|
const index = process.argv.findIndex(arg => arg === flag || arg.startsWith(`${flag}=`));
|
|
14
11
|
return index === -1 ? null : process.argv[index].replace(`${flag}=`, '');
|
|
15
12
|
};
|
|
16
|
-
exports.getFlag = getFlag;
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
-
export { copyFromDir } from './copyFromDir';
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
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';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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';
|
|
@@ -1,5 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.joinFriendly = void 0;
|
|
4
|
-
const joinFriendly = (array, lastJoin = 'and') => array.length > 1 ? `${array.slice(0, -1).join(', ')} ${lastJoin} ${array.slice(-1)}` : `${array[0]}`;
|
|
5
|
-
exports.joinFriendly = joinFriendly;
|
|
1
|
+
export const joinFriendly = (array, lastJoin = 'and') => array.length > 1 ? `${array.slice(0, -1).join(', ')} ${lastJoin} ${array.slice(-1)}` : `${array[0]}`;
|
|
@@ -1,5 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.schemaErrorMessage = void 0;
|
|
4
|
-
const schemaErrorMessage = (title, description) => `**${title}**${description ? `\n${description}` : ``}`;
|
|
5
|
-
exports.schemaErrorMessage = schemaErrorMessage;
|
|
1
|
+
export const schemaErrorMessage = (title, description) => `**${title}**${description ? `\n${description}` : ``}`;
|
|
@@ -1,20 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const filterStringArray_1 = require("./filterStringArray");
|
|
5
|
-
const upperCaseFirstCharacter_1 = require("./upperCaseFirstCharacter");
|
|
6
|
-
const toCamelCase = (string) => {
|
|
1
|
+
import { filterStringArray } from './filterStringArray.js';
|
|
2
|
+
import { upperCaseFirstCharacter } from './upperCaseFirstCharacter.js';
|
|
3
|
+
export const toCamelCase = (string) => {
|
|
7
4
|
if (!Array.isArray(string)) {
|
|
8
5
|
string = [string];
|
|
9
6
|
}
|
|
10
|
-
return (
|
|
7
|
+
return (filterStringArray(string)
|
|
11
8
|
// ucFirst all but first part
|
|
12
9
|
.map((part, index) => {
|
|
13
10
|
if (index > 0) {
|
|
14
|
-
return
|
|
11
|
+
return upperCaseFirstCharacter(part);
|
|
15
12
|
}
|
|
16
13
|
return part;
|
|
17
14
|
})
|
|
18
15
|
.join(''));
|
|
19
16
|
};
|
|
20
|
-
exports.toCamelCase = toCamelCase;
|
|
@@ -1,17 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const filterStringArray_1 = require("./filterStringArray");
|
|
5
|
-
const upperCaseFirstCharacter_1 = require("./upperCaseFirstCharacter");
|
|
6
|
-
const toPascalCase = (string) => {
|
|
1
|
+
import { filterStringArray } from './filterStringArray.js';
|
|
2
|
+
import { upperCaseFirstCharacter } from './upperCaseFirstCharacter.js';
|
|
3
|
+
export const toPascalCase = (string) => {
|
|
7
4
|
if (!Array.isArray(string)) {
|
|
8
5
|
string = [string];
|
|
9
6
|
}
|
|
10
|
-
return (
|
|
7
|
+
return (filterStringArray(string)
|
|
11
8
|
// ucFirst all but first part
|
|
12
9
|
.map((part) => {
|
|
13
|
-
return
|
|
10
|
+
return upperCaseFirstCharacter(part);
|
|
14
11
|
})
|
|
15
12
|
.join(''));
|
|
16
13
|
};
|
|
17
|
-
exports.toPascalCase = toPascalCase;
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.treeWalker = void 0;
|
|
4
1
|
/**
|
|
5
2
|
* @description converts tokens to type and returns array with used type
|
|
6
3
|
* @param tree object
|
|
@@ -8,7 +5,7 @@ exports.treeWalker = void 0;
|
|
|
8
5
|
* @param validItem function to test if a node is a validItem to be transformed
|
|
9
6
|
* @returns object
|
|
10
7
|
*/
|
|
11
|
-
const treeWalker = (tree, callback, isValidItem) => {
|
|
8
|
+
export const treeWalker = (tree, callback, isValidItem) => {
|
|
12
9
|
// is a valid item -> pass through callback
|
|
13
10
|
if (isValidItem(tree)) {
|
|
14
11
|
return callback(tree);
|
|
@@ -20,8 +17,7 @@ const treeWalker = (tree, callback, isValidItem) => {
|
|
|
20
17
|
// is obj -> continue
|
|
21
18
|
const nextObj = {};
|
|
22
19
|
for (const [prop, value] of Object.entries(tree)) {
|
|
23
|
-
nextObj[prop] =
|
|
20
|
+
nextObj[prop] = treeWalker(value, callback, isValidItem);
|
|
24
21
|
}
|
|
25
22
|
return nextObj;
|
|
26
23
|
};
|
|
27
|
-
exports.treeWalker = treeWalker;
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.upperCaseFirstCharacter = void 0;
|
|
4
1
|
/**
|
|
5
2
|
* upperCaseFirstCharacter
|
|
6
3
|
* @scope custom implementation should only be used within `name path to ...` transformer
|
|
@@ -8,7 +5,6 @@ exports.upperCaseFirstCharacter = void 0;
|
|
|
8
5
|
* @param string
|
|
9
6
|
* @returns string
|
|
10
7
|
*/
|
|
11
|
-
const upperCaseFirstCharacter = ([firstLetter, ...restOfWord]) => {
|
|
8
|
+
export const upperCaseFirstCharacter = ([firstLetter, ...restOfWord]) => {
|
|
12
9
|
return firstLetter.toUpperCase() + restOfWord.join('');
|
|
13
10
|
};
|
|
14
|
-
exports.upperCaseFirstCharacter = upperCaseFirstCharacter;
|
|
@@ -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;
|
|
@@ -264,11 +273,11 @@
|
|
|
264
273
|
--button-outline-borderColor-hover: #3d444d;
|
|
265
274
|
--button-outline-borderColor-selected: #3d444d;
|
|
266
275
|
--button-outline-shadow-selected: 0px 0px 0px 0px #000000;
|
|
267
|
-
--button-danger-fgColor-rest: #
|
|
276
|
+
--button-danger-fgColor-rest: #f0883e;
|
|
268
277
|
--button-danger-fgColor-hover: #ffffff;
|
|
269
278
|
--button-danger-fgColor-active: #ffffff;
|
|
270
|
-
--button-danger-fgColor-disabled: #
|
|
271
|
-
--button-danger-iconColor-rest: #
|
|
279
|
+
--button-danger-fgColor-disabled: #f0883e80;
|
|
280
|
+
--button-danger-iconColor-rest: #f0883e;
|
|
272
281
|
--button-danger-iconColor-hover: #ffffff;
|
|
273
282
|
--button-danger-bgColor-rest: #212830;
|
|
274
283
|
--button-danger-bgColor-hover: #9b4215;
|
|
@@ -293,9 +302,9 @@
|
|
|
293
302
|
--buttonCounter-danger-bgColor-hover: #ffffff33;
|
|
294
303
|
--buttonCounter-danger-bgColor-disabled: #bd561d0d;
|
|
295
304
|
--buttonCounter-danger-bgColor-rest: #49020233;
|
|
296
|
-
--buttonCounter-danger-fgColor-rest: #
|
|
305
|
+
--buttonCounter-danger-fgColor-rest: #f0883e;
|
|
297
306
|
--buttonCounter-danger-fgColor-hover: #ffffff;
|
|
298
|
-
--buttonCounter-danger-fgColor-disabled: #
|
|
307
|
+
--buttonCounter-danger-fgColor-disabled: #f0883e80;
|
|
299
308
|
--reactionButton-selected-bgColor-rest: #388bfd33;
|
|
300
309
|
--reactionButton-selected-bgColor-hover: #3a8cfd5c;
|
|
301
310
|
--reactionButton-selected-fgColor-rest: #4493f8;
|
|
@@ -446,7 +455,7 @@
|
|
|
446
455
|
--fgColor-open: #f0883e;
|
|
447
456
|
--fgColor-attention: #d29922;
|
|
448
457
|
--fgColor-severe: #db6d28;
|
|
449
|
-
--fgColor-danger: #
|
|
458
|
+
--fgColor-danger: #f0883e;
|
|
450
459
|
--fgColor-closed: #9198a1;
|
|
451
460
|
--fgColor-done: #ab7df8;
|
|
452
461
|
--fgColor-upsell: #ab7df8;
|
|
@@ -466,7 +475,7 @@
|
|
|
466
475
|
--bgColor-accent-emphasis: #1f6feb;
|
|
467
476
|
--bgColor-success-muted: #388bfd26;
|
|
468
477
|
--bgColor-success-emphasis: #1f6feb;
|
|
469
|
-
--bgColor-open-muted: #
|
|
478
|
+
--bgColor-open-muted: #db6d2833;
|
|
470
479
|
--bgColor-open-emphasis: #bd561d;
|
|
471
480
|
--bgColor-attention-muted: #bb800926;
|
|
472
481
|
--bgColor-attention-emphasis: #9e6a03;
|
|
@@ -574,17 +583,26 @@
|
|
|
574
583
|
--topicTag-borderColor: #00000000;
|
|
575
584
|
--highlight-neutral-bgColor: #d2992266;
|
|
576
585
|
--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-
|
|
586
|
+
--diffBlob-additionLine-fgColor: #f0f6fc;
|
|
587
|
+
--diffBlob-additionLine-bgColor: #388bfd26;
|
|
588
|
+
--diffBlob-additionWord-fgColor: #f0f6fc;
|
|
589
|
+
--diffBlob-additionWord-bgColor: #388bfd66;
|
|
590
|
+
--diffBlob-additionNum-fgColor: #f0f6fc;
|
|
591
|
+
--diffBlob-additionNum-bgColor: #58a6ff4d;
|
|
592
|
+
--diffBlob-deletionLine-fgColor: #f0f6fc;
|
|
593
|
+
--diffBlob-deletionLine-bgColor: #db6d2826;
|
|
594
|
+
--diffBlob-deletionWord-fgColor: #f0f6fc;
|
|
595
|
+
--diffBlob-deletionWord-bgColor: #db6d2866;
|
|
596
|
+
--diffBlob-deletionNum-fgColor: #f0f6fc;
|
|
597
|
+
--diffBlob-deletionNum-bgColor: #db6d284d;
|
|
598
|
+
--diffBlob-hunkLine-fgColor: #9198a1;
|
|
599
|
+
--diffBlob-hunkLine-bgColor: #212830;
|
|
600
|
+
--diffBlob-hunkNum-fgColor-rest: #f0f6fc;
|
|
601
|
+
--diffBlob-hunkNum-fgColor-hover: #ffffff;
|
|
602
|
+
--diffBlob-hunkNum-bgColor-rest: #2f3742;
|
|
603
|
+
--diffBlob-hunkNum-bgColor-hover: #656c76;
|
|
604
|
+
--diffBlob-emptyNum-bgColor: #151b23;
|
|
605
|
+
--diffBlob-emptyLine-bgColor: #151b23;
|
|
588
606
|
--diffBlob-expander-iconColor: #9198a1;
|
|
589
607
|
--codeMirror-fgColor: #f0f6fc;
|
|
590
608
|
--codeMirror-bgColor: #0d1117;
|
|
@@ -755,7 +773,7 @@
|
|
|
755
773
|
--control-transparent-borderColor-rest: #00000000;
|
|
756
774
|
--control-transparent-borderColor-hover: #00000000;
|
|
757
775
|
--control-transparent-borderColor-active: #00000000;
|
|
758
|
-
--control-danger-fgColor-rest: #
|
|
776
|
+
--control-danger-fgColor-rest: #f0883e;
|
|
759
777
|
--control-danger-fgColor-hover: #f0883e;
|
|
760
778
|
--control-danger-bgColor-hover: #db6d281a;
|
|
761
779
|
--control-danger-bgColor-active: #db6d2866;
|
|
@@ -833,11 +851,11 @@
|
|
|
833
851
|
--button-outline-borderColor-hover: #3d444d;
|
|
834
852
|
--button-outline-borderColor-selected: #3d444d;
|
|
835
853
|
--button-outline-shadow-selected: 0px 0px 0px 0px #000000;
|
|
836
|
-
--button-danger-fgColor-rest: #
|
|
854
|
+
--button-danger-fgColor-rest: #f0883e;
|
|
837
855
|
--button-danger-fgColor-hover: #ffffff;
|
|
838
856
|
--button-danger-fgColor-active: #ffffff;
|
|
839
|
-
--button-danger-fgColor-disabled: #
|
|
840
|
-
--button-danger-iconColor-rest: #
|
|
857
|
+
--button-danger-fgColor-disabled: #f0883e80;
|
|
858
|
+
--button-danger-iconColor-rest: #f0883e;
|
|
841
859
|
--button-danger-iconColor-hover: #ffffff;
|
|
842
860
|
--button-danger-bgColor-rest: #212830;
|
|
843
861
|
--button-danger-bgColor-hover: #9b4215;
|
|
@@ -862,9 +880,9 @@
|
|
|
862
880
|
--buttonCounter-danger-bgColor-hover: #ffffff33;
|
|
863
881
|
--buttonCounter-danger-bgColor-disabled: #bd561d0d;
|
|
864
882
|
--buttonCounter-danger-bgColor-rest: #49020233;
|
|
865
|
-
--buttonCounter-danger-fgColor-rest: #
|
|
883
|
+
--buttonCounter-danger-fgColor-rest: #f0883e;
|
|
866
884
|
--buttonCounter-danger-fgColor-hover: #ffffff;
|
|
867
|
-
--buttonCounter-danger-fgColor-disabled: #
|
|
885
|
+
--buttonCounter-danger-fgColor-disabled: #f0883e80;
|
|
868
886
|
--reactionButton-selected-bgColor-rest: #388bfd33;
|
|
869
887
|
--reactionButton-selected-bgColor-hover: #3a8cfd5c;
|
|
870
888
|
--reactionButton-selected-fgColor-rest: #4493f8;
|
|
@@ -1015,7 +1033,7 @@
|
|
|
1015
1033
|
--fgColor-open: #f0883e;
|
|
1016
1034
|
--fgColor-attention: #d29922;
|
|
1017
1035
|
--fgColor-severe: #db6d28;
|
|
1018
|
-
--fgColor-danger: #
|
|
1036
|
+
--fgColor-danger: #f0883e;
|
|
1019
1037
|
--fgColor-closed: #9198a1;
|
|
1020
1038
|
--fgColor-done: #ab7df8;
|
|
1021
1039
|
--fgColor-upsell: #ab7df8;
|
|
@@ -1035,7 +1053,7 @@
|
|
|
1035
1053
|
--bgColor-accent-emphasis: #1f6feb;
|
|
1036
1054
|
--bgColor-success-muted: #388bfd26;
|
|
1037
1055
|
--bgColor-success-emphasis: #1f6feb;
|
|
1038
|
-
--bgColor-open-muted: #
|
|
1056
|
+
--bgColor-open-muted: #db6d2833;
|
|
1039
1057
|
--bgColor-open-emphasis: #bd561d;
|
|
1040
1058
|
--bgColor-attention-muted: #bb800926;
|
|
1041
1059
|
--bgColor-attention-emphasis: #9e6a03;
|