Color Token To Hex Object Preset

/icons/calendar.svg

Last update

May 17, 2024

A preset of two codemods, one for JSON transformations and one for JS/TS.

For tokens of the type 'color' (not other tokens), transform $value into an object with a 'hex' key, where the value remains the same as the previous $value

Build custom codemods

Use AI-powered codemod studio and automate undifferentiated tasks for yourself, colleagues or the community

background illustrationGet Started Now