Parsers
Parsers API reference
Utility parsers
Utility parsers help you mutate your token tree before generating final outputs.
Utility parsers do not have the output
option since they mutate the internal state without producing any actual output.
This parser helps you convert the color formats of color compatible tokens over a SDTF graph.
This parser helps you convert units of dimension tokens (spacing, sizing, breakpoint, blur...) and composite tokens sub values (font-size, letter-spacing, border-width...).
This parser helps you transform your text style lineheight values relative to their font size.
This parser helps you register a SDTF view that can be later used by generation parser to allow for partial outputs of the token tree with no destructive mutations.
This parser helps you prefix the name of your collections, groups and tokens from your SDTF token tree.
This parser helps you suffix the name of your collections, groups and tokens from your SDTF token tree.
This parser helps you replace a part or the whole name of your collections, groups and tokens from your SDTF token tree.
Generation parsers
Generation parsers help you generate your token tree into any technology / purposed oriented outputs.
Many generation parsers can be placed in the same parser rule, as long as they all need the same transformed - or not - token tree and they all use the file
or directory
output setting.
This parser helps you transform design tokens in CSS Custom Properties.
This parser helps you create CSS @font-face
rules to import your font files.
This parser helps you generate a Flutter 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 within an iterable array structure.
This parser helps you pull design tokens as a theme compatible with React Native and their respective helper functions.
This parser helps you generate .scss
files for each token type containing SCSS map and function / mixin to access the values of the tokens.
This parser helps you generate Style Dictionary raw token files for all your design tokens coming from Specify.
This parser helps you generate a Tailwind theme from all your design tokens coming from Specify.
This parser helps you pull design tokens as TypeScript objects for all token types and their respective getter functions.
Last updated