Command Palette

Search for a command to run...

Foundations

Spacing and radius

Eight spacing steps and one radius. Structure comes from hairlines and alignment before it comes from boxes.

Spacing scale

0.25, 0.5, 0.75, 1, 1.5, 2, 3 and 4.5rem. Nothing between the steps.

  • 0.25remgap-1 · Icon to text, tight chips
  • 0.5remgap-2 · Gap inside a control group
  • 0.75remgap-3 · Gap between related rows
  • 1remgap-4 · Row padding, card padding
  • 1.5remgap-6 · Page padding on mobile, form field gap
  • 2remgap-8 · Gap between sections
  • 3remgap-12 · Page padding on desktop, hero spacing
  • 4.5remgap-18 · Large breaks in mock templates
Gaps
Rows are 1rem above and below their text, page header to content is 1.5rem, section to section is 2.5rem (space-y-10).
Page padding
px-4 on mobile, px-6 from md, px-8 from xl on working pages; mock templates use clamp(1rem, 4vw, 2.5rem); documentation pages use 1.5rem and 3rem.
Touch targets
At least 2rem tall controls; icon-only buttons keep a visible label or tooltip.

Radius

One base radius of 0.625rem (--radius). Every other corner is derived from it, so they always agree.

  • smrounded-sm · radius − 4px · Chips, inline code
  • mdrounded-md · radius − 2px · Inputs, small buttons
  • lgrounded-lg · radius = 0.625rem · Buttons, cards, popovers (the base)
  • xlrounded-xl · radius + 4px · Dialogs, empty-state frames
  • 2xlrounded-2xl · radius + 8px · Large media frames
Squircle
Where supported, corners use corner-shape: superellipse(1.333) so they read as the same curve as the brand mark. Opt out with squircle-none.
Small step
One smaller radius (0.375rem) for things inside a control. Round shapes only where the factory uses them: avatars and switches.
App icons
Radius is 112 / 512 of the icon width.
Shadows
None for structure. A 1px hairline or a --card step does that job; overlays may use the standard popover shadow.

Hairlines, not boxes

A list is rows separated by 1px lines. A card exists only where it holds a different kind of thing, such as a form field or one outer frame.

Do

Rows with hairline separators, hierarchy from weight and shade.

  • Plan confirmed1 of 3
  • Build running2 of 3
  • Release waiting3 of 3

Don't

A box around every row, and a box around the boxes.

Plan confirmed
Build running
Release waiting