Skip to content
Cook
Documentation Browse

Design

Radius, spacing and shadow

Radius snaps to eight steps, spacing to the 4px scale, and shadows to three. Arbitrary values fail check:design.

Radius

Eight steps. rounded-10 and rounded-20 are Cook’s own: 10px for controls and rows, 20px for large panels.

rounded-sm4px
rounded-md6px
rounded-lg8px
rounded-1010px · Cook
rounded-xl12px
rounded-2xl16px
rounded-2020px · Cook
rounded-full9999px

Spacing

The 4px scale. The number is the Tailwind step; each step is 4px.

0.52px
14px
1.56px
28px
2.510px
312px
416px
520px
624px
832px

Shadow

Three shadows, each for one job.

shadow-regular-xshairline separation
shadow-regular-smtoolbars, small cards
shadow-regular-mdpopovers, modals

Don't use an arbitrary radius like rounded-[7px], an off-scale gap, or a shadow of your own. check:design fails it.