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.
- 12
size-3Extra small buttons, Badge, Kbd10 explicit uses - 14
size-3.5Menu rows, small buttons, the Checkbox check31 explicit uses - 16
size-4The default: buttons, inputs, nav76 explicit uses - 20
size-5Brand Mark lg, Empty and Error State6 explicit uses - 24
size-6Feature Grid in Blocks, Alert Dialog's media, a vertical Attachment3 explicit uses
With text
16 at 6 from the label, centred on the 28 height. The side with the icon pads 8 instead of 10.
14 at 10 from the label, in muted-foreground, so the words lead.
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.
aria-hidden on the svgNext to a word, the icon is decoration: the Icon base sets aria-hidden, so readers hear Paid once.
Do and don't
Rules
- 1Import from @/components/icons. If an icon is missing, add it to the set; never paste an svg into a piece.
- 216 by default, 14 in rows and small buttons. Other sizes need a reason.
- 3An icon on its own is a button with an aria-label and a Tooltip. An icon beside a word stays hidden from readers.
- 4Icons take currentColor. Colour them by their text, never on their own.