335c4n0r

styledictionary/4/updated-and-removed-transforms

No description available

styledictionary4migration
Public
164 executions

Run locally

npx codemod styledictionary/4/updated-and-removed-transforms

What Changed

This codemod updates several transforms:

  • Built-in name transforms now depend solely on the token path and have been renamed from name/cti/casing to name/casing. Transforms like name/cti/kebab are now name/kebab, and name/ti/camel and name/ti/constant have been removed.

  • The content/icon transform has been renamed to html/icon to reflect its focus on HTML entity strings.

  • font/objC/literal, font/swift/literal, and font/flutter/literal have been replaced with content/objC/literal, content/swift/literal, and content/flutter/literal, as they perform the same transformations.

Before

jsx

After

jsx

Ready to contribute?

Build your own codemod and share it with the community.