Figures
Beautifully generated line drawings that include interactivity, motion, and colors.
Work in progress
Hairline figures are still being worked out. They appear on this site only and aren't used anywhere in the product yet.
- A page, an empty state or a post needs one picture that makes its idea physical, and answers the pointer.
- Not for data (draw a chart) and not for a control's meaning (use an icon).
The short version
If you read nothing else on this page, read these.
The Fern take
Hairline by Lucas Marques draws the line: one isometric object, one hairline stroke, answering the pointer. Fern adds four things on top, the same here and on the blog.
- 01It grows from the groundA figure stands on something, never in a void. On the blog that's a garden of grass, fern fronds, daisies and clover swaying in the site's wind; here it's the plate every figure sits on. The garden is shared, never copied into a figure.
- 02Green is the payoffNothing is green at rest and nothing is green for decoration. One place turns green per loop, at the moment the idea works, and the green spreads out from where it happens. Everywhere else stays in hairline grays.
- 03It plays when nobody pointsMost people scroll past, so a figure that leads a page runs its own story on a loop (
play). The pointer takes over the moment it arrives, and the loop picks up again once it leaves. Under reduced motion the figure rests. - 04Color comes from tokensA figure sets no color, fill or stroke width of its own. It draws with Hairline's roles, and the system maps each role to a semantic token, so a figure follows the theme of whatever it sits on.
Tokens
A figure draws with six roles. DesignSystemFigure binds each to a semantic token, so figures follow light and dark with the rest of the page.
- --hairline-plate--sidebarThe fill of every plate: the surface the figure sits on. Pass
platewhen it sits on another. - --hairline-hi--primaryWhat's lit. Fern green, for the payoff and nothing else.
- --hairline-edge--foregroundSilhouettes: the outside of every solid.
- --hairline-mid--muted-foregroundEvery other stroke: creases, leaves, links.
- --hairline-lo--borderWhat recedes: grids, guides, far edges.
- --hairline-stroke1Stroke width in CSS pixels, at any size.
Gallery
Every figure on this site, beside the page it introduces. Point at one: it answers. All of them are still in progress, and none are used in the product yet.
- Fern hubFernOverviewThe system as the Fern leaf with every page branching from it, the path to each lighting up in turn.
- TerrainColorColor as a field of tones rising.
- KeyboardTypographyType as keys.
- RiffleIconographyIcons as a tray of cards, one standing up.
- RelayFiguresFigures as a signal passing hop by hop, the way a payoff spreads.
- ExplodedSurfacesSurfaces as an app window in layers.
- TurntableMotionMotion as a spin that eases to rest.
- LoupeAccessibilityAccessibility as a loupe.
- DishDesign languageThe voice as a dish, aimed.
- FormatContentContent as crooked lines snapped square.
- SlowMarketingMarketing as crates riding one belt through one gate: every launch passes the same house style.
- DrawerComponentsThe library as drawers.
- SettlePatternsPatterns as tiles settling into a tree.
- PhosphorAgent markThe agent's dot mark as a dot matrix.
- TerminalFern CLIThe CLI as a terminal scrolling back through its history.
- BranchesBuilding with agentsBuilding with agents as a commit graph.
Using one
Pages get their figure for free. To add one, pick the Hairline figure that says the page's idea, or draw one to the rules below. For a blog post, run /create-blog-figure in the marketing site.
// A page's figure is drawn in its header by DocPage. Anywhere else:<DesignSystemFigure slug="color" /> // Leading a page that most people scroll past: let it play.<DesignSystemFigure slug="overview" play /> // On a card or a surface other than the sidebar: match its plate, and hide it from assistive tech.<DesignSystemFigure slug="components" plate="var(--fern-bg-surface)" decorative play={hovered} />// DesignSystemFigure.tsx: one entry per page, chosen for the idea rather than the object.export const FIGURES: readonly FigureEntry[] = [ // ... { slug: "my-page", name: "Terrain", idea: "My idea as a field rising.", Figure: Terrain },];Rules
Every rule on one list. Open one for the reasoning behind it.
01Hit areas don't move
Test the pointer against the rest pose, never the pose on screen, or the part lifts out from under the pointer and the figure flickers.02The answer spreads by distance
Delay each part by its distance from what the pointer touched, 30 to 60ms a step, so the motion reads as one gesture rather than a queue.03The reach is clamped
Every lift, gap and lean has a far end, and the figure is still composed there. At full intensity nothing leaves the 400 × 320 frame.04The stroke is the only highlight
No fills, glows or shadows: the lit edge changes stroke and nothing else does. One place is bright at a time, and on this site that bright is Fern green, saved for the payoff. The exception is the Color page's figure, whose pillars each light in their own ramp: there, color is the payoff.05Rest is designed
The still frame is the thumbnail. At rest the figure is a composition (a lean, a dune, a slight explode) that already says what it's about, never a flat grid.06Construction stays honest
Plates are opaque and painted back to front, so nothing shows through a solid. Guides and dashed lines go behind the plate they belong to.07Loops sleep offscreen
Only ambient motion runs without input, and only while the figure is on screen. Everything lands at once under reduced motion.08Two clocks
A choice between parts eases out over 700ms; a part that follows the pointer rides a spring. Nothing is linear.09Round every corner, then draw less
A solid is its silhouette and one dim crease. No vertical corner lines, no sharp corners: bright outside, dim inside.10No words in the drawing
Geometry carries identity. Names go in a caption or the page around the figure, never into the drawing.