Border Radius

Border radius tokens and their usage.

Scale

none
0px
sm
default
md
lg
xl
2xl
1rem
full
9999px

Usage guidelines

VariantWhen to use
rounded-smSubtle rounding — tags, small badges, inline elements
rounded-mdButtons and inputs — the default interactive element radius
rounded-lgCards and panels — content containers with clear boundaries
rounded-xlModals and dialogs — prominent overlays that need softer edges
rounded-fullAvatars and badges — fully circular elements
html
<button class="rounded-md bg-primary px-4 py-2">Action</button>
<div class="rounded-lg border p-6">Card content</div>
<img class="rounded-full" src="avatar.jpg" alt="User" />
3 lines of html code

The base radius token (--radius) can be adjusted per-theme to shift the entire system between sharp and soft aesthetics without touching individual components.