Brand Guide

Components

Radius

Five steps of corner radius, from 4px on a checkbox to 12px on a drawer, and a full round for pills.

The scale

rounded-xs0.25rem · 4px
Marks, logos, checkbox
rounded-sm0.375rem · 6px
Dense chips
rounded-md0.5rem · 8px
Buttons, inputs, tooltips, and the popovers and menus they open
rounded-lg0.625rem · 10px
Cards, panels, chat bubbles
rounded-xl0.75rem · 12px
Larger panels, drawers
rounded-full9999px
Pills, avatars

In components

Each component already has its step. These are the ones above, at their real size.
xs
CommandK
xs
sm
md
md
TypeScript
full

Rules

  • The radius follows the size of the thing. Small marks and checkboxes take xs, controls take md, cards and panels take lg, and the largest panels and drawers take xl.
  • 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-full is for pills and avatars: badges, chips, switches.
  • The steps are defined in packages/shared/styles/tokens.css and used through Tailwind's rounded-* classes.