Integrated ResearchPicasso
Foundations

Grid, spacing and radius

A 4pt grid with 2pt half-steps, and one knob for every corner.

The grid

Picasso is a 4pt grid with 2pt half-steps. Legal values are every multiple of 4, plus 2, 6, 10 and 14. Anything else — 5, 13, 18 — is drift.

Spacing

The primitive scale is Tailwind's, unmodified: --space-1 is 0.25rem and the ladder runs 0 → 96. Engineering inherits it for free, and Tailwind's own --spacing is fed from that single number, so every px-, gap-, h- and w- utility derives from one value.

--spacing: var(--space-1);   /* 0.25rem */

Every ladder step is also a named Tailwind key (p-4 reads --space-4), so a brand or preset can move the whole ladder at once. The spacing presets — compact ×0.875 and relaxed ×1.25 — scale every step and round it to the 2px grid (space/4 is 14 · 16 · 20px). See Tokens, brands and Figma sync.

Do not pick from all 35 steps. Eight do the real work:

SteppxUsed for
0.52hairline offsets
14tightly related lines — label to hint
1.56icon to label inside a small control
28icon to label, inside a control
312control padding
416between labelled groups, container padding
624page gutters
832between page sections

space/36–space/96 (144–384px) are layout measurements, not component spacing. They stay in the repo and are scoped out of Figma's pickers.

Radius

Radius is one knob. --radius drives all eight steps proportionally, so a theme changes one number rather than eight.

:root                   { --radius: 0.625rem; }  /* 10px */
[data-radius="sharp"]   { --radius: 0; }
[data-radius="subtle"]  { --radius: 0.375rem; }  /*  6px */
[data-radius="rounded"] { --radius: 1rem; }      /* 16px */

At the default theme that resolves to:

UtilityDerivationpxUsed by
rounded-xs--radius × 0.22nested elements inside a control
rounded-sm× 0.66checkbox, small indicators
rounded-md× 0.88Button, Input, Select, Tabs, Chip
rounded-lg× 110—
rounded-xl× 1.414Card, Dialog, Popover, Drawer
rounded-2xl× 1.616marketing blocks
rounded-3xl× 2.424—
rounded-4xl× 3.232—
rounded-full——Badge, Avatar, Switch track, status dot

Never hard-code a corner. A literal rounded-[8px] survives the default theme and breaks every other one.

⚠️ This ladder is shadcn's, not Tailwind's. Tailwind's is 2/4/6/8/12/16; ours derives from the single --radius knob, which is what makes radius themeable. The Figma radius/* variables carry the same eight numbers.

On this page