rounded-2xl: Tailwind CSS Border Radius class

The rounded class applies small rounded corners to an element.


rounded-2xl

The rounded-2xl class applies extra-large rounded corners.

Example Code

html
<div class="flex flex-col justify-center items-center gap-2 p-3 rounded-t-md bg-blue-50">
<p class="text-gray-600 font-bold">Extra-Large Rounded Corners</p>
<div class="rounded-2xl bg-blue-500 p-4 w-32 text-white font-semibold">
rounded-2xl
</div>
</div>

Preview

Extra-Large Rounded Corners

rounded-2xl

How to Use

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

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

Responsive Usage

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

html
<div class="sm:rounded-2xl md:rounded-2xl lg:rounded-2xl">
Responsive element
</div>
  • sm:rounded-2xl — applies from 640px and up
  • md:rounded-2xl — applies from 768px and up
  • lg:rounded-2xl — 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