Components
Radius
Five steps of corner radius, from 4px on a checkbox to 12px on a drawer, and a full round for pills.
rounded-xs0.25rem · 4px
Marks, logos, checkboxrounded-sm0.375rem · 6px
Dense chipsrounded-md0.5rem · 8px
Buttons, inputs, tooltips, and the popovers and menus they openrounded-lg0.625rem · 10px
Cards, panels, chat bubblesrounded-xl0.75rem · 12px
Larger panels, drawersrounded-full9999px
Pills, avatarsxs
CommandK
xssm
md
md
TypeScript
full- The radius follows the size of the thing. Small marks and checkboxes take
xs, controls takemd, cards and panels takelg, and the largest panels and drawers takexl. - A popup takes the radius of the control that opens it. Menus, popovers and tooltips are
md, like the buttons and inputs they open from. rounded-fullis for pills and avatars: badges, chips, switches.- The steps are defined in
packages/shared/styles/tokens.cssand used through Tailwind'srounded-*classes.