1. Borders
  2. border-radius

Borders

border-radius

Handy classes for shaping the rounded corners of any element.

ClassStyles
rounded-xs
border-radius: var(--radius-xs); /* 0.125rem (2px) */
rounded-sm
border-radius: var(--radius-sm); /* 0.25rem (4px) */
rounded-md
border-radius: var(--radius-md); /* 0.375rem (6px) */
rounded-lg
border-radius: var(--radius-lg); /* 0.5rem (8px) */
rounded-xl
border-radius: var(--radius-xl); /* 0.75rem (12px) */
rounded-2xl
border-radius: var(--radius-2xl); /* 1rem (16px) */
rounded-3xl
border-radius: var(--radius-3xl); /* 1.5rem (24px) */
rounded-4xl
border-radius: var(--radius-4xl); /* 2rem (32px) */
rounded-none
border-radius: 0;
rounded-full
border-radius: calc(infinity * 1px);

Samples

Simple example

Reach for utilities such as rounded-sm and rounded-md to give an element the corner radius you want:

rounded-sm

rounded-md

rounded-lg

rounded-xl

<div class="rounded-sm ..."></div><div class="rounded-md ..."></div><div class="rounded-lg ..."></div><div class="rounded-xl ..."></div>

Rounding sides on their own

Reach for utilities such as rounded-t-md and rounded-r-lg to round only one side of an element:

rounded-t-lg

rounded-r-lg

rounded-b-lg

rounded-l-lg

<div class="rounded-t-lg ..."></div><div class="rounded-r-lg ..."></div><div class="rounded-b-lg ..."></div><div class="rounded-l-lg ..."></div>

Rounding individual corners

Reach for utilities like rounded-tr-md and rounded-tl-lg utilities when you want to round just a single corner of an element.

rounded-tl-lg

rounded-tr-lg

rounded-br-lg

rounded-bl-lg

<div class="rounded-tl-lg ..."></div><div class="rounded-tr-lg ..."></div><div class="rounded-br-lg ..."></div><div class="rounded-bl-lg ..."></div>

Applying logical properties

Grab utilities like rounded-s-md and rounded-se-xl to define corner rounding via logical properties, each mapping to the correct corners according to the current writing

Left-to-right

Right-to-left

<div dir="ltr">  <div class="rounded-s-lg ..."></div></div><div dir="rtl">  <div class="rounded-s-lg ..."></div></div>

This table lists every border radius logical property utility alongside its physical property equivalent across both LTR and RTL modes.

ClassLeft-to-rightRight-to-left
rounded-s-*rounded-l-*rounded-r-*
rounded-e-*rounded-r-*rounded-l-*
rounded-ss-*rounded-tl-*rounded-tr-*
rounded-se-*rounded-tr-*rounded-tl-*
rounded-es-*rounded-bl-*rounded-br-*
rounded-ee-*rounded-br-*rounded-bl-*

For finer control, you can also reach for LTR and RTL variants to conditionally apply particular styles depending on the active writing direction.

Building pill buttons

Use the rounded-full utility to build pill-shaped buttons:

rounded-full

<button class="rounded-full ...">Save Changes</button>

Stripping the border radius

Use the rounded-none utility to strip an existing border radius off an element:

rounded-none

<button class="rounded-none ...">Save Changes</button>

Passing a custom value

Grab the rounded-[<value>] syntax to define the border radius from an entirely custom value:

<div class="rounded-[2vw] ...">  <!-- ... --></div>

Prefer CSS variables? You can also reach for the rounded-(<custom-property>) syntax:

<div class="rounded-(--my-radius) ...">  <!-- ... --></div>

Think of this as a tidy shorthand for rounded-[var(<custom-property>)] that wires in the var() function on your behalf.

Adaptive layouts

Add a breakpoint variant such as md: in front of any border-radius utility so it kicks in only at medium screen sizes and up:

<div class="rounded md:rounded-lg ...">  <!-- ... --></div>

Dig deeper into working with variants in variants walkthrough.

Tailoring your theme

Reach for the --radius-* theme variables to tailor the border radius utilities across your project:

@theme {  --radius-5xl: 3rem; }

The rounded-5xl utility is now ready to drop into your markup:

<div class="rounded-5xl">  <!-- ... --></div>

Read more about tailoring your theme over in the theme documentation.

Copyright © 2026 Breezel, Inc.·Trademark Policy