Construction
Circles, tangents and axes first, the way you'd set out a drawing by hand. They stay visible.
56 animated figures for product sites. Each keeps its construction in view and measures itself as it moves. React or plain DOM, no dependencies.
Every speed and ratio is the real one.
Scroll to take one apart.
Circles, tangents and axes first, the way you'd set out a drawing by hand. They stay visible.
Then the shape, in one ink. At rest it's a finished icon.
Then the dimensions. Every number is read off the line it labels, and the inspector snaps to it.
On hover, one idea. The lock opens and its height re-measures from 152 to 174.
Ø160 reads 160 only while the dial is 160 across.
Let it play, or hand the timeline to the pointer. Try it here.
Both inks ship. This one always shows the other.
Hover to play. Copy a component from its corner.
Import one figure or all of them.
npm i underdraw import { Lock } from 'underdraw/react' export function Security() { return <Lock scrub /> }
import { lock } from 'underdraw' const figure = lock(document.querySelector('#lock'), { play: true }) figure.update({ theme: 'dark' }) figure.destroy()
<div id="gear"></div> <script src="https://cdn.jsdelivr.net/npm/underdraw/dist/underdraw.iife.js"></script> <script> Underdraw.gear(document.getElementById('gear'), { play: true }) </script>
playRuns the gesture on its own while on screen.scrubHands the gesture to the pointer, left to right.themeauto, light or dark.captionThe title block with the live readout.inspectThe crosshair that snaps to points and radii.onReadThe readout as it changes: "gap 18".A figure is one function that returns its geometry. The engine draws the rest. The logotype above is one.
import { mount } from 'underdraw' import { rr, circ } from 'underdraw/geometry' const toggle = { id: 'switch', name: 'Switch', kind: 'icon', width: 320, height: 320, // ek goes 0 → 1 on hover make: ({ ek }) => { const x = 112 + 96 * ek return { name: 'Switch', size: ek > .5 ? 'on' : 'off', fills: [rr(80, 128, 160, 64, 32)], holes: [circ([x, 160], 24)], circles: [{ c: [112, 160], r: 32, n: 'End', s: 'dash' }, { c: [208, 160], r: 32, n: 'End', s: 'dash' }], lines: [{ a: [64, 160], b: [256, 160], s: 'axis' }], // the engine prints the real travel over '96' dims: [{ t: 'h', x1: 112, x2: x, y: 226, label: ek > .1 ? '96' : '' }, { t: 'h', x1: 80, x2: 240, y: 104, label: '160' }], points: [{ p: [x, 160], n: 'Knob' }], } }, } mount(document.querySelector('#switch'), toggle)
you writeSolids, holes, construction, dimensions, named points.it drawsLayers, measured labels, inspector, themes, pointer.Describe an idea. The skill draws it to the same rules and runs the same audit.
Construction lines and dimensions are how devtools explain themselves. Nobody had made product figures in that language, so every figure starts as a construction on a 320 grid.
At rest every figure is a complete icon you could ship as is. The gesture adds one idea and never repairs the rest state.
Labels are templates the engine fills with what it measures. An audit checks that every dimension sits on real geometry; the polish pass fixed 83 places where it didn't.
The heroes are real mechanisms. Each gear's rpm comes from its tooth count, and the planetary set turns at 4:1 because its ring has 36 teeth to the sun's 12.
I'm a product designer. The sites I keep going back to are devtools: Modal, Linear, Vercel, GitHub. They explain the product with drawings that are exact, with real numbers and nothing added for looks.
Most teams can't commission that for every feature, empty state and pricing page, so I drew a set anyone can use.