Spacing
A 4pt scale with an irregular ramp: 5 = 22px, 6 = 28px. The handoff
deliberately skips a 7 step to discourage hand-tuned 7px values that erode
visual rhythm. If you want something in-between, pick the nearer real token.
space-14pxspace-28pxspace-312pxspace-416pxspace-522pxspace-628pxspace-840pxRadius#
| Token | Value | When |
|---|---|---|
xs | 4px | tag / kbd |
sm | 6px | small button, badge |
md | 8px | input, card cell |
base | 10px | card, panel |
lg | 14px | sheet / drawer |
xl | 18px | hero plates |
full | 9999px | pills, dots |
Usage#
tsx
<div className="p-4 gap-2"> {/* 16px / 8px */}
<div className="px-5 py-3"> {/* 22px / 12px */}
<div className="rounded-md"> {/* radius-md */}Arbitrary values (p-[15px]) are a smell — almost always a missed token.