3

styledictionary/4/updated-and-removed-transforms

How to Use
Run this codemod on your codebase using one of the following commands

The easiest way to run this codemod without installing anything globally:

Documentation

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.