Skip to main content
Context GrammarDesign for context-aware AI

Design system catalogue

Motion

Durations, curves and what reduced motion does. Each is named as a token and read from the token file, never typed in by hand.

Duration

01

Quick — a line draws

A line that draws itself
Trigger
Hover
Duration
--dur-quick 160ms
Easing
--ease-out cubic-bezier(0.16, 1, 0.3, 1)
Reduced motion
The underline appears at once; nothing is drawn.

Long enough to see a line being drawn, short enough that it never holds you up. Links pair it with --ease-out: a fast start and a soft landing.

Tokens

02

Duration and easing tokens

Motion tokens
--dur-instant100ms
--dur-quick160ms
--dur-base240ms
--dur-move380ms
--dur-stage560ms
--ease-outcubic-bezier(0.16, 1, 0.3, 1)
--ease-incubic-bezier(0.55, 0, 1, 0.45)
--ease-in-outcubic-bezier(0.65, 0, 0.35, 1)
--springcubic-bezier(0.34, 1.56, 0.64, 1)

Five durations and four curves, mirrored from the stylesheet into lib/design/tokens.ts and kept in step by a test. New motion names a token instead of writing a number.