Border Radius

Border radius is a key element that shapes the feel of your UI. Components are designed with 6px (rounded-md) as the baseline.

Radius Scale

All radius tokens from sharp to fully rounded

0px
rounded-none

Sharp corners

2px
rounded-sm

Slight rounding

4px
rounded-base

Default rounding

= rounded (DEFAULT)

6px
rounded-md

Input, Button

8px
rounded-lg

Dropdown, Container

12px
rounded-xl

Card, Modal

16px
rounded-2xl

Feature section

24px
rounded-3xl

Hero element

9999px
rounded-full

Circle, Pill

Visual Comparison

none
sm
base
md
lg
xl
2xl

Component Radius

Choosing the right radius based on an element's role

4px

Small elements

Subtle rounding that harmonizes with text

Tagrounded
Coderounded
6px

Interactive elements Baseline

Visual stability with a clickable impression

Buttonrounded-md
Inputrounded-md
Togglerounded-md
Selectrounded-md
Segmentedrounded-md
Dropdownrounded-md
8px

Container elements

Expresses hierarchy with inner elements

Tooltiprounded-lg
Alertrounded-lg
12px

Large elements

Soft and approachable appearance

Cardrounded-xl
Modalrounded-xl
Popoverrounded-xl
full

Circular / Pill elements

Elements with an icon-like role

Avatarrounded-full
Badgerounded-full
Indicatorrounded-full

Nested Radius

When nesting rounded elements, the inner radius should equal the outer radius minus the padding to keep curves parallel.

inner=outerpadding
Incorrect
Content
outer: 24pxpadding: 12pxinner: 24px

inner = outer makes curves uneven —
not parallel with the outer shape

Correct
Content
outer: 24pxpadding: 12pxinner: 12px

inner = outer − padding
24px − 12px = 12px gives natural parallel curves

Common patterns

outer: 12px

padding: 8px

inner: 4px

outer: 16px

padding: 12px

inner: 4px

outer: 24px

padding: 16px

inner: 8px