Metapane Docs Request early access

Design system / Foundations

Foundations

Every colour, type size, corner, shadow and motion in Metapane comes from one set of named values, called tokens. Change a token and every screen that uses it changes with it. The live version of this page, with every token and component, is the gallery at /studio/design-system in the app.

Principles

Every screen is checked against these, in this order.

  1. Industry words. Use the names Figma, Adobe and Linear use. Don't coin terms.
  2. Least navigation. Do things in place, in few clicks, without extra screens.
  3. Clutter free. One control per job. Two states of one thing are one switch.
  4. Breathing room. One spacing scale, equal weight for things of equal rank, nothing that appears or moves on hover.
  5. Built around the task. Features follow the user's journey, not the tool's parts.
  6. Belongs to its place. A canvas, a chat and a form each get their own kind of control.
  7. Concise. Keep every meaning in fewer words.
  8. One, two or three sentences. One goes in place. The second is muted and shows on hover or keyboard focus. Three or more go behind an (i) button.

Colour

Colour tokens grouped as surfaces, text and icons, lines and fills, AI, selection and status

Three colours have one job each, and never stand in for each other:

Ink
The one accent: primary buttons, switches that are on, chips that are picked, focus rings.
Purple (--mp-ai)
Only for AI: Chat's suggestions, AI buttons, made pictures, AI settings. AI features are marked with ✦, never ★, because a star means favourite.
Blue (--mp-select)
Only for what's selected on the canvas.

Lines and fills are ink at low opacity, so the same token reads on paper, on the panel grey and on the board.

Note: A few colours stay raw on purpose, like the ends of the white-balance slider. Each one is listed, with its reason, in the design token test, so a new raw colour fails the build.

Type

The type scale from 10 to 26 pixels, each with where it's used

One typeface, Geist, on a scale of nine sizes. Most of the interface uses sm (12 px) for controls and md (13 px) for reading. Labels and buttons are medium (500); titles are semibold (600).

Space, corners and shadows

ScaleValuesUse
Space4, 8, 12, 16, 20, 24, 32, 40 pxPadding and gaps. Everything sits on the 4 px grid.
Corners4, 6, 8, 10, 12, 14, 16 px and fullBigger things get rounder corners: a tag 4, a button 8, a card 10, a dialog 16, a pill full.
Shadows1 to 4, and drag1 a raised segment, 2 a floating toolbar, 3 a menu, 4 a dialog, drag something picked up.

Motion

Motion shows what changed and where it went. It never bounces, and with reduced motion turned on, nothing moves.

TokenTimeUse
--mp-dur-fast120 msHover, colour and fades
--mp-dur160 msSwitches and small moves
--mp-dur-slow240 msPanels, layout, things that travel
--mp-easeease-outThe one curve for almost everything
--mp-ease-emphasisslow settleLong travel, like a panel opening