diff --git a/.changeset/eight-jars-shop.md b/.changeset/eight-jars-shop.md new file mode 100644 index 000000000..3157dc482 --- /dev/null +++ b/.changeset/eight-jars-shop.md @@ -0,0 +1,5 @@ +--- +'@primer/primitives': patch +--- + +Add cubicBezier transform to platform diff --git a/src/PrimerStyleDictionary.ts b/src/PrimerStyleDictionary.ts index 0a096f17b..78f5a789b 100644 --- a/src/PrimerStyleDictionary.ts +++ b/src/PrimerStyleDictionary.ts @@ -5,6 +5,7 @@ import { colorToHex, colorToHexMix, colorToRgbaFloat, + cubicBezierToCss, dimensionToRem, dimensionToPixelUnitless, durationToCss, @@ -114,6 +115,10 @@ PrimerStyleDictionary.registerTransform({ ...colorToHex, }) +PrimerStyleDictionary.registerTransform({ + ...cubicBezierToCss, +}) + PrimerStyleDictionary.registerTransform({ ...floatToPixel, }) diff --git a/src/platforms/css.ts b/src/platforms/css.ts index b23619048..3149ad11b 100644 --- a/src/platforms/css.ts +++ b/src/platforms/css.ts @@ -28,6 +28,7 @@ export const css: PlatformInitializer = (outputFile, prefix, buildPath, options) 'name/pathToKebabCase', 'color/hex', 'color/hexMix', + 'cubicBezier/css', 'dimension/rem', 'duration/css', 'shadow/css', diff --git a/src/transformers/index.ts b/src/transformers/index.ts index 41e046383..9225abddf 100644 --- a/src/transformers/index.ts +++ b/src/transformers/index.ts @@ -3,6 +3,7 @@ export {colorToHex} from './colorToHex.js' export {colorToHexMix} from './colorToHexMix.js' export {colorToRgbAlpha} from './colorToRgbAlpha.js' export {colorToRgbaFloat} from './colorToRgbaFloat.js' +export {cubicBezierToCss} from './cubicBezierToCss.js' export {floatToPixel} from './floatToPixel.js' export {floatToPixelUnitless} from './floatToPixel.js' export {dimensionToRem} from './dimensionToRem.js'