Skip to content

Commit

Permalink
Add cubicBezier transform to platform
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasoppermann committed Oct 30, 2024
1 parent a2b1b79 commit 70d0618
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/eight-jars-shop.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@primer/primitives': patch
---

Add cubicBezier transform to platform
5 changes: 5 additions & 0 deletions src/PrimerStyleDictionary.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import {
colorToHex,
colorToHexMix,
colorToRgbaFloat,
cubicBezierToCss,
dimensionToRem,
dimensionToPixelUnitless,
durationToCss,
Expand Down Expand Up @@ -114,6 +115,10 @@ PrimerStyleDictionary.registerTransform({
...colorToHex,
})

PrimerStyleDictionary.registerTransform({
...cubicBezierToCss,
})

PrimerStyleDictionary.registerTransform({
...floatToPixel,
})
Expand Down
1 change: 1 addition & 0 deletions src/platforms/css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
1 change: 1 addition & 0 deletions src/transformers/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 70d0618

Please sign in to comment.