In JS/TS files, 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
Before
ts
After
ts
Explore community-led codemods to migrate, optimize, and transform your codebase.
Build your own codemod and share it with the community.
The easiest way to run this codemod without installing anything globally:
In JS/TS files, 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
ts
ts
Build your own codemod and share it with the community.