On-brand design tokens in seconds
A design token set is the single source of truth for the visual decisions in a design system: which blues, which font sizes, which spacing steps. This tool generates a complete, internally consistent set following the W3C Design Tokens (DTCG) format, so you can prototype a system or seed a tokens pipeline without hand-writing JSON.
How it works
Each token group is built from a single integer seed using a small mulberry32 pseudo-random generator, so output is fully reproducible.
- Color ramps are generated in HSL. A base hue comes from the seed; the accent hue is offset by roughly 150 to 210 degrees so the two stay complementary. Each ramp has 10 lightness steps from
100(light) to1000(dark), converted to hex. - Type scale uses a 1.25 modular ratio on a 16px base:
base * 1.25^(i-2). - Spacing and border-radius use a 4px-based scale.
- Shadows emit a structured DTCG shadow object with color, offset, blur, and spread.
Each leaf token is an object such as:
{ "$value": "#2f6fed", "$type": "color" }
Tips and notes
Use the same seed across runs to keep a brand consistent between mockups. The output is a draft DTCG document, so it transforms cleanly with tools like Style Dictionary into CSS variables or platform formats. Always check the rendered ramp for contrast before shipping; the generator aims for harmony, not WCAG guarantees.