Tools
Motion Token Generator
Motion is the part of a design system that rarely survives as data: durations and easing curves live in CSS shorthand or in a designer's head. This generator writes them asDTCG tokens — duration, cubicBezier and transition — and then checks the result against the format's own constraints. It encodes your scale, not a vendor's. Everything runs in your browser.
1. Scale and easing
Pick a starting point. The Carbon presets use IBM's published easing curves and six static duration tokens; the custom option lets you type your own curve and base step.
Productive runs faster; expressive is for occasional, important moments.
Carbon's smallest static token is 70ms (button, toggle).
Each step multiplies the previous one. Carbon calls its own scale non-linear.
Material closes a drawer in 200ms after opening it in 250ms (0.8).
x values must stay inside 0–1; y may go outside it (that is how overshoot is expressed).
2. Preview
Each duration step moves a bar with the selected curve. If your system reportsprefers-reduced-motion: reduce, the preview collapses to an instant state change — the same branch the exported CSS writes.
3. Spec check
These are the constraints the format actually states, plus three conventions that are ours. The conventions are labelled — treat them as house rules, not spec requirements.
4. DTCG tokens
5. CSS custom properties
The reduced-motion block is emitted as --duration-*: 0ms rather than deleted, so component styles keep working.
How computed
Duration steps are round(base × ration) for n = 0…5, emitted as{ value, unit: "ms" }. Two transition tokens are written from the scale's first and last step; the exit duration is round(entrance × exitRatio). Easing is stored as a four-number cubicBezier array, never as a keyword, because a keyword does not survive a round trip between tools. The checker validates units, curve shape, transition completeness and ordering; the reduced-motion pairing and the 700ms ceiling are house conventions, marked as such.
Method and constraints are documented inMotion Tokens: Making Duration and Easing Machine-Readable. Spec sources: DTCG format draft,Carbon motion,Material 2 speed.