Skip to main content
⌘K

Search

Search pages, pieces and blocks.

Icons

One icon set, drawn on a 16 grid, strokes always 1px at any size. 229 icons live in icons.tsx; import them by name, never paste an svg.

Icons
229
Grid
16
Stroke
1, non-scaling

Every icon

Rendered from icons.tsx, not redrawn. 4 have no references: Coffee, LayoutDashboard, LogIn and Volume.

229 icons

Click to copy the component. Numbers are references in src, imports included.

Sizes

The stroke stays 1px as the icon grows: the Icon base's icon class sets vector-effect: non-scaling-stroke.

  • 12size-3Extra small buttons, Badge, Kbd10 explicit uses
  • 14size-3.5Menu rows, small buttons, the Checkbox check31 explicit uses
  • 16size-4The default: buttons, inputs, nav76 explicit uses
  • 20size-5Brand Mark lg, Empty and Error State6 explicit uses
  • 24size-6Feature Grid in Blocks, Alert Dialog's media, a vertical Attachment3 explicit uses

With text

In a button

16 at 6 from the label, centred on the 28 height. The side with the icon pads 8 instead of 10.

Rename
In a row

14 at 10 from the label, in muted-foreground, so the words lead.

Meet at the tower at 8:45 see notes
In a line of text

16 in a 16 line box, centred on the x-height, never on the baseline.

Labels

<Button size="icon" aria-label="Delete booking">

An icon button names its action in aria-label, and a Tooltip shows the same words on hover and focus. 95 of 99 icon buttons in src carry a name.

Paidaria-hidden on the svg

Next to a word, the icon is decoration: the Icon base sets aria-hidden, so readers hear Paid once.

Do and don't

DoIcons from the set: 16 grid, 1px stroke, round ends, currentColor.
Don'tA pasted 24 grid icon at 2px and a filled glyph. Both look heavier than every other icon on the page.

Rules

  1. 1Import from @/components/icons. If an icon is missing, add it to the set; never paste an svg into a piece.
  2. 216 by default, 14 in rows and small buttons. Other sizes need a reason.
  3. 3An icon on its own is a button with an aria-label and a Tooltip. An icon beside a word stays hidden from readers.
  4. 4Icons take currentColor. Colour them by their text, never on their own.