token transform

A Style Dictionary step that changes one token at a time, such as converting 16px to 1rem or renaming a token to camelCase.

In more detail

Transforms can change a token's value, its name or its attributes. They run in the order listed for a platform, before any formatter. Custom transforms adapt raw design-tool values to a codebase's conventions.

Related terms

Taught in

References