Style Dictionary is a build system that transforms design token JSON into platform-specific outputs. designtoken.md is the machine-readable standard that gives coding agents rich design context — and its generator outputs DTCG-compliant JSON, CSS variables, and more. One is a build step. The other is a superset that includes that step.
Style Dictionary takes design token JSON files and transforms them into platform-specific outputs: CSS variables, iOS Swift constants, Android XML resources. It's a build-time tool — it runs in your CI pipeline, reads a token source, and outputs formatted files. Created by Amazon, now the industry standard maintained by the open-source community. Uses the W3C DTCG format as input.
A designtoken.md standardizes design context as structured markdown — the format coding agents read natively. But the generator also outputs DTCG-compliant JSON, CSS variables, Tailwind config, and other formats. It's a superset: full color scales, typography hierarchies, spacing systems, and component tokens in a machine-readable file that sits in your project root. The markdown is the standard. The outputs cover every format Style Dictionary consumes.
A detailed comparison of what each tool covers.
| Feature | Style Dictionary | designtoken.md |
|---|---|---|
| Format | JSON (DTCG spec) | Structured Markdown + DTCG JSON, CSS, Tailwind outputs |
| When it runs | Build time (CI/CD) | Generation time (agent reads it) |
| Output | CSS vars, iOS, Android, etc. | Agent-generated UI code + DTCG JSON, CSS vars, Tailwind |
| Requires | Node.js, build pipeline | Nothing — just a file |
| Audience | Engineers maintaining design systems | Anyone using coding agents |
| Token depth | Flat key-value pairs | Full scales, hierarchies, component states |
| Brand context | Token values only | Values + relationships + intent |
| Setup complexity | Config files, transforms, formats | Drop file in project root |
Both tools have a place. Here's how to choose.
Or just use designtoken.md: The generator already outputs DTCG-compliant JSON, CSS variables, and Tailwind config — the same formats Style Dictionary produces. If you're starting fresh, designtoken.md gives you the machine-readable markdown standard for agents plus all the compiled outputs, without a separate build step.