The Pen Tool, Demystified

Every design app's pen tool — Figma, Illustrator, Paper — draws cubic Bezier curves. Four points, one polynomial, infinite curves. Drag the coral handles in 3D, scrub the parameter t, and watch the construction that Pierre Bezier gave Renault's car designers in the 1960s.

drag handles to reshape · drag empty space to orbit · scroll to zoom
P0 —

Curve Controls

B(t) = (1−t)³P₀ + 3(1−t)²tP₁ + 3(1−t)t²P₂ + t³P₃ weights —

Design Tokens — restyle this page live

Switching a token set updates CSS variables (--accent, --handle, --radius, --space) everywhere at once — including the 3D curve colors. That is the whole idea of tokens.

How the pen tool computes a curve

Design tokens in one minute

A design token is a named design decision: instead of hard-coding #2563eb in 40 places, you define color.accent once and reference it. Token categories:

color.accentprimary actions, links
color.handlesecondary / warning accents
radius.md12px — corner rounding scale
space.base16px — spacing rhythm unit
type.scale1.0 — modular font sizing

Tokens live in one source of truth (JSON, Figma variables) and compile to CSS variables, iOS/Android constants, etc. Rebrand = change the token file, ship everywhere. The switcher above does exactly this to the page you are reading.

Enjoy this tool? Build your own with Super