rounded-lg: Tailwind CSS Border Radius class

The rounded-lg class in Tailwind CSS applies a large border-radius to all four corners of an element.


rounded-lg

The rounded-lg class in Tailwind CSS applies a large border-radius to all four corners of an element. It's useful when you want smoother, more pronounced rounding for buttons, cards, containers, or UI elements.

Syntax

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

Example Code

html
<div class="bg-white p-6 rounded-lg shadow">
This card has large, smooth rounded corners.
</div>

Preview

This card has large, smooth rounded corners.

Use rounded-lg when you want a visibly rounded look for all corners of an element. It's great for modern UIs where smooth, clean edges improve visual polish and user experience.

How to Use

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

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

Responsive Usage

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

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