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.

Reach for it when
  • 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.

Do. Save Fern green for the moment the idea works, and let it spread from there.
Don't. Paint the figure green to brand it. Green everywhere marks nothing.

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.

  1. 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.
  2. 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.
  3. 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.
  4. 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 plate when 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.

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 hubFernOverview
    The system as the Fern leaf with every page branching from it, the path to each lighting up in turn.
  • TerrainColor
    Color as a field of tones rising.
  • KeyboardTypography
    Type as keys.
  • Icons as a tray of cards, one standing up.
  • RelayFigures
    Figures as a signal passing hop by hop, the way a payoff spreads.
  • ExplodedSurfaces
    Surfaces as an app window in layers.
  • TurntableMotion
    Motion as a spin that eases to rest.
  • Accessibility as a loupe.
  • The voice as a dish, aimed.
  • FormatContent
    Content as crooked lines snapped square.
  • Marketing as crates riding one belt through one gate: every launch passes the same house style.
  • The library as drawers.
  • SettlePatterns
    Patterns as tiles settling into a tree.
  • PhosphorAgent mark
    The agent's dot mark as a dot matrix.
  • TerminalFern CLI
    The CLI as a terminal scrolling back through its history.
  • Building 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.

Draw a figure
// 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} />
Give a page a figure
// 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.

10 rules
  1. 01Hit areas don't moveTest the pointer against the rest pose, never the pose on screen, or the part lifts out from under the pointer and the figure flickers.
  2. 02The answer spreads by distanceDelay 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.
  3. 03The reach is clampedEvery lift, gap and lean has a far end, and the figure is still composed there. At full intensity nothing leaves the 400 × 320 frame.
  4. 04The stroke is the only highlightNo 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.
  5. 05Rest is designedThe 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.
  6. 06Construction stays honestPlates are opaque and painted back to front, so nothing shows through a solid. Guides and dashed lines go behind the plate they belong to.
  7. 07Loops sleep offscreenOnly ambient motion runs without input, and only while the figure is on screen. Everything lands at once under reduced motion.
  8. 08Two clocksA choice between parts eases out over 700ms; a part that follows the pointer rides a spring. Nothing is linear.
  9. 09Round every corner, then draw lessA solid is its silhouette and one dim crease. No vertical corner lines, no sharp corners: bright outside, dim inside.
  10. 10No words in the drawingGeometry carries identity. Names go in a caption or the page around the figure, never into the drawing.

Keep going

Iconography
A distinctly Fern icon set that was crafted with meticulous care.
Motion
Short, consistent motion that respects reduced motion.
Color
Semantically named colors and a set of ramps for the full palette. Optimized for light and dark.