@primer/primitives 7.16.0 → 7.17.0-rc.132f02a7
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/css/functional/themes/dark-colorblind.css +14 -14
- package/dist/css/functional/themes/dark-tritanopia.css +14 -14
- package/dist/css/functional/themes/dark.css +14 -14
- package/dist/docs/functional/themes/dark-colorblind.json +7 -7
- package/dist/docs/functional/themes/dark-tritanopia.json +7 -7
- package/dist/docs/functional/themes/dark.json +7 -7
- package/dist/figma/scales/dark.json +5 -5
- package/dist/figma/themes/dark-colorblind.json +20 -20
- package/dist/figma/themes/dark-tritanopia.json +20 -20
- package/dist/figma/themes/dark.json +20 -20
- package/dist/internalCss/dark-colorblind.css +18 -18
- package/dist/internalCss/dark-tritanopia.css +18 -18
- package/dist/internalCss/dark.css +18 -18
- package/{tokens-next-private/docs → dist/styleLint}/base/size/size.json +17 -17
- package/{tokens-next-private/docs → dist/styleLint}/functional/size/border.json +6 -6
- package/{tokens-next-private/docs → dist/styleLint}/functional/size/breakpoints.json +6 -6
- package/{tokens-next-private/docs → dist/styleLint}/functional/size/size-coarse.json +3 -3
- package/{tokens-next-private/docs → dist/styleLint}/functional/size/size-fine.json +3 -3
- package/{tokens-next-private/docs → dist/styleLint}/functional/size/size.json +72 -72
- package/{tokens-next-private/docs → dist/styleLint}/functional/size/viewport.json +4 -4
- package/{tokens-next-private/docs → dist/styleLint}/functional/themes/dark-colorblind.json +7 -7
- package/{tokens-next-private/docs → dist/styleLint}/functional/themes/dark-tritanopia.json +7 -7
- package/{tokens-next-private/docs → dist/styleLint}/functional/themes/dark.json +7 -7
- package/{tokens-next-private/docs → dist/styleLint}/functional/typography/typography.json +23 -23
- package/package.json +12 -11
- package/src/PrimerStyleDictionary.ts +226 -0
- package/src/filters/index.ts +12 -0
- package/src/filters/isBorder.ts +10 -0
- package/src/filters/isColor.ts +10 -0
- package/src/filters/isColorWithAlpha.ts +11 -0
- package/src/filters/isColorWithMix.ts +33 -0
- package/src/filters/isDeprecated.ts +10 -0
- package/src/filters/isDimension.ts +10 -0
- package/src/filters/isDuration.ts +10 -0
- package/src/filters/isFontFamily.ts +10 -0
- package/src/filters/isFontWeight.ts +10 -0
- package/src/filters/isFromFile.ts +12 -0
- package/src/filters/isShadow.ts +10 -0
- package/src/filters/isSource.ts +10 -0
- package/src/filters/isTypography.ts +10 -0
- package/src/formats/cssCustomMedia.ts +24 -0
- package/src/formats/cssThemed.ts +35 -0
- package/src/formats/cssVariables.ts +25 -0
- package/src/formats/cssWrapMediaQuery.ts +29 -0
- package/src/formats/index.ts +11 -0
- package/src/formats/javascriptCommonJs.ts +21 -0
- package/src/formats/javascriptEsm.ts +21 -0
- package/src/formats/jsonFigma.ts +133 -0
- package/src/formats/jsonNestedPrefixed.ts +23 -0
- package/src/formats/jsonOneDimensional.ts +18 -0
- package/src/formats/jsonPostCssFallback.ts +16 -0
- package/src/formats/typescriptExportDefinition.ts +170 -0
- package/src/formats/utilities/jsonToFlat.ts +10 -0
- package/src/formats/utilities/jsonToNestedValue.ts +20 -0
- package/src/formats/utilities/prefixTokens.ts +17 -0
- package/src/parsers/index.ts +1 -0
- package/src/parsers/w3cJsonParser.ts +25 -0
- package/src/platforms/css.ts +93 -0
- package/src/platforms/deprecatedJson.ts +16 -0
- package/src/platforms/docJson.ts +34 -0
- package/src/platforms/fallbacks.ts +34 -0
- package/src/platforms/figma.ts +48 -0
- package/src/platforms/index.ts +10 -0
- package/src/platforms/javascript.ts +30 -0
- package/src/platforms/json.ts +32 -0
- package/src/platforms/styleLint.ts +34 -0
- package/src/platforms/typeDefinitions.ts +30 -0
- package/src/platforms/typescript.ts +30 -0
- package/src/schemas/alphaValue.ts +12 -0
- package/src/schemas/baseToken.ts +7 -0
- package/src/schemas/borderToken.ts +19 -0
- package/src/schemas/collections.ts +49 -0
- package/src/schemas/colorHexValue.ts +18 -0
- package/src/schemas/colorToken.ts +50 -0
- package/src/schemas/designToken.ts +38 -0
- package/src/schemas/dimensionToken.ts +22 -0
- package/src/schemas/dimensionValue.ts +16 -0
- package/src/schemas/durationToken.ts +12 -0
- package/src/schemas/durationValue.ts +9 -0
- package/src/schemas/fontFamilyToken.ts +21 -0
- package/src/schemas/fontWeightToken.ts +22 -0
- package/src/schemas/fontWeightValue.ts +14 -0
- package/src/schemas/numberToken.ts +11 -0
- package/src/schemas/referenceValue.ts +12 -0
- package/src/schemas/scopes.ts +16 -0
- package/src/schemas/shadowToken.ts +45 -0
- package/src/schemas/stringToken.ts +11 -0
- package/src/schemas/tokenName.ts +12 -0
- package/src/schemas/tokenType.ts +4 -0
- package/src/schemas/typographyToken.ts +20 -0
- package/src/schemas/validTokenType.ts +44 -0
- package/src/schemas/viewportRangeToken.ts +11 -0
- package/src/test-utilities/getMockDictionary.ts +22 -0
- package/src/test-utilities/getMockFormatterArguments.ts +21 -0
- package/src/test-utilities/getMockParserInput.ts +72 -0
- package/src/test-utilities/getMockToken.ts +25 -0
- package/src/test-utilities/index.ts +4 -0
- package/src/tokens/base/color/dark/dark.dimmed.json5 +1326 -0
- package/src/tokens/base/color/dark/dark.high-contrast.json5 +856 -0
- package/src/tokens/base/color/dark/dark.json5 +866 -0
- package/src/tokens/base/color/dark/display-dark.json5 +1774 -0
- package/src/tokens/base/color/light/display-light.json5 +1774 -0
- package/src/tokens/base/color/light/light.high-contrast.json5 +847 -0
- package/src/tokens/base/color/light/light.json5 +866 -0
- package/src/tokens/base/size/size.json +176 -0
- package/src/tokens/base/typography/typography.json +24 -0
- package/{tokens-next-private/fallbacks → src/tokens/fallback}/color-fallbacks.json +1 -1
- package/src/tokens/functional/border/dark.json5 +12 -0
- package/src/tokens/functional/border/light.json5 +12 -0
- package/src/tokens/functional/color/dark/app-dark.json5 +554 -0
- package/src/tokens/functional/color/dark/data-vis-dark.json5 +144 -0
- package/src/tokens/functional/color/dark/display-dark.json5 +1060 -0
- package/src/tokens/functional/color/dark/overrides/dark.dimmed.json5 +57 -0
- package/src/tokens/functional/color/dark/overrides/dark.high-contrast.json5 +390 -0
- package/src/tokens/functional/color/dark/overrides/dark.protanopia-deuteranopia.json5 +314 -0
- package/src/tokens/functional/color/dark/overrides/dark.tritanopia.json5 +229 -0
- package/src/tokens/functional/color/dark/patterns-dark.json5 +3073 -0
- package/src/tokens/functional/color/dark/primitives-dark.json5 +1206 -0
- package/src/tokens/functional/color/dark/syntax-dark.json5 +559 -0
- package/src/tokens/functional/color/light/app-light.json5 +551 -0
- package/src/tokens/functional/color/light/data-vis-light.json5 +144 -0
- package/src/tokens/functional/color/light/display-light.json5 +1060 -0
- package/src/tokens/functional/color/light/overrides/light.high-contrast.json5 +440 -0
- package/src/tokens/functional/color/light/overrides/light.protanopia-deuteranopia.json5 +340 -0
- package/src/tokens/functional/color/light/overrides/light.tritanopia.json5 +249 -0
- package/src/tokens/functional/color/light/patterns-light.json5 +3070 -0
- package/src/tokens/functional/color/light/primitives-light.json5 +1196 -0
- package/src/tokens/functional/color/light/syntax-light.json5 +559 -0
- package/src/tokens/functional/motion/loading.json5 +17 -0
- package/src/tokens/functional/motion/patterns.json5 +28 -0
- package/src/tokens/functional/shadow/dark.json5 +383 -0
- package/src/tokens/functional/shadow/light.json5 +376 -0
- package/src/tokens/functional/size/border.json +98 -0
- package/src/tokens/functional/size/breakpoints.json +64 -0
- package/src/tokens/functional/size/size-coarse.json +28 -0
- package/src/tokens/functional/size/size-fine.json +28 -0
- package/src/tokens/functional/size/size.json +802 -0
- package/src/tokens/functional/size/viewport.json +28 -0
- package/src/tokens/functional/typography/typography.json +279 -0
- package/src/transformers/borderToCss.ts +38 -0
- package/src/transformers/colorToHex.ts +16 -0
- package/src/transformers/colorToHexAlpha.ts +23 -0
- package/src/transformers/colorToHexMix.ts +19 -0
- package/src/transformers/colorToRgbAlpha.ts +19 -0
- package/src/transformers/colorToRgbaFloat.ts +45 -0
- package/src/transformers/dimensionToPixelUnitless.ts +60 -0
- package/src/transformers/dimensionToRem.ts +56 -0
- package/src/transformers/dimensionToRemPxArray.ts +60 -0
- package/src/transformers/durationToCss.ts +29 -0
- package/src/transformers/figmaAttributes.ts +55 -0
- package/src/transformers/fontFamilyToCss.ts +38 -0
- package/src/transformers/fontWeightToNumber.ts +53 -0
- package/src/transformers/index.ts +21 -0
- package/src/transformers/jsonDeprecated.ts +15 -0
- package/src/transformers/namePathToCamelCase.ts +14 -0
- package/src/transformers/namePathToDotNotation.ts +34 -0
- package/src/transformers/namePathToFigma.ts +28 -0
- package/src/transformers/namePathToKebabCase.ts +19 -0
- package/src/transformers/namePathToSlashNotation.ts +19 -0
- package/src/transformers/shadowToCss.ts +37 -0
- package/src/transformers/typographyToCss.ts +31 -0
- package/src/transformers/utilities/alpha.ts +23 -0
- package/src/transformers/utilities/checkRequiredTokenProperties.ts +16 -0
- package/src/transformers/utilities/getTokenValue.ts +18 -0
- package/src/transformers/utilities/hexToRgbaFloat.ts +31 -0
- package/src/transformers/utilities/invalidTokenError.ts +34 -0
- package/src/transformers/utilities/isRgbaFloat.ts +29 -0
- package/src/transformers/utilities/mix.ts +46 -0
- package/src/transformers/utilities/rgbaFloatToHex.ts +15 -0
- package/src/types/Border.d.ts +5 -0
- package/src/types/BorderTokenValue.d.ts +10 -0
- package/src/types/ColorHex.d.ts +4 -0
- package/src/types/PlatformInitializer.d.ts +11 -0
- package/src/types/Shadow.d.ts +5 -0
- package/src/types/ShadowTokenValue.d.ts +14 -0
- package/src/types/SizeEm.d.ts +4 -0
- package/src/types/SizePx.d.ts +4 -0
- package/src/types/SizeRem.d.ts +4 -0
- package/src/types/StyleDictionaryConfigGenerator.d.ts +15 -0
- package/src/types/TokenBuildInput.d.ts +8 -0
- package/src/types/TypographyTokenValue.d.ts +12 -0
- package/src/types/w3cTransformedToken.d.ts +8 -0
- package/src/utilities/copyFromDir.ts +21 -0
- package/src/utilities/getFlag.ts +12 -0
- package/src/utilities/index.ts +3 -0
- package/src/utilities/joinFriendly.ts +2 -0
- package/src/utilities/schemaErrorMessage.ts +2 -0
- package/src/utilities/toCamelCase.ts +29 -0
- package/src/utilities/treeWalker.ts +27 -0
- package/src/utilities/upperCaseFirstCharacter.ts +10 -0
- package/src/utils-v1.ts +36 -0
- package/tokens-v2-private/css/tokens/base/size/size.css +1 -1
- package/tokens-v2-private/css/tokens/base/typography/typography.css +1 -1
- package/tokens-v2-private/css/tokens/functional/size/border.css +1 -1
- package/tokens-v2-private/css/tokens/functional/size/breakpoints.css +1 -1
- package/tokens-v2-private/css/tokens/functional/size/size-coarse.css +1 -1
- package/tokens-v2-private/css/tokens/functional/size/size-fine.css +1 -1
- package/tokens-v2-private/css/tokens/functional/size/size.css +1 -1
- package/tokens-v2-private/css/tokens/functional/typography/typography.css +1 -1
- package/tokens-v2-private/js/module/tokens/base/size/size.js +1 -1
- package/tokens-v2-private/js/module/tokens/base/typography/typography.js +1 -1
- package/tokens-v2-private/js/module/tokens/functional/size/border.js +1 -1
- package/tokens-v2-private/js/module/tokens/functional/size/breakpoints.js +1 -1
- package/tokens-v2-private/js/module/tokens/functional/size/size-coarse.js +1 -1
- package/tokens-v2-private/js/module/tokens/functional/size/size-fine.js +1 -1
- package/tokens-v2-private/js/module/tokens/functional/size/size.js +1 -1
- package/tokens-v2-private/js/module/tokens/functional/size/viewport.js +1 -1
- package/tokens-v2-private/js/module/tokens/functional/typography/typography.js +1 -1
- package/tokens-v2-private/js/tokens/base/size/size.js +1 -1
- package/tokens-v2-private/js/tokens/base/typography/typography.js +1 -1
- package/tokens-v2-private/js/tokens/functional/size/border.js +1 -1
- package/tokens-v2-private/js/tokens/functional/size/breakpoints.js +1 -1
- package/tokens-v2-private/js/tokens/functional/size/size-coarse.js +1 -1
- package/tokens-v2-private/js/tokens/functional/size/size-fine.js +1 -1
- package/tokens-v2-private/js/tokens/functional/size/size.js +1 -1
- package/tokens-v2-private/js/tokens/functional/size/viewport.js +1 -1
- package/tokens-v2-private/js/tokens/functional/typography/typography.js +1 -1
- package/tokens-v2-private/scss/tokens/base/size/size.scss +1 -1
- package/tokens-v2-private/scss/tokens/base/typography/typography.scss +1 -1
- package/tokens-v2-private/scss/tokens/functional/size/border.scss +1 -1
- package/tokens-v2-private/scss/tokens/functional/size/breakpoints.scss +1 -1
- package/tokens-v2-private/scss/tokens/functional/size/size-coarse.scss +1 -1
- package/tokens-v2-private/scss/tokens/functional/size/size-fine.scss +1 -1
- package/tokens-v2-private/scss/tokens/functional/size/size.scss +1 -1
- package/tokens-v2-private/scss/tokens/functional/size/viewport.scss +1 -1
- package/tokens-v2-private/scss/tokens/functional/typography/typography.scss +1 -1
- package/tokens-v2-private/ts/tokens/base/size/size.d.ts +1 -1
- package/tokens-v2-private/ts/tokens/base/size/size.js +1 -1
- package/tokens-v2-private/ts/tokens/base/typography/typography.d.ts +1 -1
- package/tokens-v2-private/ts/tokens/base/typography/typography.js +1 -1
- package/tokens-v2-private/ts/tokens/functional/size/border.d.ts +1 -1
- package/tokens-v2-private/ts/tokens/functional/size/border.js +1 -1
- package/tokens-v2-private/ts/tokens/functional/size/breakpoints.d.ts +1 -1
- package/tokens-v2-private/ts/tokens/functional/size/breakpoints.js +1 -1
- package/tokens-v2-private/ts/tokens/functional/size/size-coarse.d.ts +1 -1
- package/tokens-v2-private/ts/tokens/functional/size/size-coarse.js +1 -1
- package/tokens-v2-private/ts/tokens/functional/size/size-fine.d.ts +1 -1
- package/tokens-v2-private/ts/tokens/functional/size/size-fine.js +1 -1
- package/tokens-v2-private/ts/tokens/functional/size/size.d.ts +1 -1
- package/tokens-v2-private/ts/tokens/functional/size/size.js +1 -1
- package/tokens-v2-private/ts/tokens/functional/size/viewport.d.ts +1 -1
- package/tokens-v2-private/ts/tokens/functional/size/viewport.js +1 -1
- package/tokens-v2-private/ts/tokens/functional/typography/typography.d.ts +1 -1
- package/tokens-v2-private/ts/tokens/functional/typography/typography.js +1 -1
- package/dist/deprecated/colors.json +0 -7
- package/dist/js/colors/dark.d.ts +0 -516
- package/dist/js/colors/dark.js +0 -616
- package/dist/js/colors/dark_colorblind.d.ts +0 -516
- package/dist/js/colors/dark_colorblind.js +0 -616
- package/dist/js/colors/dark_dimmed.d.ts +0 -516
- package/dist/js/colors/dark_dimmed.js +0 -616
- package/dist/js/colors/dark_high_contrast.d.ts +0 -516
- package/dist/js/colors/dark_high_contrast.js +0 -616
- package/dist/js/colors/dark_tritanopia.d.ts +0 -516
- package/dist/js/colors/dark_tritanopia.js +0 -616
- package/dist/js/colors/index.d.ts +0 -4638
- package/dist/js/colors/index.js +0 -15
- package/dist/js/colors/light.d.ts +0 -516
- package/dist/js/colors/light.js +0 -616
- package/dist/js/colors/light_colorblind.d.ts +0 -516
- package/dist/js/colors/light_colorblind.js +0 -616
- package/dist/js/colors/light_high_contrast.d.ts +0 -516
- package/dist/js/colors/light_high_contrast.js +0 -616
- package/dist/js/colors/light_tritanopia.d.ts +0 -516
- package/dist/js/colors/light_tritanopia.js +0 -616
- package/dist/js/index.d.ts +0 -4655
- package/dist/js/index.js +0 -9
- package/dist/js/spacing/index.d.ts +0 -6
- package/dist/js/spacing/index.js +0 -7
- package/dist/js/spacing/normal.d.ts +0 -4
- package/dist/js/spacing/normal.js +0 -13
- package/dist/js/typography/index.d.ts +0 -11
- package/dist/js/typography/index.js +0 -7
- package/dist/js/typography/normal.d.ts +0 -9
- package/dist/js/typography/normal.js +0 -19
- package/dist/json/colors/dark.json +0 -614
- package/dist/json/colors/dark_colorblind.json +0 -614
- package/dist/json/colors/dark_dimmed.json +0 -614
- package/dist/json/colors/dark_high_contrast.json +0 -614
- package/dist/json/colors/dark_tritanopia.json +0 -614
- package/dist/json/colors/light.json +0 -614
- package/dist/json/colors/light_colorblind.json +0 -614
- package/dist/json/colors/light_high_contrast.json +0 -614
- package/dist/json/colors/light_tritanopia.json +0 -614
- package/dist/json/spacing/normal.json +0 -11
- package/dist/json/typography/normal.json +0 -17
- package/dist/removed/colors.json +0 -432
- package/dist/scss/colors/_dark.scss +0 -452
- package/dist/scss/colors/_dark_colorblind.scss +0 -452
- package/dist/scss/colors/_dark_dimmed.scss +0 -452
- package/dist/scss/colors/_dark_high_contrast.scss +0 -452
- package/dist/scss/colors/_dark_tritanopia.scss +0 -452
- package/dist/scss/colors/_light.scss +0 -452
- package/dist/scss/colors/_light_colorblind.scss +0 -452
- package/dist/scss/colors/_light_high_contrast.scss +0 -452
- package/dist/scss/colors/_light_tritanopia.scss +0 -452
- package/dist/scss/spacing/_normal.scss +0 -11
- package/dist/scss/typography/_normal.scss +0 -15
- package/dist/ts/colors/dark.ts +0 -614
- package/dist/ts/colors/dark_colorblind.ts +0 -614
- package/dist/ts/colors/dark_dimmed.ts +0 -614
- package/dist/ts/colors/dark_high_contrast.ts +0 -614
- package/dist/ts/colors/dark_tritanopia.ts +0 -614
- package/dist/ts/colors/index.ts +0 -10
- package/dist/ts/colors/light.ts +0 -614
- package/dist/ts/colors/light_colorblind.ts +0 -614
- package/dist/ts/colors/light_high_contrast.ts +0 -614
- package/dist/ts/colors/light_tritanopia.ts +0 -614
- package/dist/ts/index.ts +0 -4
- package/dist/ts/spacing/index.ts +0 -2
- package/dist/ts/spacing/normal.ts +0 -11
- package/dist/ts/typography/index.ts +0 -2
- package/dist/ts/typography/normal.ts +0 -17
- package/tokens-next-private/css/base/size/size.css +0 -19
- package/tokens-next-private/css/base/typography/typography.css +0 -6
- package/tokens-next-private/css/functional/motion/motion.css +0 -5
- package/tokens-next-private/css/functional/size/border.css +0 -14
- package/tokens-next-private/css/functional/size/breakpoints.css +0 -8
- package/tokens-next-private/css/functional/size/size-coarse.css +0 -7
- package/tokens-next-private/css/functional/size/size-fine.css +0 -7
- package/tokens-next-private/css/functional/size/size.css +0 -74
- package/tokens-next-private/css/functional/size/viewport.css +0 -6
- package/tokens-next-private/css/functional/themes/dark-colorblind.css +0 -1078
- package/tokens-next-private/css/functional/themes/dark-dimmed.css +0 -1078
- package/tokens-next-private/css/functional/themes/dark-high-contrast.css +0 -1078
- package/tokens-next-private/css/functional/themes/dark-tritanopia.css +0 -1078
- package/tokens-next-private/css/functional/themes/dark.css +0 -1078
- package/tokens-next-private/css/functional/themes/light-colorblind.css +0 -1078
- package/tokens-next-private/css/functional/themes/light-high-contrast.css +0 -1078
- package/tokens-next-private/css/functional/themes/light-tritanopia.css +0 -1078
- package/tokens-next-private/css/functional/themes/light.css +0 -1078
- package/tokens-next-private/css/functional/typography/typography.css +0 -47
- package/tokens-next-private/fallbacks/base/size/size.json +0 -19
- package/tokens-next-private/fallbacks/base/typography/typography.json +0 -6
- package/tokens-next-private/fallbacks/functional/motion/motion.json +0 -5
- package/tokens-next-private/fallbacks/functional/size/border.json +0 -14
- package/tokens-next-private/fallbacks/functional/size/breakpoints.json +0 -8
- package/tokens-next-private/fallbacks/functional/size/size-coarse.json +0 -5
- package/tokens-next-private/fallbacks/functional/size/size-fine.json +0 -5
- package/tokens-next-private/fallbacks/functional/size/size.json +0 -74
- package/tokens-next-private/fallbacks/functional/size/viewport.json +0 -8
- package/tokens-next-private/fallbacks/functional/typography/typography.json +0 -47
- package/tokens-next-private/internalCss/dark-colorblind.css +0 -1648
- package/tokens-next-private/internalCss/dark-dimmed.css +0 -1648
- package/tokens-next-private/internalCss/dark-high-contrast.css +0 -1648
- package/tokens-next-private/internalCss/dark-tritanopia.css +0 -1648
- package/tokens-next-private/internalCss/dark.css +0 -1648
- package/tokens-next-private/internalCss/light-colorblind.css +0 -1648
- package/tokens-next-private/internalCss/light-high-contrast.css +0 -1648
- package/tokens-next-private/internalCss/light-tritanopia.css +0 -1648
- package/tokens-next-private/internalCss/light.css +0 -1648
- /package/{tokens-next-private/docs → dist/styleLint}/base/typography/typography.json +0 -0
- /package/{tokens-next-private/docs → dist/styleLint}/functional/motion/motion.json +0 -0
- /package/{tokens-next-private/docs → dist/styleLint}/functional/themes/dark-dimmed.json +0 -0
- /package/{tokens-next-private/docs → dist/styleLint}/functional/themes/dark-high-contrast.json +0 -0
- /package/{tokens-next-private/docs → dist/styleLint}/functional/themes/light-colorblind.json +0 -0
- /package/{tokens-next-private/docs → dist/styleLint}/functional/themes/light-high-contrast.json +0 -0
- /package/{tokens-next-private/docs → dist/styleLint}/functional/themes/light-tritanopia.json +0 -0
- /package/{tokens-next-private/docs → dist/styleLint}/functional/themes/light.json +0 -0
- /package/{tokens-next-private → src/tokens}/removed/color.json +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"viewportRange-narrow": {
|
|
3
|
-
"value": "
|
|
3
|
+
"value": ["48rem", "768px"],
|
|
4
4
|
"$type": "custom-viewportRange",
|
|
5
5
|
"filePath": "src/tokens/functional/size/viewport.json",
|
|
6
6
|
"isSource": true,
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"path": ["viewportRange", "narrow"]
|
|
14
14
|
},
|
|
15
15
|
"viewportRange-narrowLandscape": {
|
|
16
|
-
"value": "
|
|
16
|
+
"value": ["34rem", "544px"],
|
|
17
17
|
"$type": "custom-viewportRange",
|
|
18
18
|
"filePath": "src/tokens/functional/size/viewport.json",
|
|
19
19
|
"isSource": true,
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"path": ["viewportRange", "narrowLandscape"]
|
|
27
27
|
},
|
|
28
28
|
"viewportRange-regular": {
|
|
29
|
-
"value": "
|
|
29
|
+
"value": ["48rem", "768px"],
|
|
30
30
|
"$type": "custom-viewportRange",
|
|
31
31
|
"filePath": "src/tokens/functional/size/viewport.json",
|
|
32
32
|
"isSource": true,
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"path": ["viewportRange", "regular"]
|
|
40
40
|
},
|
|
41
41
|
"viewportRange-wide": {
|
|
42
|
-
"value": "
|
|
42
|
+
"value": ["87.5rem", "1400px"],
|
|
43
43
|
"$type": "custom-viewportRange",
|
|
44
44
|
"filePath": "src/tokens/functional/size/viewport.json",
|
|
45
45
|
"isSource": true,
|
|
@@ -12355,7 +12355,7 @@
|
|
|
12355
12355
|
"path": ["fgColor", "closed", "@"]
|
|
12356
12356
|
},
|
|
12357
12357
|
"fgColor-done": {
|
|
12358
|
-
"value": "#
|
|
12358
|
+
"value": "#ab7df8",
|
|
12359
12359
|
"$type": "color",
|
|
12360
12360
|
"$extensions": {
|
|
12361
12361
|
"org.primer.figma": {
|
|
@@ -12390,7 +12390,7 @@
|
|
|
12390
12390
|
"path": ["fgColor", "done", "@"]
|
|
12391
12391
|
},
|
|
12392
12392
|
"fgColor-upsell": {
|
|
12393
|
-
"value": "#
|
|
12393
|
+
"value": "#ab7df8",
|
|
12394
12394
|
"$type": "color",
|
|
12395
12395
|
"$extensions": {
|
|
12396
12396
|
"org.primer.figma": {
|
|
@@ -13317,7 +13317,7 @@
|
|
|
13317
13317
|
"path": ["bgColor", "closed", "emphasis"]
|
|
13318
13318
|
},
|
|
13319
13319
|
"bgColor-done-muted": {
|
|
13320
|
-
"value": "#
|
|
13320
|
+
"value": "#ab7df826",
|
|
13321
13321
|
"$type": "color",
|
|
13322
13322
|
"$extensions": {
|
|
13323
13323
|
"org.primer.figma": {
|
|
@@ -13389,7 +13389,7 @@
|
|
|
13389
13389
|
"path": ["bgColor", "done", "emphasis"]
|
|
13390
13390
|
},
|
|
13391
13391
|
"bgColor-upsell-muted": {
|
|
13392
|
-
"value": "#
|
|
13392
|
+
"value": "#ab7df826",
|
|
13393
13393
|
"$type": "color",
|
|
13394
13394
|
"$extensions": {
|
|
13395
13395
|
"org.primer.figma": {
|
|
@@ -14256,7 +14256,7 @@
|
|
|
14256
14256
|
"path": ["borderColor", "closed", "emphasis"]
|
|
14257
14257
|
},
|
|
14258
14258
|
"borderColor-done-muted": {
|
|
14259
|
-
"value": "#
|
|
14259
|
+
"value": "#ab7df866",
|
|
14260
14260
|
"$type": "color",
|
|
14261
14261
|
"$extensions": {
|
|
14262
14262
|
"org.primer.figma": {
|
|
@@ -14328,7 +14328,7 @@
|
|
|
14328
14328
|
"path": ["borderColor", "done", "emphasis"]
|
|
14329
14329
|
},
|
|
14330
14330
|
"borderColor-upsell-muted": {
|
|
14331
|
-
"value": "#
|
|
14331
|
+
"value": "#ab7df866",
|
|
14332
14332
|
"$type": "color",
|
|
14333
14333
|
"$extensions": {
|
|
14334
14334
|
"org.primer.figma": {
|
|
@@ -14823,7 +14823,7 @@
|
|
|
14823
14823
|
"path": ["color", "ansi", "blue-bright"]
|
|
14824
14824
|
},
|
|
14825
14825
|
"color-ansi-magenta": {
|
|
14826
|
-
"value": "#
|
|
14826
|
+
"value": "#be8fff",
|
|
14827
14827
|
"$type": "color",
|
|
14828
14828
|
"$extensions": {
|
|
14829
14829
|
"org.primer.figma": {
|
|
@@ -12361,7 +12361,7 @@
|
|
|
12361
12361
|
"path": ["fgColor", "closed", "@"]
|
|
12362
12362
|
},
|
|
12363
12363
|
"fgColor-done": {
|
|
12364
|
-
"value": "#
|
|
12364
|
+
"value": "#ab7df8",
|
|
12365
12365
|
"$type": "color",
|
|
12366
12366
|
"$extensions": {
|
|
12367
12367
|
"org.primer.figma": {
|
|
@@ -12396,7 +12396,7 @@
|
|
|
12396
12396
|
"path": ["fgColor", "done", "@"]
|
|
12397
12397
|
},
|
|
12398
12398
|
"fgColor-upsell": {
|
|
12399
|
-
"value": "#
|
|
12399
|
+
"value": "#ab7df8",
|
|
12400
12400
|
"$type": "color",
|
|
12401
12401
|
"$extensions": {
|
|
12402
12402
|
"org.primer.figma": {
|
|
@@ -13323,7 +13323,7 @@
|
|
|
13323
13323
|
"path": ["bgColor", "closed", "emphasis"]
|
|
13324
13324
|
},
|
|
13325
13325
|
"bgColor-done-muted": {
|
|
13326
|
-
"value": "#
|
|
13326
|
+
"value": "#ab7df826",
|
|
13327
13327
|
"$type": "color",
|
|
13328
13328
|
"$extensions": {
|
|
13329
13329
|
"org.primer.figma": {
|
|
@@ -13395,7 +13395,7 @@
|
|
|
13395
13395
|
"path": ["bgColor", "done", "emphasis"]
|
|
13396
13396
|
},
|
|
13397
13397
|
"bgColor-upsell-muted": {
|
|
13398
|
-
"value": "#
|
|
13398
|
+
"value": "#ab7df826",
|
|
13399
13399
|
"$type": "color",
|
|
13400
13400
|
"$extensions": {
|
|
13401
13401
|
"org.primer.figma": {
|
|
@@ -14262,7 +14262,7 @@
|
|
|
14262
14262
|
"path": ["borderColor", "closed", "emphasis"]
|
|
14263
14263
|
},
|
|
14264
14264
|
"borderColor-done-muted": {
|
|
14265
|
-
"value": "#
|
|
14265
|
+
"value": "#ab7df866",
|
|
14266
14266
|
"$type": "color",
|
|
14267
14267
|
"$extensions": {
|
|
14268
14268
|
"org.primer.figma": {
|
|
@@ -14334,7 +14334,7 @@
|
|
|
14334
14334
|
"path": ["borderColor", "done", "emphasis"]
|
|
14335
14335
|
},
|
|
14336
14336
|
"borderColor-upsell-muted": {
|
|
14337
|
-
"value": "#
|
|
14337
|
+
"value": "#ab7df866",
|
|
14338
14338
|
"$type": "color",
|
|
14339
14339
|
"$extensions": {
|
|
14340
14340
|
"org.primer.figma": {
|
|
@@ -14829,7 +14829,7 @@
|
|
|
14829
14829
|
"path": ["color", "ansi", "blue-bright"]
|
|
14830
14830
|
},
|
|
14831
14831
|
"color-ansi-magenta": {
|
|
14832
|
-
"value": "#
|
|
14832
|
+
"value": "#be8fff",
|
|
14833
14833
|
"$type": "color",
|
|
14834
14834
|
"$extensions": {
|
|
14835
14835
|
"org.primer.figma": {
|
|
@@ -12361,7 +12361,7 @@
|
|
|
12361
12361
|
"path": ["fgColor", "closed", "@"]
|
|
12362
12362
|
},
|
|
12363
12363
|
"fgColor-done": {
|
|
12364
|
-
"value": "#
|
|
12364
|
+
"value": "#ab7df8",
|
|
12365
12365
|
"$type": "color",
|
|
12366
12366
|
"$extensions": {
|
|
12367
12367
|
"org.primer.figma": {
|
|
@@ -12396,7 +12396,7 @@
|
|
|
12396
12396
|
"path": ["fgColor", "done", "@"]
|
|
12397
12397
|
},
|
|
12398
12398
|
"fgColor-upsell": {
|
|
12399
|
-
"value": "#
|
|
12399
|
+
"value": "#ab7df8",
|
|
12400
12400
|
"$type": "color",
|
|
12401
12401
|
"$extensions": {
|
|
12402
12402
|
"org.primer.figma": {
|
|
@@ -13323,7 +13323,7 @@
|
|
|
13323
13323
|
"path": ["bgColor", "closed", "emphasis"]
|
|
13324
13324
|
},
|
|
13325
13325
|
"bgColor-done-muted": {
|
|
13326
|
-
"value": "#
|
|
13326
|
+
"value": "#ab7df826",
|
|
13327
13327
|
"$type": "color",
|
|
13328
13328
|
"$extensions": {
|
|
13329
13329
|
"org.primer.figma": {
|
|
@@ -13395,7 +13395,7 @@
|
|
|
13395
13395
|
"path": ["bgColor", "done", "emphasis"]
|
|
13396
13396
|
},
|
|
13397
13397
|
"bgColor-upsell-muted": {
|
|
13398
|
-
"value": "#
|
|
13398
|
+
"value": "#ab7df826",
|
|
13399
13399
|
"$type": "color",
|
|
13400
13400
|
"$extensions": {
|
|
13401
13401
|
"org.primer.figma": {
|
|
@@ -14260,7 +14260,7 @@
|
|
|
14260
14260
|
"path": ["borderColor", "closed", "emphasis"]
|
|
14261
14261
|
},
|
|
14262
14262
|
"borderColor-done-muted": {
|
|
14263
|
-
"value": "#
|
|
14263
|
+
"value": "#ab7df866",
|
|
14264
14264
|
"$type": "color",
|
|
14265
14265
|
"$extensions": {
|
|
14266
14266
|
"org.primer.figma": {
|
|
@@ -14332,7 +14332,7 @@
|
|
|
14332
14332
|
"path": ["borderColor", "done", "emphasis"]
|
|
14333
14333
|
},
|
|
14334
14334
|
"borderColor-upsell-muted": {
|
|
14335
|
-
"value": "#
|
|
14335
|
+
"value": "#ab7df866",
|
|
14336
14336
|
"$type": "color",
|
|
14337
14337
|
"$extensions": {
|
|
14338
14338
|
"org.primer.figma": {
|
|
@@ -14827,7 +14827,7 @@
|
|
|
14827
14827
|
"path": ["color", "ansi", "blue-bright"]
|
|
14828
14828
|
},
|
|
14829
14829
|
"color-ansi-magenta": {
|
|
14830
|
-
"value": "#
|
|
14830
|
+
"value": "#be8fff",
|
|
14831
14831
|
"$type": "color",
|
|
14832
14832
|
"$extensions": {
|
|
14833
14833
|
"org.primer.figma": {
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"path": ["fontStack", "monospace"]
|
|
40
40
|
},
|
|
41
41
|
"text-display-lineBoxHeight": {
|
|
42
|
-
"value": "3.5rem",
|
|
42
|
+
"value": ["3.5rem", "56px"],
|
|
43
43
|
"$type": "dimension",
|
|
44
44
|
"filePath": "src/tokens/functional/typography/typography.json",
|
|
45
45
|
"isSource": true,
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"path": ["text", "display", "lineBoxHeight"]
|
|
53
53
|
},
|
|
54
54
|
"text-display-size": {
|
|
55
|
-
"value": "2.5rem",
|
|
55
|
+
"value": ["2.5rem", "40px"],
|
|
56
56
|
"$type": "dimension",
|
|
57
57
|
"filePath": "src/tokens/functional/typography/typography.json",
|
|
58
58
|
"isSource": true,
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
"path": ["text", "display", "weight"]
|
|
92
92
|
},
|
|
93
93
|
"text-display-shorthand": {
|
|
94
|
-
"value": "500 2.5rem/1.4 -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'",
|
|
94
|
+
"value": "500 2.5rem,40px/1.4 -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'",
|
|
95
95
|
"$type": "typography",
|
|
96
96
|
"comment": "Hero-style text for brand to product transition pages. Utilize Title (large) styles on narrow viewports.",
|
|
97
97
|
"filePath": "src/tokens/functional/typography/typography.json",
|
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
"path": ["text", "display", "shorthand"]
|
|
112
112
|
},
|
|
113
113
|
"text-title-size-large": {
|
|
114
|
-
"value": "2rem",
|
|
114
|
+
"value": ["2rem", "32px"],
|
|
115
115
|
"$type": "dimension",
|
|
116
116
|
"filePath": "src/tokens/functional/typography/typography.json",
|
|
117
117
|
"isSource": true,
|
|
@@ -124,7 +124,7 @@
|
|
|
124
124
|
"path": ["text", "title", "size", "large"]
|
|
125
125
|
},
|
|
126
126
|
"text-title-size-medium": {
|
|
127
|
-
"value": "1.25rem",
|
|
127
|
+
"value": ["1.25rem", "20px"],
|
|
128
128
|
"$type": "dimension",
|
|
129
129
|
"filePath": "src/tokens/functional/typography/typography.json",
|
|
130
130
|
"isSource": true,
|
|
@@ -137,7 +137,7 @@
|
|
|
137
137
|
"path": ["text", "title", "size", "medium"]
|
|
138
138
|
},
|
|
139
139
|
"text-title-size-small": {
|
|
140
|
-
"value": "1rem",
|
|
140
|
+
"value": ["1rem", "16px"],
|
|
141
141
|
"$type": "dimension",
|
|
142
142
|
"filePath": "src/tokens/functional/typography/typography.json",
|
|
143
143
|
"isSource": true,
|
|
@@ -228,7 +228,7 @@
|
|
|
228
228
|
"path": ["text", "title", "weight", "small"]
|
|
229
229
|
},
|
|
230
230
|
"text-title-shorthand-large": {
|
|
231
|
-
"value": "600 2rem/1.5 -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'",
|
|
231
|
+
"value": "600 2rem,32px/1.5 -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'",
|
|
232
232
|
"$type": "typography",
|
|
233
233
|
"comment": "Page headings for user-created objects, such as issues or pull requests. Utilize title (medium) styles on narrow viewports.",
|
|
234
234
|
"filePath": "src/tokens/functional/typography/typography.json",
|
|
@@ -248,7 +248,7 @@
|
|
|
248
248
|
"path": ["text", "title", "shorthand", "large"]
|
|
249
249
|
},
|
|
250
250
|
"text-title-shorthand-medium": {
|
|
251
|
-
"value": "600 1.25rem/1.6 -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'",
|
|
251
|
+
"value": "600 1.25rem,20px/1.6 -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'",
|
|
252
252
|
"$type": "typography",
|
|
253
253
|
"comment": "Default page title. The 32px-equivalent line-height matches with button and other medium control heights. Great for page header composition.",
|
|
254
254
|
"filePath": "src/tokens/functional/typography/typography.json",
|
|
@@ -268,7 +268,7 @@
|
|
|
268
268
|
"path": ["text", "title", "shorthand", "medium"]
|
|
269
269
|
},
|
|
270
270
|
"text-title-shorthand-small": {
|
|
271
|
-
"value": "600 1rem/1.5 -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'",
|
|
271
|
+
"value": "600 1rem,16px/1.5 -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'",
|
|
272
272
|
"$type": "typography",
|
|
273
273
|
"comment": "Uses the same size as body (large) with a heavier weight of semibold (600).",
|
|
274
274
|
"filePath": "src/tokens/functional/typography/typography.json",
|
|
@@ -288,7 +288,7 @@
|
|
|
288
288
|
"path": ["text", "title", "shorthand", "small"]
|
|
289
289
|
},
|
|
290
290
|
"text-subtitle-size": {
|
|
291
|
-
"value": "1.25rem",
|
|
291
|
+
"value": ["1.25rem", "20px"],
|
|
292
292
|
"$type": "dimension",
|
|
293
293
|
"filePath": "src/tokens/functional/typography/typography.json",
|
|
294
294
|
"isSource": true,
|
|
@@ -327,7 +327,7 @@
|
|
|
327
327
|
"path": ["text", "subtitle", "weight"]
|
|
328
328
|
},
|
|
329
329
|
"text-subtitle-shorthand": {
|
|
330
|
-
"value": "400 1.25rem/1.6 -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'",
|
|
330
|
+
"value": "400 1.25rem,20px/1.6 -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'",
|
|
331
331
|
"$type": "typography",
|
|
332
332
|
"comment": "Page sections/sub headings, or less important object names in page titles (automated action titles, for example). Same line-height as title (medium).",
|
|
333
333
|
"filePath": "src/tokens/functional/typography/typography.json",
|
|
@@ -347,7 +347,7 @@
|
|
|
347
347
|
"path": ["text", "subtitle", "shorthand"]
|
|
348
348
|
},
|
|
349
349
|
"text-body-size-large": {
|
|
350
|
-
"value": "1rem",
|
|
350
|
+
"value": ["1rem", "16px"],
|
|
351
351
|
"$type": "dimension",
|
|
352
352
|
"filePath": "src/tokens/functional/typography/typography.json",
|
|
353
353
|
"isSource": true,
|
|
@@ -360,7 +360,7 @@
|
|
|
360
360
|
"path": ["text", "body", "size", "large"]
|
|
361
361
|
},
|
|
362
362
|
"text-body-size-medium": {
|
|
363
|
-
"value": "0.875rem",
|
|
363
|
+
"value": ["0.875rem", "14px"],
|
|
364
364
|
"$type": "dimension",
|
|
365
365
|
"filePath": "src/tokens/functional/typography/typography.json",
|
|
366
366
|
"isSource": true,
|
|
@@ -373,7 +373,7 @@
|
|
|
373
373
|
"path": ["text", "body", "size", "medium"]
|
|
374
374
|
},
|
|
375
375
|
"text-body-size-small": {
|
|
376
|
-
"value": "0.75rem",
|
|
376
|
+
"value": ["0.75rem", "12px"],
|
|
377
377
|
"$type": "dimension",
|
|
378
378
|
"filePath": "src/tokens/functional/typography/typography.json",
|
|
379
379
|
"isSource": true,
|
|
@@ -438,7 +438,7 @@
|
|
|
438
438
|
"path": ["text", "body", "weight"]
|
|
439
439
|
},
|
|
440
440
|
"text-body-shorthand-large": {
|
|
441
|
-
"value": "400 1rem/1.5 -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'",
|
|
441
|
+
"value": "400 1rem,16px/1.5 -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'",
|
|
442
442
|
"$type": "typography",
|
|
443
443
|
"comment": "User-generated content, markdown rendering.",
|
|
444
444
|
"filePath": "src/tokens/functional/typography/typography.json",
|
|
@@ -458,7 +458,7 @@
|
|
|
458
458
|
"path": ["text", "body", "shorthand", "large"]
|
|
459
459
|
},
|
|
460
460
|
"text-body-shorthand-medium": {
|
|
461
|
-
"value": "400 0.875rem/1.4285 -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'",
|
|
461
|
+
"value": "400 0.875rem,14px/1.4285 -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'",
|
|
462
462
|
"$type": "typography",
|
|
463
463
|
"comment": "Default UI font. Most commonly used for body text.",
|
|
464
464
|
"filePath": "src/tokens/functional/typography/typography.json",
|
|
@@ -478,7 +478,7 @@
|
|
|
478
478
|
"path": ["text", "body", "shorthand", "medium"]
|
|
479
479
|
},
|
|
480
480
|
"text-body-shorthand-small": {
|
|
481
|
-
"value": "400 0.75rem/1.6666 -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'",
|
|
481
|
+
"value": "400 0.75rem,12px/1.6666 -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'",
|
|
482
482
|
"$type": "typography",
|
|
483
483
|
"comment": "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.",
|
|
484
484
|
"filePath": "src/tokens/functional/typography/typography.json",
|
|
@@ -498,7 +498,7 @@
|
|
|
498
498
|
"path": ["text", "body", "shorthand", "small"]
|
|
499
499
|
},
|
|
500
500
|
"text-caption-size": {
|
|
501
|
-
"value": "0.75rem",
|
|
501
|
+
"value": ["0.75rem", "12px"],
|
|
502
502
|
"$type": "dimension",
|
|
503
503
|
"filePath": "src/tokens/functional/typography/typography.json",
|
|
504
504
|
"isSource": true,
|
|
@@ -537,7 +537,7 @@
|
|
|
537
537
|
"path": ["text", "caption", "weight"]
|
|
538
538
|
},
|
|
539
539
|
"text-caption-shorthand": {
|
|
540
|
-
"value": "400 0.75rem/1.3333 -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'",
|
|
540
|
+
"value": "400 0.75rem,12px/1.3333 -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'",
|
|
541
541
|
"$type": "typography",
|
|
542
542
|
"comment": "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.",
|
|
543
543
|
"filePath": "src/tokens/functional/typography/typography.json",
|
|
@@ -557,7 +557,7 @@
|
|
|
557
557
|
"path": ["text", "caption", "shorthand"]
|
|
558
558
|
},
|
|
559
559
|
"text-codeBlock-size": {
|
|
560
|
-
"value": "0.8125rem",
|
|
560
|
+
"value": ["0.8125rem", "13px"],
|
|
561
561
|
"$type": "dimension",
|
|
562
562
|
"filePath": "src/tokens/functional/typography/typography.json",
|
|
563
563
|
"isSource": true,
|
|
@@ -596,7 +596,7 @@
|
|
|
596
596
|
"path": ["text", "codeBlock", "weight"]
|
|
597
597
|
},
|
|
598
598
|
"text-codeBlock-shorthand": {
|
|
599
|
-
"value": "400 0.8125rem/1.5385 ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace",
|
|
599
|
+
"value": "400 0.8125rem,13px/1.5385 ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace",
|
|
600
600
|
"$type": "typography",
|
|
601
601
|
"comment": "Default style for rendering code blocks.",
|
|
602
602
|
"filePath": "src/tokens/functional/typography/typography.json",
|
|
@@ -616,7 +616,7 @@
|
|
|
616
616
|
"path": ["text", "codeBlock", "shorthand"]
|
|
617
617
|
},
|
|
618
618
|
"text-codeInline-size": {
|
|
619
|
-
"value": "0.9285em",
|
|
619
|
+
"value": ["0.9285em", "14.856px"],
|
|
620
620
|
"$type": "dimension",
|
|
621
621
|
"filePath": "src/tokens/functional/typography/typography.json",
|
|
622
622
|
"isSource": true,
|
|
@@ -642,7 +642,7 @@
|
|
|
642
642
|
"path": ["text", "codeInline", "weight"]
|
|
643
643
|
},
|
|
644
644
|
"text-codeInline-shorthand": {
|
|
645
|
-
"value": "400 0.9285em ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace",
|
|
645
|
+
"value": "400 0.9285em,14.856px ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace",
|
|
646
646
|
"$type": "typography",
|
|
647
647
|
"comment": "Inline code blocks using em units to inherit size from its parent.",
|
|
648
648
|
"filePath": "src/tokens/functional/typography/typography.json",
|
package/package.json
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@primer/primitives",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.17.0-rc.132f02a7",
|
|
4
4
|
"description": "Typography, spacing, and color primitives for Primer design system",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
7
7
|
"tokens-v2-private",
|
|
8
|
-
"tokens-next-private",
|
|
9
8
|
"build.js",
|
|
10
|
-
"tokens/"
|
|
9
|
+
"tokens/",
|
|
10
|
+
"src/**/*",
|
|
11
|
+
"!src/**/*.test.ts"
|
|
11
12
|
],
|
|
12
13
|
"main": "dist/js/index.js",
|
|
13
14
|
"types": "dist/js/index.d.ts",
|
|
@@ -44,7 +45,7 @@
|
|
|
44
45
|
"lint:tokens": "ts-node ./scripts/validateTokenJson.ts",
|
|
45
46
|
"prebuild": "rm -rf dist",
|
|
46
47
|
"prebuild:tokens": "rm -rf tokens-v2-private",
|
|
47
|
-
"prebuild:next": "rm -rf
|
|
48
|
+
"prebuild:next": "rm -rf dist",
|
|
48
49
|
"prepack": "npm run build && npm run build:tokens && npm run build:next",
|
|
49
50
|
"prepare": "husky",
|
|
50
51
|
"release": "changeset publish",
|
|
@@ -54,11 +55,11 @@
|
|
|
54
55
|
},
|
|
55
56
|
"prettier": "@github/prettier-config",
|
|
56
57
|
"devDependencies": {
|
|
57
|
-
"@actions/github": "^
|
|
58
|
-
"@changesets/changelog-github": "^0.
|
|
59
|
-
"@changesets/cli": "^2.
|
|
58
|
+
"@actions/github": "^6.0.0",
|
|
59
|
+
"@changesets/changelog-github": "^0.5.0",
|
|
60
|
+
"@changesets/cli": "^2.27.1",
|
|
60
61
|
"@github/prettier-config": "^0.0.6",
|
|
61
|
-
"@playwright/test": "^1.
|
|
62
|
+
"@playwright/test": "^1.43.0",
|
|
62
63
|
"@types/flat": "^5.0.1",
|
|
63
64
|
"@types/jest": "^29.5.2",
|
|
64
65
|
"@types/lodash": "^4.14.195",
|
|
@@ -89,9 +90,9 @@
|
|
|
89
90
|
"mkdirp": "^3.0.1",
|
|
90
91
|
"prettier": "^2.7.1",
|
|
91
92
|
"style-dictionary": "^3.9.2",
|
|
92
|
-
"ts-jest": "^29.1.
|
|
93
|
-
"ts-node": "^10.9.
|
|
94
|
-
"typescript": "^5.4.
|
|
93
|
+
"ts-jest": "^29.1.2",
|
|
94
|
+
"ts-node": "^10.9.2",
|
|
95
|
+
"typescript": "^5.4.5",
|
|
95
96
|
"zod": "^3.22.4",
|
|
96
97
|
"zod-validation-error": "^3.1.0"
|
|
97
98
|
}
|