Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Architects, names, formats, and exports design tokens using W3C DTCG and Style Dictionary v4.
81% 100%+19 ptsof test cases passed
Passed 21 of 21 test cases with the skill, and 17 of 21 without it.
Write a configuration file for converting our DTCG JSON tokens into CSS custom properties, TypeScript exports, Swift assets, and Android XML using the latest v4 engine standard.
The source array matches DTCG JSON files from the repository.
3 of 3 safety checks passed
Design tokens are named, structured key–value pairs that store every visual decision in a design system — color, spacing, type, radius, motion — as data instead of hardcoded literals. One token (color.bg.default) is authored once and consumed everywhere: Figma, CSS, iOS, Android, Tailwind. Change the value, every surface updates. Tokens turn "the brand blue" from a number scattered across 400 files into one row that design and engineering both point at.
#2563EB typed by hand in a component.Tokens flow in one direction. Components reference semantic. Semantic references primitive. Primitive references nothing. Never let a component reach past semantic into a raw primitive.
| Tier | AKA | Holds | Example | Themeable? |
|---|---|---|---|---|
| 1 — Primitive | global, base, core, option | Raw, context-free values | color.blue.500 = #2563EB, dimension.4 = 16px | No — fixed palette |
| 2 — Semantic | alias, decision, system | Intent, references a primitive | color.bg.default → {color.gray.50} | Yes — modes flip here |
| 3 — Component | scoped | Component-specific, references semantic | button.primary.bg → {color.action.default} | Inherits from semantic |
┌─────────────┐ ┌──────────────────┐ ┌──────────────────┐
│ PRIMITIVE │ ◄── │ SEMANTIC │ ◄── │ COMPONENT │
│ blue.500 │ │ color.action.def │ │ button.primary.bg │
│ #2563EB │ │ {color.blue.500} │ │ {color.action.def}│
└─────────────┘ └──────────────────┘ └──────────────────┘
raw value intent / role local override
When to add each tier:
color.bg.default. Themes are impossible without this tier — it is not optional polish.button.*). Don't create a component token for every CSS property — most components should consume semantic tokens directly. Apply the rule of 3: don't mint a component token until the override repeats.The aliasing rule, stated plainly: a component should never know that the brand color is blue. It knows color.action.default. The semantic layer is the only layer that maps intent→primitive, so it is the only layer a theme has to override.
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.