Style Dictionary natively supports JSON and W3C .tokens formats for design tokens, but can also consume YAML, JSON5, and HJSON through custom parsers. Each format offers different tradeoffs: JSON provides universal compatibility, YAML improves human readability with indentation-based syntax, JSON5 adds comments and trailing commas, HJSON simplifies punctuation requirements, and .tokens follows W3C specifications for future-proofing. Custom parsers require installing the relevant library and configuring the parser in Style Dictionary's config file. Multiple formats can be used simultaneously as sources, all compiling to a single output format like CSS custom properties.
Sort: