Border Radius
Our border radius system creates visual softness and consistency. Use rounded corners to make interfaces feel friendly and modern.
Radius Scale
Six border radius values from subtle to fully rounded.
border-radius: 0.25rem
border-radius: 0.25rem
border-radius: 0.375rem
border-radius: 0.5rem
border-radius: 0.75rem
border-radius: 1rem
border-radius: 9999px
Usage Guidelines
When to Use Each Radius
Subtle rounding for inputs, small buttons, and tight UI elements
Default for most buttons, form fields, and interactive elements
Standard cards and containers with moderate rounding
Large cards, panels, and prominent containers
Modal dialogs, feature cards, and hero sections
Large imagery containers and decorative elements
Circular elements like avatars, badges, and pill-shaped buttons
Visual Examples
Standard card rounding for most use cases
More prominent card with extra rounding
Maximum rounding for decorative cards
Best Practices
Code Reference
CSS Custom Properties
:root {
--radius-sm: 0.25rem; /* 4px */
--radius: 0.25rem; /* 4px */
--radius-md: 0.375rem; /* 6px */
--radius-lg: 0.5rem; /* 8px */
--radius-xl: 0.75rem; /* 12px */
--radius-2xl: 1rem; /* 16px */
--radius-full: 9999px; /* Circular */
}
Tailwind CSS Classes
.rounded-sm { border-radius: 0.25rem; } /* 4px */
.rounded { border-radius: 0.25rem; } /* 4px */
.rounded-md { border-radius: 0.375rem; } /* 6px */
.rounded-lg { border-radius: 0.5rem; } /* 8px */
.rounded-xl { border-radius: 0.75rem; } /* 12px */
.rounded-2xl { border-radius: 1rem; } /* 16px */
.rounded-full { border-radius: 9999px; } /* Circular */