Skip to content

Radii

Border-radius tokens control the roundness of elements. Lexicon provides seven steps from sharp corners to fully circular shapes.

Scale

TokenCSS variableValue
none--radii-none0px
sm--radii-sm4px
md--radii-md8px
lg--radii-lg12px
xl--radii-xl16px
2xl--radii-2xl20px
full--radii-full9999px

Visual reference

┌──────┐  none   (0px)    Sharp corners
╭──────╮  sm     (4px)    Subtle rounding
╭──────╮  md     (8px)    Default for inputs
╭──────╮  lg    (12px)    Default for buttons and cards
╭──────╮  xl    (16px)    Modals and large containers
╭──────╮  2xl   (20px)    Feature cards
(      )  full (9999px)   Pills, avatars, badges

Usage

CSS

css
.card {
  border-radius: var(--radii-lg);   /* 12px */
}

.avatar {
  border-radius: var(--radii-full); /* 9999px — perfect circle */
}

.input {
  border-radius: var(--radii-md);   /* 8px */
}

Tailwind

html
<div class="rounded-lg">Card</div>
<img class="rounded-full" src="avatar.jpg" alt="" />
<input class="rounded-md" />

Component defaults

ComponentDefault radius
Button (primary, secondary, danger)lg (12 px)
Button (ghost)md (8 px)
Inputmd (8 px)
Cardlg (12 px)
Badgefull (pill)
Modalxl (16 px)
Tooltipmd (8 px)
Avatarfull (circle)
Tabs (pills)md (8 px)
Toggle trackfull (pill)

Released under the MIT License. A product by the pace.