token formatter

A Style Dictionary step that takes all transformed tokens at once and writes them out as one file in a target language.

In more detail

Where a transform changes single tokens, a formatter shapes the whole collection, for example into a :root block of CSS custom properties, a TypeScript module with a typed constant, a Swift file or an Android XML resource. Style Dictionary ships built-in formats and lets you register your own.

Related terms

Taught in

References