Styledictionary/4/Updated And Removed Transforms
Last update
Sep 18, 2024
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/casingtoname/casing. Transforms likename/cti/kebabare nowname/kebab, andname/ti/camelandname/ti/constanthave been removed. -
The
content/icontransform has been renamed tohtml/iconto reflect its focus on HTML entity strings. -
font/objC/literal,font/swift/literal, andfont/flutter/literalhave been replaced withcontent/objC/literal,content/swift/literal, andcontent/flutter/literal, as they perform the same transformations.
Before
{"source": ["tokens.json"],"platforms": {"css": {"transforms": ["name/cti/camel","name/cti/kebab","name/cti/snake","name/cti/human","name/cti/human","font/objC/literal","font/swift/literal","font/flutter/literal"]}}}
After
{"source": ["tokens.json"],"platforms": {"css": {"transforms": ["name/camel","name/kebab","name/snake","name/human","name/human"]}}}
Build custom codemods
Use AI-powered codemod studio and automate undifferentiated tasks for yourself, colleagues or the community