Simple and flexible border radius utilities with CSS custom properties

Size Variations

The rounded utilities provide five size variations, from small to extra large:

rounded-sm
rounded
rounded-md
rounded-lg
rounded-xl

Special Shapes

Create perfect circles, pills, and remove rounding entirely:

Circle
Pill Shape
No Rounding

Per-Corner Customization

Use CSS custom properties to control individual corners:

Diagonal
Corners
Top
Only
Bottom
Only
Opposite
Corners

Custom Size

Use CSS custom property --rounded-size to change radius size:

0.5
1
1.5
2

Custom Units

Adjust the base unit to make rounding depend on different units:

1em
Unit
1em
Unit
1rem
Unit
1rem
Unit

Common Use Cases

Practical examples of rounded corners in UI components:

Card Component

Perfect for content cards with subtle rounding

Feature Box

Larger rounding for emphasis and modern feel

Input Field

Small rounding for form elements

Button Variations

Different button styles using rounded utilities:

Avatar & Image Examples

Perfect circles and rounded containers for images:

AB
CD
EF
GH
demo-card

Theme Integration

Rounded corners work beautifully with different color schemes:

Dark Theme

Elegant with subtle shadows

Light Theme

Clean with soft shadows

Accent Theme

Bold and vibrant

Warm Theme

Friendly and approachable