Color
Typography
Spacing
Radius
Border
Opacity
Elevation
Blur
Avatar
Badge
Button
Checkbox
Input
ProgressBar
RadioButton
Separator
Slider
Switch
TextArea
TextLink
Accordion
Breadcrumb
ButtonGroup
Combobox
DropdownMenu
ListItem
Pagination
SegmentedControl
Select
Tooltip
Calendar
Card
CommandMenu
DatePicker
Dialog
Drawer
EmptyState
Footer
Form
NavigationBar
Sidebar
Skeleton
Table
Tabs
Toaster

Spacing

Spacing scale and semantic gap and padding tokens.

Usage

Components use the semantic tokens through their CSS variables; the primitives are only what they point to. Copy a variable from its card.

.stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-gap-related);
  padding: var(--space-padding-md);
}

Scale

The primitive steps the padding and gap tokens point to. Components never use them directly.

  • space/00px
  • space/22px
  • space/44px
  • space/88px
  • space/1212px
  • space/1616px
  • space/2020px
  • space/2424px
  • space/2828px
  • space/3232px
  • space/4040px
  • space/4848px
  • space/6464px
  • space/8080px
  • space/9696px
  • space/128128px
  • space/160160px
  • space/256256px

Padding

Space inside a component, between its edge and its content.

  • space/padding/3xs2px · space/2
  • space/padding/2xs4px · space/4
  • space/padding/xs8px · space/8
  • space/padding/sm12px · space/12
  • space/padding/md16px · space/16
  • space/padding/lg24px · space/24
  • space/padding/xl32px · space/32
  • space/padding/2xl48px · space/48
  • space/padding/3xl96px · space/96

Gap

Space between the elements of a component or a layout.

  • space/gap/micro2px · space/2
  • space/gap/related4px · space/4
  • space/gap/inline8px · space/8
  • space/gap/grouped16px · space/16
  • space/gap/section48px · space/48