@primer/primitives 9.0.3 → 9.1.0-rc.c6c17c46
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 +9 -0
- package/dist/build/PrimerStyleDictionary.js +92 -0
- package/dist/build/filters/index.d.ts +13 -0
- package/dist/build/filters/index.js +29 -0
- package/{src/filters/isBorder.ts → dist/build/filters/isBorder.d.ts} +2 -5
- package/dist/build/filters/isBorder.js +12 -0
- package/{src/filters/isColor.ts → dist/build/filters/isColor.d.ts} +2 -5
- package/dist/build/filters/isColor.js +12 -0
- package/dist/build/filters/isColorWithAlpha.d.ts +7 -0
- package/dist/build/filters/isColorWithAlpha.js +13 -0
- package/dist/build/filters/isColorWithMix.d.ts +7 -0
- package/dist/build/filters/isColorWithMix.js +28 -0
- package/{src/filters/isDeprecated.ts → dist/build/filters/isDeprecated.d.ts} +2 -5
- package/dist/build/filters/isDeprecated.js +12 -0
- package/{src/filters/isDimension.ts → dist/build/filters/isDimension.d.ts} +2 -5
- package/dist/build/filters/isDimension.js +12 -0
- package/{src/filters/isDuration.ts → dist/build/filters/isDuration.d.ts} +2 -5
- package/dist/build/filters/isDuration.js +12 -0
- package/{src/filters/isFontFamily.ts → dist/build/filters/isFontFamily.d.ts} +2 -5
- package/dist/build/filters/isFontFamily.js +12 -0
- package/{src/filters/isFontWeight.ts → dist/build/filters/isFontWeight.d.ts} +2 -5
- package/dist/build/filters/isFontWeight.js +12 -0
- package/dist/build/filters/isFromFile.d.ts +8 -0
- package/dist/build/filters/isFromFile.js +14 -0
- package/{src/filters/isNumber.ts → dist/build/filters/isNumber.d.ts} +2 -3
- package/dist/build/filters/isNumber.js +10 -0
- package/{src/filters/isShadow.ts → dist/build/filters/isShadow.d.ts} +2 -5
- package/dist/build/filters/isShadow.js +12 -0
- package/{src/filters/isSource.ts → dist/build/filters/isSource.d.ts} +2 -5
- package/dist/build/filters/isSource.js +12 -0
- package/{src/filters/isTypography.ts → dist/build/filters/isTypography.d.ts} +2 -5
- package/dist/build/filters/isTypography.js +12 -0
- package/dist/build/formats/cssAdvanced.d.ts +2 -0
- package/dist/build/formats/cssAdvanced.js +85 -0
- package/dist/build/formats/cssCustomMedia.d.ts +7 -0
- package/dist/build/formats/cssCustomMedia.js +25 -0
- package/dist/build/formats/index.d.ts +9 -0
- package/dist/build/formats/index.js +21 -0
- package/dist/build/formats/javascriptCommonJs.d.ts +7 -0
- package/dist/build/formats/javascriptCommonJs.js +25 -0
- package/dist/build/formats/javascriptEsm.d.ts +7 -0
- package/dist/build/formats/javascriptEsm.js +25 -0
- package/dist/build/formats/jsonFigma.d.ts +7 -0
- package/dist/build/formats/jsonFigma.js +116 -0
- package/dist/build/formats/jsonNestedPrefixed.d.ts +8 -0
- package/dist/build/formats/jsonNestedPrefixed.js +28 -0
- package/dist/build/formats/jsonOneDimensional.d.ts +8 -0
- package/dist/build/formats/jsonOneDimensional.js +24 -0
- package/dist/build/formats/jsonPostCssFallback.d.ts +8 -0
- package/dist/build/formats/jsonPostCssFallback.js +21 -0
- package/dist/build/formats/typescriptExportDefinition.d.ts +7 -0
- package/dist/build/formats/typescriptExportDefinition.js +166 -0
- package/{src/formats/utilities/jsonToFlat.ts → dist/build/formats/utilities/jsonToFlat.d.ts} +4 -3
- package/dist/build/formats/utilities/jsonToFlat.js +12 -0
- package/dist/build/formats/utilities/jsonToNestedValue.d.ts +8 -0
- package/dist/build/formats/utilities/jsonToNestedValue.js +25 -0
- package/dist/build/formats/utilities/prefixTokens.d.ts +8 -0
- package/dist/build/formats/utilities/prefixTokens.js +17 -0
- package/dist/build/parsers/index.d.ts +1 -0
- package/dist/build/parsers/index.js +5 -0
- package/dist/build/parsers/w3cJsonParser.d.ts +6 -0
- package/dist/build/parsers/w3cJsonParser.js +27 -0
- package/dist/build/platforms/css.d.ts +2 -0
- package/dist/build/platforms/css.js +88 -0
- package/dist/build/platforms/deprecatedJson.d.ts +2 -0
- package/dist/build/platforms/deprecatedJson.js +17 -0
- package/dist/build/platforms/docJson.d.ts +2 -0
- package/dist/build/platforms/docJson.js +35 -0
- package/dist/build/platforms/fallbacks.d.ts +2 -0
- package/dist/build/platforms/fallbacks.js +35 -0
- package/dist/build/platforms/figma.d.ts +2 -0
- package/dist/build/platforms/figma.js +53 -0
- package/dist/build/platforms/index.d.ts +10 -0
- package/dist/build/platforms/index.js +23 -0
- package/dist/build/platforms/javascript.d.ts +2 -0
- package/dist/build/platforms/javascript.js +31 -0
- package/dist/build/platforms/json.d.ts +2 -0
- package/dist/build/platforms/json.js +33 -0
- package/dist/build/platforms/styleLint.d.ts +2 -0
- package/dist/build/platforms/styleLint.js +35 -0
- package/dist/build/platforms/typeDefinitions.d.ts +2 -0
- package/dist/build/platforms/typeDefinitions.js +31 -0
- package/dist/build/platforms/typescript.d.ts +2 -0
- package/dist/build/platforms/typescript.js +31 -0
- package/dist/build/schemas/alphaValue.d.ts +2 -0
- package/dist/build/schemas/alphaValue.js +8 -0
- package/dist/build/schemas/baseToken.d.ts +11 -0
- package/dist/build/schemas/baseToken.js +10 -0
- package/dist/build/schemas/borderToken.d.ts +51 -0
- package/dist/build/schemas/borderToken.js +20 -0
- package/dist/build/schemas/collections.d.ts +6 -0
- package/dist/build/schemas/collections.js +18 -0
- package/dist/build/schemas/colorHexValue.d.ts +2 -0
- package/dist/build/schemas/colorHexValue.js +12 -0
- package/dist/build/schemas/colorToken.d.ts +80 -0
- package/dist/build/schemas/colorToken.js +52 -0
- package/dist/build/schemas/designToken.d.ts +2 -0
- package/dist/build/schemas/designToken.js +37 -0
- package/dist/build/schemas/dimensionToken.d.ts +52 -0
- package/dist/build/schemas/dimensionToken.js +36 -0
- package/dist/build/schemas/dimensionValue.d.ts +2 -0
- package/dist/build/schemas/dimensionValue.js +12 -0
- package/dist/build/schemas/durationToken.d.ts +18 -0
- package/dist/build/schemas/durationToken.js +14 -0
- package/dist/build/schemas/durationValue.d.ts +2 -0
- package/dist/build/schemas/durationValue.js +8 -0
- package/dist/build/schemas/fontFamilyToken.d.ts +52 -0
- package/dist/build/schemas/fontFamilyToken.js +23 -0
- package/dist/build/schemas/fontWeightToken.d.ts +52 -0
- package/dist/build/schemas/fontWeightToken.js +24 -0
- package/dist/build/schemas/fontWeightValue.d.ts +2 -0
- package/dist/build/schemas/fontWeightValue.js +9 -0
- package/dist/build/schemas/numberToken.d.ts +71 -0
- package/dist/build/schemas/numberToken.js +30 -0
- package/dist/build/schemas/referenceValue.d.ts +2 -0
- package/dist/build/schemas/referenceValue.js +8 -0
- package/dist/build/schemas/scopes.d.ts +5 -0
- package/dist/build/schemas/scopes.js +34 -0
- package/dist/build/schemas/shadowToken.d.ts +157 -0
- package/dist/build/schemas/shadowToken.js +46 -0
- package/dist/build/schemas/stringToken.d.ts +18 -0
- package/dist/build/schemas/stringToken.js +13 -0
- package/dist/build/schemas/tokenName.d.ts +2 -0
- package/dist/build/schemas/tokenName.js +8 -0
- package/dist/build/schemas/tokenType.d.ts +3 -0
- package/dist/build/schemas/tokenType.js +6 -0
- package/dist/build/schemas/typographyToken.d.ts +59 -0
- package/dist/build/schemas/typographyToken.js +21 -0
- package/dist/build/schemas/validTokenType.d.ts +5 -0
- package/dist/build/schemas/validTokenType.js +34 -0
- package/dist/build/schemas/viewportRangeToken.d.ts +18 -0
- package/dist/build/schemas/viewportRangeToken.js +13 -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 +18 -0
- package/dist/build/transformers/colorToHexAlpha.d.ts +8 -0
- package/dist/build/transformers/colorToHexAlpha.js +25 -0
- package/dist/build/transformers/colorToHexMix.d.ts +8 -0
- package/dist/build/transformers/colorToHexMix.js +25 -0
- package/dist/build/transformers/colorToRgbAlpha.d.ts +8 -0
- package/dist/build/transformers/colorToRgbAlpha.js +22 -0
- package/dist/build/transformers/colorToRgbaFloat.d.ts +8 -0
- package/dist/build/transformers/colorToRgbaFloat.js +50 -0
- package/dist/build/transformers/dimensionToPixelUnitless.d.ts +8 -0
- package/dist/build/transformers/dimensionToPixelUnitless.js +50 -0
- package/dist/build/transformers/dimensionToRem.d.ts +8 -0
- package/dist/build/transformers/dimensionToRem.js +47 -0
- package/dist/build/transformers/dimensionToRemPxArray.d.ts +8 -0
- package/dist/build/transformers/dimensionToRemPxArray.js +47 -0
- package/dist/build/transformers/durationToCss.d.ts +8 -0
- package/dist/build/transformers/durationToCss.js +30 -0
- package/dist/build/transformers/figmaAttributes.d.ts +8 -0
- package/dist/build/transformers/figmaAttributes.js +57 -0
- package/dist/build/transformers/floatToPixel.d.ts +15 -0
- package/dist/build/transformers/floatToPixel.js +41 -0
- package/dist/build/transformers/fontFamilyToCss.d.ts +14 -0
- package/dist/build/transformers/fontFamilyToCss.js +40 -0
- package/dist/build/transformers/fontFamilyToFigma.d.ts +14 -0
- package/dist/build/transformers/fontFamilyToFigma.js +46 -0
- package/dist/build/transformers/fontWeightToNumber.d.ts +9 -0
- package/dist/build/transformers/fontWeightToNumber.js +53 -0
- package/dist/build/transformers/index.d.ts +24 -0
- package/dist/build/transformers/index.js +51 -0
- package/dist/build/transformers/jsonDeprecated.d.ts +8 -0
- package/dist/build/transformers/jsonDeprecated.js +16 -0
- package/{src/transformers/namePathToCamelCase.ts → dist/build/transformers/namePathToCamelCase.d.ts} +2 -8
- package/dist/build/transformers/namePathToCamelCase.js +14 -0
- package/dist/build/transformers/namePathToDotNotation.d.ts +8 -0
- package/dist/build/transformers/namePathToDotNotation.js +33 -0
- package/dist/build/transformers/namePathToFigma.d.ts +9 -0
- package/dist/build/transformers/namePathToFigma.js +24 -0
- package/dist/build/transformers/namePathToKebabCase.d.ts +8 -0
- package/dist/build/transformers/namePathToKebabCase.js +18 -0
- package/dist/build/transformers/namePathToPascalCase.d.ts +8 -0
- package/dist/build/transformers/namePathToPascalCase.js +14 -0
- package/dist/build/transformers/namePathToSlashNotation.d.ts +8 -0
- package/dist/build/transformers/namePathToSlashNotation.js +18 -0
- package/dist/build/transformers/shadowToCss.d.ts +8 -0
- package/dist/build/transformers/shadowToCss.js +35 -0
- package/dist/build/transformers/typographyToCss.d.ts +8 -0
- package/dist/build/transformers/typographyToCss.js +29 -0
- package/dist/build/transformers/utilities/alpha.d.ts +9 -0
- package/dist/build/transformers/utilities/alpha.js +20 -0
- package/dist/build/transformers/utilities/checkRequiredTokenProperties.d.ts +7 -0
- package/dist/build/transformers/utilities/checkRequiredTokenProperties.js +17 -0
- package/dist/build/transformers/utilities/getTokenValue.d.ts +2 -0
- package/dist/build/transformers/utilities/getTokenValue.js +18 -0
- package/dist/build/transformers/utilities/hasSpaceInString.d.ts +1 -0
- package/dist/build/transformers/utilities/hasSpaceInString.js +10 -0
- package/dist/build/transformers/utilities/hexToRgbaFloat.d.ts +2 -0
- package/dist/build/transformers/utilities/hexToRgbaFloat.js +33 -0
- package/dist/build/transformers/utilities/invalidTokenError.d.ts +7 -0
- package/dist/build/transformers/utilities/invalidTokenError.js +26 -0
- package/dist/build/transformers/utilities/isRgbaFloat.d.ts +7 -0
- package/dist/build/transformers/utilities/isRgbaFloat.js +24 -0
- package/dist/build/transformers/utilities/mix.d.ts +5 -0
- package/dist/build/transformers/utilities/mix.js +40 -0
- package/dist/build/transformers/utilities/rgbaFloatToHex.d.ts +6 -0
- package/dist/build/transformers/utilities/rgbaFloatToHex.js +15 -0
- package/dist/build/utilities/copyFromDir.d.ts +8 -0
- package/dist/build/utilities/copyFromDir.js +34 -0
- package/dist/build/utilities/filterStringArray.d.ts +1 -0
- package/dist/build/utilities/filterStringArray.js +17 -0
- package/{src/utilities/getFlag.ts → dist/build/utilities/getFlag.d.ts} +1 -5
- package/dist/build/utilities/getFlag.js +16 -0
- package/dist/build/utilities/index.d.ts +3 -0
- package/dist/build/utilities/index.js +9 -0
- package/dist/build/utilities/joinFriendly.d.ts +1 -0
- package/dist/build/utilities/joinFriendly.js +5 -0
- package/dist/build/utilities/schemaErrorMessage.d.ts +1 -0
- package/dist/build/utilities/schemaErrorMessage.js +5 -0
- package/dist/build/utilities/toCamelCase.d.ts +1 -0
- package/dist/build/utilities/toCamelCase.js +20 -0
- package/dist/build/utilities/toPascalCase.d.ts +1 -0
- package/dist/build/utilities/toPascalCase.js +17 -0
- package/dist/build/utilities/treeWalker.d.ts +8 -0
- package/dist/build/utilities/treeWalker.js +27 -0
- package/{src/utilities/upperCaseFirstCharacter.ts → dist/build/utilities/upperCaseFirstCharacter.d.ts} +1 -3
- package/dist/build/utilities/upperCaseFirstCharacter.js +14 -0
- package/package.json +4 -5
- package/src/PrimerStyleDictionary.ts +0 -232
- package/src/filters/index.ts +0 -13
- package/src/filters/isColorWithAlpha.ts +0 -11
- package/src/filters/isColorWithMix.ts +0 -33
- package/src/filters/isFromFile.ts +0 -12
- package/src/formats/cssAdvanced.ts +0 -99
- package/src/formats/cssCustomMedia.ts +0 -24
- package/src/formats/index.ts +0 -9
- package/src/formats/javascriptCommonJs.ts +0 -21
- package/src/formats/javascriptEsm.ts +0 -21
- package/src/formats/jsonFigma.ts +0 -134
- package/src/formats/jsonNestedPrefixed.ts +0 -23
- package/src/formats/jsonOneDimensional.ts +0 -18
- package/src/formats/jsonPostCssFallback.ts +0 -16
- package/src/formats/typescriptExportDefinition.ts +0 -170
- package/src/formats/utilities/jsonToNestedValue.ts +0 -20
- package/src/formats/utilities/prefixTokens.ts +0 -17
- package/src/parsers/index.ts +0 -1
- package/src/parsers/w3cJsonParser.ts +0 -25
- package/src/platforms/css.ts +0 -101
- package/src/platforms/deprecatedJson.ts +0 -16
- package/src/platforms/docJson.ts +0 -34
- package/src/platforms/fallbacks.ts +0 -34
- package/src/platforms/figma.ts +0 -58
- package/src/platforms/index.ts +0 -10
- package/src/platforms/javascript.ts +0 -30
- package/src/platforms/json.ts +0 -32
- package/src/platforms/styleLint.ts +0 -34
- package/src/platforms/typeDefinitions.ts +0 -30
- package/src/platforms/typescript.ts +0 -30
- package/src/schemas/alphaValue.ts +0 -12
- package/src/schemas/baseToken.ts +0 -8
- package/src/schemas/borderToken.ts +0 -19
- package/src/schemas/collections.ts +0 -49
- package/src/schemas/colorHexValue.ts +0 -18
- package/src/schemas/colorToken.ts +0 -50
- package/src/schemas/designToken.ts +0 -38
- package/src/schemas/dimensionToken.ts +0 -34
- package/src/schemas/dimensionValue.ts +0 -16
- package/src/schemas/durationToken.ts +0 -12
- package/src/schemas/durationValue.ts +0 -9
- package/src/schemas/fontFamilyToken.ts +0 -21
- package/src/schemas/fontWeightToken.ts +0 -22
- package/src/schemas/fontWeightValue.ts +0 -14
- package/src/schemas/numberToken.ts +0 -28
- package/src/schemas/referenceValue.ts +0 -12
- package/src/schemas/scopes.ts +0 -40
- package/src/schemas/shadowToken.ts +0 -45
- package/src/schemas/stringToken.ts +0 -11
- package/src/schemas/tokenName.ts +0 -12
- package/src/schemas/tokenType.ts +0 -4
- package/src/schemas/typographyToken.ts +0 -20
- package/src/schemas/validTokenType.ts +0 -44
- package/src/schemas/viewportRangeToken.ts +0 -11
- package/src/test-utilities/getMockDictionary.ts +0 -22
- package/src/test-utilities/getMockFormatterArguments.ts +0 -21
- package/src/test-utilities/getMockParserInput.ts +0 -72
- package/src/test-utilities/getMockToken.ts +0 -25
- package/src/test-utilities/index.ts +0 -4
- package/src/tokens/base/color/dark/dark.dimmed.json5 +0 -1164
- package/src/tokens/base/color/dark/dark.high-contrast.json5 +0 -764
- package/src/tokens/base/color/dark/dark.json5 +0 -911
- package/src/tokens/base/color/dark/display-dark.json5 +0 -1774
- package/src/tokens/base/color/light/display-light.json5 +0 -1774
- package/src/tokens/base/color/light/light.high-contrast.json5 +0 -755
- package/src/tokens/base/color/light/light.json5 +0 -911
- package/src/tokens/base/size/size.json +0 -196
- package/src/tokens/base/typography/typography.json +0 -48
- package/src/tokens/fallback/color-fallbacks.json +0 -270
- package/src/tokens/functional/border/dark.json5 +0 -12
- package/src/tokens/functional/border/light.json5 +0 -12
- package/src/tokens/functional/color/dark/app-dark.json5 +0 -554
- package/src/tokens/functional/color/dark/data-vis-dark.json5 +0 -284
- package/src/tokens/functional/color/dark/display-dark.json5 +0 -1258
- package/src/tokens/functional/color/dark/overrides/dark.dimmed.json5 +0 -194
- package/src/tokens/functional/color/dark/overrides/dark.high-contrast.json5 +0 -935
- package/src/tokens/functional/color/dark/overrides/dark.protanopia-deuteranopia.json5 +0 -310
- package/src/tokens/functional/color/dark/overrides/dark.tritanopia.json5 +0 -224
- package/src/tokens/functional/color/dark/patterns-dark.json5 +0 -3097
- package/src/tokens/functional/color/dark/primitives-dark.json5 +0 -1200
- package/src/tokens/functional/color/dark/syntax-dark.json5 +0 -559
- package/src/tokens/functional/color/light/app-light.json5 +0 -551
- package/src/tokens/functional/color/light/data-vis-light.json5 +0 -284
- package/src/tokens/functional/color/light/display-light.json5 +0 -1258
- package/src/tokens/functional/color/light/overrides/light.high-contrast.json5 +0 -819
- package/src/tokens/functional/color/light/overrides/light.protanopia-deuteranopia.json5 +0 -327
- package/src/tokens/functional/color/light/overrides/light.tritanopia.json5 +0 -237
- package/src/tokens/functional/color/light/patterns-light.json5 +0 -3091
- package/src/tokens/functional/color/light/primitives-light.json5 +0 -1193
- package/src/tokens/functional/color/light/syntax-light.json5 +0 -559
- package/src/tokens/functional/motion/loading.json5 +0 -17
- package/src/tokens/functional/motion/patterns.json5 +0 -28
- package/src/tokens/functional/shadow/dark.json5 +0 -383
- package/src/tokens/functional/shadow/light.json5 +0 -376
- package/src/tokens/functional/size/border.json +0 -111
- package/src/tokens/functional/size/breakpoints.json +0 -64
- package/src/tokens/functional/size/size-coarse.json +0 -28
- package/src/tokens/functional/size/size-fine.json +0 -28
- package/src/tokens/functional/size/size.json +0 -740
- package/src/tokens/functional/size/viewport.json +0 -28
- package/src/tokens/functional/typography/typography.json +0 -527
- package/src/tokens/removed/color.json +0 -421
- package/src/tokens/removed/testing.json5 +0 -4
- package/src/transformers/borderToCss.ts +0 -38
- package/src/transformers/colorToHex.ts +0 -16
- package/src/transformers/colorToHexAlpha.ts +0 -23
- package/src/transformers/colorToHexMix.ts +0 -19
- package/src/transformers/colorToRgbAlpha.ts +0 -19
- package/src/transformers/colorToRgbaFloat.ts +0 -45
- package/src/transformers/dimensionToPixelUnitless.ts +0 -60
- package/src/transformers/dimensionToRem.ts +0 -56
- package/src/transformers/dimensionToRemPxArray.ts +0 -60
- package/src/transformers/durationToCss.ts +0 -29
- package/src/transformers/figmaAttributes.ts +0 -79
- package/src/transformers/floatToPixel.ts +0 -40
- package/src/transformers/fontFamilyToCss.ts +0 -37
- package/src/transformers/fontFamilyToFigma.ts +0 -47
- package/src/transformers/fontWeightToNumber.ts +0 -53
- package/src/transformers/index.ts +0 -24
- package/src/transformers/jsonDeprecated.ts +0 -15
- package/src/transformers/namePathToDotNotation.ts +0 -34
- package/src/transformers/namePathToFigma.ts +0 -28
- package/src/transformers/namePathToKebabCase.ts +0 -19
- package/src/transformers/namePathToSlashNotation.ts +0 -19
- package/src/transformers/shadowToCss.ts +0 -37
- package/src/transformers/typographyToCss.ts +0 -31
- package/src/transformers/utilities/alpha.ts +0 -23
- package/src/transformers/utilities/checkRequiredTokenProperties.ts +0 -16
- package/src/transformers/utilities/getTokenValue.ts +0 -18
- package/src/transformers/utilities/hasSpaceInString.ts +0 -6
- package/src/transformers/utilities/hexToRgbaFloat.ts +0 -31
- package/src/transformers/utilities/invalidTokenError.ts +0 -34
- package/src/transformers/utilities/isRgbaFloat.ts +0 -29
- package/src/transformers/utilities/mix.ts +0 -46
- package/src/transformers/utilities/rgbaFloatToHex.ts +0 -15
- package/src/types/Border.d.ts +0 -5
- package/src/types/BorderTokenValue.d.ts +0 -10
- package/src/types/ColorHex.d.ts +0 -4
- package/src/types/PlatformInitializer.d.ts +0 -11
- package/src/types/Shadow.d.ts +0 -5
- package/src/types/ShadowTokenValue.d.ts +0 -14
- package/src/types/SizeEm.d.ts +0 -4
- package/src/types/SizePx.d.ts +0 -4
- package/src/types/SizeRem.d.ts +0 -4
- package/src/types/StyleDictionaryConfigGenerator.d.ts +0 -15
- package/src/types/TokenBuildInput.d.ts +0 -8
- package/src/types/TypographyTokenValue.d.ts +0 -12
- package/src/types/w3cTransformedToken.d.ts +0 -8
- package/src/utilities/copyFromDir.ts +0 -21
- package/src/utilities/index.ts +0 -3
- package/src/utilities/joinFriendly.ts +0 -2
- package/src/utilities/schemaErrorMessage.ts +0 -2
- package/src/utilities/toCamelCase.ts +0 -29
- package/src/utilities/treeWalker.ts +0 -27
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"viewportRange": {
|
|
3
|
-
"narrow": {
|
|
4
|
-
"$value": "(max-width: calc({breakpoint.medium} - 0.02px))",
|
|
5
|
-
"$type": "custom-viewportRange"
|
|
6
|
-
},
|
|
7
|
-
"narrowLandscape": {
|
|
8
|
-
"$value": "(max-width: calc({breakpoint.large} - 0.02px) and (max-height: calc({breakpoint.small} - 0.02px)) and (orientation: landscape))",
|
|
9
|
-
"$type": "custom-viewportRange"
|
|
10
|
-
},
|
|
11
|
-
"regular": {
|
|
12
|
-
"$value": "(min-width: {breakpoint.medium})",
|
|
13
|
-
"$type": "custom-viewportRange"
|
|
14
|
-
},
|
|
15
|
-
"wide": {
|
|
16
|
-
"$value": "(min-width: {breakpoint.xxlarge})",
|
|
17
|
-
"$type": "custom-viewportRange"
|
|
18
|
-
},
|
|
19
|
-
"portrait": {
|
|
20
|
-
"$value": "(orientation: portrait)",
|
|
21
|
-
"$type": "custom-viewportRange"
|
|
22
|
-
},
|
|
23
|
-
"landscape": {
|
|
24
|
-
"$value": "(orientation: landscape)",
|
|
25
|
-
"$type": "custom-viewportRange"
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
}
|
|
@@ -1,527 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"fontStack": {
|
|
3
|
-
"system": {
|
|
4
|
-
"$value": "-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'",
|
|
5
|
-
"$type": "fontFamily",
|
|
6
|
-
"$extensions": {
|
|
7
|
-
"org.primer.figma": {
|
|
8
|
-
"collection": "typography",
|
|
9
|
-
"scopes": ["fontFamily"]
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
},
|
|
13
|
-
"sansSerif": {
|
|
14
|
-
"$value": "-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'",
|
|
15
|
-
"$type": "fontFamily",
|
|
16
|
-
"$extensions": {
|
|
17
|
-
"org.primer.figma": {
|
|
18
|
-
"collection": "typography",
|
|
19
|
-
"scopes": ["fontFamily"]
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
"sansSerifDisplay": {
|
|
24
|
-
"$value": "-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'",
|
|
25
|
-
"$type": "fontFamily",
|
|
26
|
-
"$extensions": {
|
|
27
|
-
"org.primer.figma": {
|
|
28
|
-
"collection": "typography",
|
|
29
|
-
"scopes": ["fontFamily"]
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
"monospace": {
|
|
34
|
-
"$value": "ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace",
|
|
35
|
-
"$type": "fontFamily",
|
|
36
|
-
"$extensions": {
|
|
37
|
-
"org.primer.figma": {
|
|
38
|
-
"collection": "typography",
|
|
39
|
-
"scopes": ["fontFamily"]
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
"text": {
|
|
45
|
-
"display": {
|
|
46
|
-
"lineBoxHeight": {
|
|
47
|
-
"$value": 1.4,
|
|
48
|
-
"$type": "number",
|
|
49
|
-
"$extensions": {
|
|
50
|
-
"org.primer.data": {
|
|
51
|
-
"fontSize": 40
|
|
52
|
-
},
|
|
53
|
-
"org.primer.figma": {
|
|
54
|
-
"collection": "typography",
|
|
55
|
-
"scopes": ["lineHeight"],
|
|
56
|
-
"fontSizeInPx": 40
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
},
|
|
60
|
-
"size": {
|
|
61
|
-
"$value": "40px",
|
|
62
|
-
"$type": "dimension",
|
|
63
|
-
"$extensions": {
|
|
64
|
-
"org.primer.figma": {
|
|
65
|
-
"collection": "typography",
|
|
66
|
-
"scopes": ["fontSize"]
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
},
|
|
70
|
-
"lineHeight": {
|
|
71
|
-
"$value": 1.4,
|
|
72
|
-
"$type": "number",
|
|
73
|
-
"$extensions": {
|
|
74
|
-
"org.primer.data": {
|
|
75
|
-
"fontSize": 40
|
|
76
|
-
},
|
|
77
|
-
"org.primer.figma": {
|
|
78
|
-
"collection": "typography",
|
|
79
|
-
"scopes": ["lineHeight"]
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
},
|
|
83
|
-
"weight": {
|
|
84
|
-
"$value": "{base.text.weight.medium}",
|
|
85
|
-
"$type": "fontWeight",
|
|
86
|
-
"$extensions": {
|
|
87
|
-
"org.primer.figma": {
|
|
88
|
-
"collection": "typography",
|
|
89
|
-
"scopes": ["fontWeight"]
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
},
|
|
93
|
-
"shorthand": {
|
|
94
|
-
"$value": {
|
|
95
|
-
"fontWeight": "{text.display.weight}",
|
|
96
|
-
"fontSize": "{text.display.size}",
|
|
97
|
-
"lineHeight": "{text.display.lineHeight}",
|
|
98
|
-
"fontFamily": "{fontStack.sansSerifDisplay}"
|
|
99
|
-
},
|
|
100
|
-
"$type": "typography",
|
|
101
|
-
"$description": "Hero-style text for brand to product transition pages. Utilize Title (large) styles on narrow viewports."
|
|
102
|
-
}
|
|
103
|
-
},
|
|
104
|
-
"title": {
|
|
105
|
-
"size": {
|
|
106
|
-
"large": {
|
|
107
|
-
"$value": "32px",
|
|
108
|
-
"$type": "dimension",
|
|
109
|
-
"$extensions": {
|
|
110
|
-
"org.primer.figma": {
|
|
111
|
-
"collection": "typography",
|
|
112
|
-
"scopes": ["fontSize"]
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
},
|
|
116
|
-
"medium": {
|
|
117
|
-
"$value": "20px",
|
|
118
|
-
"$type": "dimension",
|
|
119
|
-
"$extensions": {
|
|
120
|
-
"org.primer.figma": {
|
|
121
|
-
"collection": "typography",
|
|
122
|
-
"scopes": ["fontSize"]
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
},
|
|
126
|
-
"small": {
|
|
127
|
-
"$value": "16px",
|
|
128
|
-
"$type": "dimension",
|
|
129
|
-
"$extensions": {
|
|
130
|
-
"org.primer.figma": {
|
|
131
|
-
"collection": "typography",
|
|
132
|
-
"scopes": ["fontSize"]
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
},
|
|
137
|
-
"lineHeight": {
|
|
138
|
-
"large": {
|
|
139
|
-
"$value": 1.5,
|
|
140
|
-
"$type": "number",
|
|
141
|
-
"$extensions": {
|
|
142
|
-
"org.primer.data": {
|
|
143
|
-
"fontSize": 32
|
|
144
|
-
},
|
|
145
|
-
"org.primer.figma": {
|
|
146
|
-
"collection": "typography",
|
|
147
|
-
"scopes": ["lineHeight"]
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
},
|
|
151
|
-
"medium": {
|
|
152
|
-
"$value": 1.6,
|
|
153
|
-
"$type": "number",
|
|
154
|
-
"$extensions": {
|
|
155
|
-
"org.primer.data": {
|
|
156
|
-
"fontSize": 20
|
|
157
|
-
},
|
|
158
|
-
"org.primer.figma": {
|
|
159
|
-
"collection": "typography",
|
|
160
|
-
"scopes": ["lineHeight"]
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
},
|
|
164
|
-
"small": {
|
|
165
|
-
"$value": 1.5,
|
|
166
|
-
"$type": "number",
|
|
167
|
-
"$extensions": {
|
|
168
|
-
"org.primer.data": {
|
|
169
|
-
"fontSize": 16
|
|
170
|
-
},
|
|
171
|
-
"org.primer.figma": {
|
|
172
|
-
"collection": "typography",
|
|
173
|
-
"scopes": ["lineHeight"]
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
},
|
|
178
|
-
"weight": {
|
|
179
|
-
"large": {
|
|
180
|
-
"$value": "{base.text.weight.semibold}",
|
|
181
|
-
"$type": "fontWeight",
|
|
182
|
-
"$extensions": {
|
|
183
|
-
"org.primer.figma": {
|
|
184
|
-
"collection": "typography",
|
|
185
|
-
"scopes": ["fontWeight"]
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
},
|
|
189
|
-
"medium": {
|
|
190
|
-
"$value": "{base.text.weight.semibold}",
|
|
191
|
-
"$type": "fontWeight",
|
|
192
|
-
"$extensions": {
|
|
193
|
-
"org.primer.figma": {
|
|
194
|
-
"collection": "typography",
|
|
195
|
-
"scopes": ["fontWeight"]
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
},
|
|
199
|
-
"small": {
|
|
200
|
-
"$value": "{base.text.weight.semibold}",
|
|
201
|
-
"$type": "fontWeight",
|
|
202
|
-
"$extensions": {
|
|
203
|
-
"org.primer.figma": {
|
|
204
|
-
"collection": "typography",
|
|
205
|
-
"scopes": ["fontWeight"]
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
},
|
|
210
|
-
"shorthand": {
|
|
211
|
-
"large": {
|
|
212
|
-
"$value": {
|
|
213
|
-
"fontWeight": "{text.title.weight.large}",
|
|
214
|
-
"fontSize": "{text.title.size.large}",
|
|
215
|
-
"lineHeight": "{text.title.lineHeight.large}",
|
|
216
|
-
"fontFamily": "{fontStack.sansSerifDisplay}"
|
|
217
|
-
},
|
|
218
|
-
"$type": "typography",
|
|
219
|
-
"$description": "Page headings for user-created objects, such as issues or pull requests. Utilize title (medium) styles on narrow viewports."
|
|
220
|
-
},
|
|
221
|
-
"medium": {
|
|
222
|
-
"$value": {
|
|
223
|
-
"fontWeight": "{text.title.weight.medium}",
|
|
224
|
-
"fontSize": "{text.title.size.medium}",
|
|
225
|
-
"lineHeight": "{text.title.lineHeight.medium}",
|
|
226
|
-
"fontFamily": "{fontStack.sansSerifDisplay}"
|
|
227
|
-
},
|
|
228
|
-
"$type": "typography",
|
|
229
|
-
"$description": "Default page title. The 32px-equivalent line-height matches with button and other medium control heights. Great for page header composition."
|
|
230
|
-
},
|
|
231
|
-
"small": {
|
|
232
|
-
"$value": {
|
|
233
|
-
"fontWeight": "{text.title.weight.small}",
|
|
234
|
-
"fontSize": "{text.title.size.small}",
|
|
235
|
-
"lineHeight": "{text.title.lineHeight.small}",
|
|
236
|
-
"fontFamily": "{fontStack.sansSerif}"
|
|
237
|
-
},
|
|
238
|
-
"$type": "typography",
|
|
239
|
-
"$description": "Uses the same size as body (large) with a heavier weight of semibold (600)."
|
|
240
|
-
}
|
|
241
|
-
}
|
|
242
|
-
},
|
|
243
|
-
"subtitle": {
|
|
244
|
-
"size": {
|
|
245
|
-
"$value": "20px",
|
|
246
|
-
"$type": "dimension",
|
|
247
|
-
"$extensions": {
|
|
248
|
-
"org.primer.figma": {
|
|
249
|
-
"collection": "typography",
|
|
250
|
-
"scopes": ["fontSize"]
|
|
251
|
-
}
|
|
252
|
-
}
|
|
253
|
-
},
|
|
254
|
-
"lineHeight": {
|
|
255
|
-
"$value": 1.6,
|
|
256
|
-
"$type": "number",
|
|
257
|
-
"$extensions": {
|
|
258
|
-
"org.primer.data": {
|
|
259
|
-
"fontSize": 20
|
|
260
|
-
},
|
|
261
|
-
"org.primer.figma": {
|
|
262
|
-
"collection": "typography",
|
|
263
|
-
"scopes": ["lineHeight"]
|
|
264
|
-
}
|
|
265
|
-
}
|
|
266
|
-
},
|
|
267
|
-
"weight": {
|
|
268
|
-
"$value": "{base.text.weight.normal}",
|
|
269
|
-
"$type": "fontWeight",
|
|
270
|
-
"$extensions": {
|
|
271
|
-
"org.primer.figma": {
|
|
272
|
-
"collection": "typography",
|
|
273
|
-
"scopes": ["fontWeight"]
|
|
274
|
-
}
|
|
275
|
-
}
|
|
276
|
-
},
|
|
277
|
-
"shorthand": {
|
|
278
|
-
"$value": {
|
|
279
|
-
"fontWeight": "{text.subtitle.weight}",
|
|
280
|
-
"fontSize": "{text.subtitle.size}",
|
|
281
|
-
"lineHeight": "{text.subtitle.lineHeight}",
|
|
282
|
-
"fontFamily": "{fontStack.sansSerifDisplay}"
|
|
283
|
-
},
|
|
284
|
-
"$type": "typography",
|
|
285
|
-
"$description": "Page sections/sub headings, or less important object names in page titles (automated action titles, for example). Same line-height as title (medium)."
|
|
286
|
-
}
|
|
287
|
-
},
|
|
288
|
-
"body": {
|
|
289
|
-
"size": {
|
|
290
|
-
"large": {
|
|
291
|
-
"$value": "16px",
|
|
292
|
-
"$type": "dimension",
|
|
293
|
-
"$extensions": {
|
|
294
|
-
"org.primer.figma": {
|
|
295
|
-
"collection": "typography",
|
|
296
|
-
"scopes": ["fontSize"]
|
|
297
|
-
}
|
|
298
|
-
}
|
|
299
|
-
},
|
|
300
|
-
"medium": {
|
|
301
|
-
"$value": "14px",
|
|
302
|
-
"$type": "dimension",
|
|
303
|
-
"$extensions": {
|
|
304
|
-
"org.primer.figma": {
|
|
305
|
-
"collection": "typography",
|
|
306
|
-
"scopes": ["fontSize"]
|
|
307
|
-
}
|
|
308
|
-
}
|
|
309
|
-
},
|
|
310
|
-
"small": {
|
|
311
|
-
"$value": "12px",
|
|
312
|
-
"$type": "dimension",
|
|
313
|
-
"$extensions": {
|
|
314
|
-
"org.primer.figma": {
|
|
315
|
-
"collection": "typography",
|
|
316
|
-
"scopes": ["fontSize"]
|
|
317
|
-
}
|
|
318
|
-
}
|
|
319
|
-
}
|
|
320
|
-
},
|
|
321
|
-
"lineHeight": {
|
|
322
|
-
"large": {
|
|
323
|
-
"$value": 1.5,
|
|
324
|
-
"$type": "number",
|
|
325
|
-
"$extensions": {
|
|
326
|
-
"org.primer.data": {
|
|
327
|
-
"fontSize": 16
|
|
328
|
-
},
|
|
329
|
-
"org.primer.figma": {
|
|
330
|
-
"collection": "typography",
|
|
331
|
-
"scopes": ["lineHeight"]
|
|
332
|
-
}
|
|
333
|
-
}
|
|
334
|
-
},
|
|
335
|
-
"medium": {
|
|
336
|
-
"$value": 1.4285,
|
|
337
|
-
"$type": "number",
|
|
338
|
-
"$extensions": {
|
|
339
|
-
"org.primer.data": {
|
|
340
|
-
"fontSize": 14
|
|
341
|
-
},
|
|
342
|
-
"org.primer.figma": {
|
|
343
|
-
"collection": "typography",
|
|
344
|
-
"scopes": ["lineHeight"]
|
|
345
|
-
}
|
|
346
|
-
}
|
|
347
|
-
},
|
|
348
|
-
"small": {
|
|
349
|
-
"$value": 1.6666,
|
|
350
|
-
"$type": "number",
|
|
351
|
-
"$extensions": {
|
|
352
|
-
"org.primer.data": {
|
|
353
|
-
"fontSize": 12
|
|
354
|
-
},
|
|
355
|
-
"org.primer.figma": {
|
|
356
|
-
"collection": "typography",
|
|
357
|
-
"scopes": ["lineHeight"]
|
|
358
|
-
}
|
|
359
|
-
}
|
|
360
|
-
}
|
|
361
|
-
},
|
|
362
|
-
"weight": {
|
|
363
|
-
"$value": "{base.text.weight.normal}",
|
|
364
|
-
"$type": "fontWeight",
|
|
365
|
-
"$extensions": {
|
|
366
|
-
"org.primer.figma": {
|
|
367
|
-
"collection": "typography",
|
|
368
|
-
"scopes": ["fontWeight"]
|
|
369
|
-
}
|
|
370
|
-
}
|
|
371
|
-
},
|
|
372
|
-
"shorthand": {
|
|
373
|
-
"large": {
|
|
374
|
-
"$value": {
|
|
375
|
-
"fontWeight": "{text.body.weight}",
|
|
376
|
-
"fontSize": "{text.body.size.large}",
|
|
377
|
-
"lineHeight": "{text.body.lineHeight.large}",
|
|
378
|
-
"fontFamily": "{fontStack.sansSerif}"
|
|
379
|
-
},
|
|
380
|
-
"$type": "typography",
|
|
381
|
-
"$description": "User-generated content, markdown rendering."
|
|
382
|
-
},
|
|
383
|
-
"medium": {
|
|
384
|
-
"$value": {
|
|
385
|
-
"fontWeight": "{text.body.weight}",
|
|
386
|
-
"fontSize": "{text.body.size.medium}",
|
|
387
|
-
"lineHeight": "{text.body.lineHeight.medium}",
|
|
388
|
-
"fontFamily": "{fontStack.sansSerif}"
|
|
389
|
-
},
|
|
390
|
-
"$type": "typography",
|
|
391
|
-
"$description": "Default UI font. Most commonly used for body text."
|
|
392
|
-
},
|
|
393
|
-
"small": {
|
|
394
|
-
"$value": {
|
|
395
|
-
"fontWeight": "{text.body.weight}",
|
|
396
|
-
"fontSize": "{text.body.size.small}",
|
|
397
|
-
"lineHeight": "{text.body.lineHeight.small}",
|
|
398
|
-
"fontFamily": "{fontStack.sansSerif}"
|
|
399
|
-
},
|
|
400
|
-
"$type": "typography",
|
|
401
|
-
"$description": "Small body text for discrete UI applications, such as helper, footnote text. Should be used sparingly across pages. Line-height matches Body (medium) at 20px."
|
|
402
|
-
}
|
|
403
|
-
}
|
|
404
|
-
},
|
|
405
|
-
"caption": {
|
|
406
|
-
"size": {
|
|
407
|
-
"$value": "12px",
|
|
408
|
-
"$type": "dimension",
|
|
409
|
-
"$extensions": {
|
|
410
|
-
"org.primer.figma": {
|
|
411
|
-
"collection": "typography",
|
|
412
|
-
"scopes": ["fontSize"]
|
|
413
|
-
}
|
|
414
|
-
}
|
|
415
|
-
},
|
|
416
|
-
"lineHeight": {
|
|
417
|
-
"$value": 1.3333,
|
|
418
|
-
"$type": "number",
|
|
419
|
-
"$extensions": {
|
|
420
|
-
"org.primer.data": {
|
|
421
|
-
"fontSize": 12
|
|
422
|
-
},
|
|
423
|
-
"org.primer.figma": {
|
|
424
|
-
"collection": "typography",
|
|
425
|
-
"scopes": ["lineHeight"]
|
|
426
|
-
}
|
|
427
|
-
}
|
|
428
|
-
},
|
|
429
|
-
"weight": {
|
|
430
|
-
"$value": "{base.text.weight.normal}",
|
|
431
|
-
"$type": "fontWeight",
|
|
432
|
-
"$extensions": {
|
|
433
|
-
"org.primer.figma": {
|
|
434
|
-
"collection": "typography",
|
|
435
|
-
"scopes": ["fontWeight"]
|
|
436
|
-
}
|
|
437
|
-
}
|
|
438
|
-
},
|
|
439
|
-
"shorthand": {
|
|
440
|
-
"$value": {
|
|
441
|
-
"fontWeight": "{text.caption.weight}",
|
|
442
|
-
"fontSize": "{text.caption.size}",
|
|
443
|
-
"lineHeight": "{text.caption.lineHeight}",
|
|
444
|
-
"fontFamily": "{fontStack.sansSerif}"
|
|
445
|
-
},
|
|
446
|
-
"$type": "typography",
|
|
447
|
-
"$description": "Compact small font with a smaller line height of 16px. Use it for single-line scenarios, as the small sizing doesn’t pass accessibility requirements."
|
|
448
|
-
}
|
|
449
|
-
},
|
|
450
|
-
"codeBlock": {
|
|
451
|
-
"size": {
|
|
452
|
-
"$value": "13px",
|
|
453
|
-
"$type": "dimension",
|
|
454
|
-
"$extensions": {
|
|
455
|
-
"org.primer.figma": {
|
|
456
|
-
"collection": "typography",
|
|
457
|
-
"scopes": ["fontSize"]
|
|
458
|
-
}
|
|
459
|
-
}
|
|
460
|
-
},
|
|
461
|
-
"lineHeight": {
|
|
462
|
-
"$value": 1.5385,
|
|
463
|
-
"$type": "number",
|
|
464
|
-
"$extensions": {
|
|
465
|
-
"org.primer.data": {
|
|
466
|
-
"fontSize": 13
|
|
467
|
-
},
|
|
468
|
-
"org.primer.figma": {
|
|
469
|
-
"collection": "typography",
|
|
470
|
-
"scopes": ["lineHeight"]
|
|
471
|
-
}
|
|
472
|
-
}
|
|
473
|
-
},
|
|
474
|
-
"weight": {
|
|
475
|
-
"$value": "{base.text.weight.normal}",
|
|
476
|
-
"$type": "fontWeight",
|
|
477
|
-
"$extensions": {
|
|
478
|
-
"org.primer.figma": {
|
|
479
|
-
"collection": "typography",
|
|
480
|
-
"scopes": ["fontWeight"]
|
|
481
|
-
}
|
|
482
|
-
}
|
|
483
|
-
},
|
|
484
|
-
"shorthand": {
|
|
485
|
-
"$value": {
|
|
486
|
-
"fontWeight": "{text.codeBlock.weight}",
|
|
487
|
-
"fontSize": "{text.codeBlock.size}",
|
|
488
|
-
"lineHeight": "{text.codeBlock.lineHeight}",
|
|
489
|
-
"fontFamily": "{fontStack.monospace}"
|
|
490
|
-
},
|
|
491
|
-
"$type": "typography",
|
|
492
|
-
"$description": "Default style for rendering code blocks."
|
|
493
|
-
}
|
|
494
|
-
},
|
|
495
|
-
"codeInline": {
|
|
496
|
-
"size": {
|
|
497
|
-
"$value": "0.9285em",
|
|
498
|
-
"$type": "dimension",
|
|
499
|
-
"$extensions": {
|
|
500
|
-
"org.primer.figma": {
|
|
501
|
-
"collection": "typography",
|
|
502
|
-
"scopes": ["fontSize"]
|
|
503
|
-
}
|
|
504
|
-
}
|
|
505
|
-
},
|
|
506
|
-
"weight": {
|
|
507
|
-
"$value": "{base.text.weight.normal}",
|
|
508
|
-
"$type": "fontWeight",
|
|
509
|
-
"$extensions": {
|
|
510
|
-
"org.primer.figma": {
|
|
511
|
-
"collection": "typography",
|
|
512
|
-
"scopes": ["fontWeight"]
|
|
513
|
-
}
|
|
514
|
-
}
|
|
515
|
-
},
|
|
516
|
-
"shorthand": {
|
|
517
|
-
"$value": {
|
|
518
|
-
"fontWeight": "{text.codeInline.weight}",
|
|
519
|
-
"fontSize": "{text.codeInline.size}",
|
|
520
|
-
"fontFamily": "{fontStack.monospace}"
|
|
521
|
-
},
|
|
522
|
-
"$type": "typography",
|
|
523
|
-
"$description": "Inline code blocks using em units to inherit size from its parent."
|
|
524
|
-
}
|
|
525
|
-
}
|
|
526
|
-
}
|
|
527
|
-
}
|