Parsers
Parsers are functions allowing you to transform design tokens and assets coming from Specify to fit your needs and company standards.
Last updated
Was this helpful?
Parsers are functions allowing you to transform design tokens and assets coming from Specify to fit your needs and company standards.
Last updated
Was this helpful?
Not familiar with parsers? Head over to the existing parsers documentation and learn more about why you need them and how to use them.
You must set a name and your desired output for each parser:
The name
is the name of the parser
The output
property indicates which type of output you want the parser to produce
Parsers support none, some or more output types, please refer to dedicated parser pages for details.
Use case: the parser is expected to produce exactly one file.
Directory
Use case: the parser is expected to produce 0 to N files, all placed in the given directoryPath
.
Example with the to-css-custom-properties
parser:
This parser helps you change the case of names or modes over a SDTF graph.
This parser helps you convert the color formats of color compatible tokens over a SDTF graph.
This parser helps you filter a SDTF graph.
This parser helps you select design tokens from specific mode(s).
This parser helps you transform design tokens in CSS Custom Properties.
This parser helps you get your design tokens as a SDTF graph in JSON.
This parser helps you generate a Tailwind theme from all your design tokens coming from Specify.
This parser helps you pull design tokens as JavaScript objects for all token types and their respective getter functions.
This parser helps you pull design tokens in JSON with token values in JSON or CSS.
This parser helps you pull design tokens as TypeScript objects for all token types and their respective getter functions.
This parser helps you generate raw token files for all your design tokens coming from Specify.