rounded-xl: Tailwind CSS Border Radius class

The rounded-xl class in Tailwind CSS applies an extra-large border radius to all corners of an element.


rounded-xl

The rounded-xl class in Tailwind CSS applies an extra-large border radius to all corners of an element. It’s useful when you want a softer, more rounded look—often used in cards, buttons, and containers for a modern UI feel.

Syntax

html
<div class="rounded-xl">...</div>

Example Code

html
<div class="bg-gray-50 p-6 rounded-xl shadow">
Extra-large rounded corners make this box look smooth.
</div>

Preview

Extra-large rounded corners make this box look smooth.

Use rounded-xl when you want a more noticeably curved edge across all corners. It helps create a soft, approachable look and is a great choice for UI components that need visual emphasis without being too bold.

How to Use

Add the rounded-xl class directly to your HTML element:

html
<div class="rounded-xl">
<!-- Your content here -->
</div>

Responsive Usage

Use Tailwind's responsive prefixes to apply rounded-xl at specific breakpoints:

html
<div class="sm:rounded-xl md:rounded-xl lg:rounded-xl">
Responsive element
</div>
  • sm:rounded-xl — applies from 640px and up
  • md:rounded-xl — applies from 768px and up
  • lg:rounded-xl — applies from 1024px and up

Customization

You can extend or override this utility in your tailwind.config.js. See the Tailwind CSS documentation for details on customizing your theme.

Windframe is an AI visual editor for rapidly building stunning web UIs & websites

Start building stunning web UIs & websites!

Build from scratch or select prebuilt tailwind templates