Get started
Fabricator UI

Search documentation

Search pages, components, blocks, styles and colours.

Sizes

PreviousNext

36px controls, 13px text, and corners that nest.

Two densities

Controls come in a default and a compact size. Buttons, inputs, selects and menu rows share the same height, so they line up when you put them side by side.

Default36px controls, 13px text
Compact28px controls, 12px text (size="sm")
DefaultCompact (size="sm")
Control height (and menu rows)h-9 (36px)h-7 (28px)
Texttext-[13px]text-[12px]
Iconsize-4size-3.5
Padding: bounded controls / rowspx-3 / px-2px-2.5 / px-1.5
Gapgap-2 (buttons gap-1.5)gap-1
Segmented item / track paddingh-7 / p-1h-6 / p-0.5

Shape

Items, buttons, inputs and highlights are rounded-lg (8px). Containers such as popups, cards, dialogs and tab tracks are rounded-xl (12px). A container holds its items with 4px of padding (p-1), so the inner and outer corners are concentric.

Rounded large8px
Inside rounded extra large12px
Containers are rounded-xl (12px) with 4px of padding, so the rounded-lg (8px) items inside them share the same curve.

Checkboxes use rounded-[5px]. Switches, badge dots and avatars are fully round.

Rounded or pill

Every corner comes from the --radius token: items and controls use rounded-lg (--radius) and containers rounded-xl (--radius × 1.4). Two values are supported:

Radius--radiusControls (36px)Containers
Rounded0.5rem (default)8px12px
Pill1.25rem20px, a full pill28px

Pill keeps containers concentric with their items, so menus, selects and tab tracks round out along with their rows. To switch a project to pill, add the radius item:

bunx --bun fabricator-ui@latest add radius-pill

It sets --radius: 1.25rem in your stylesheet. To go back, set --radius to 0.5rem. Try both from the settings menu in the header of this site.