rounded-md: Tailwind CSS Border Radius class

The rounded-md class in Tailwind CSS applies a medium border-radius to all corners of an element


rounded-md

The rounded-md class in Tailwind CSS applies a medium border-radius to all corners of an element. It offers a subtle but noticeable curve, often used in buttons, cards, inputs, and containers for a clean, modern look.

Syntax

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

Example Code

html
<div class="bg-white p-4 shadow rounded-md">
This box has medium-rounded corners using Tailwind CSS.
</div>

Preview

This box has medium-rounded corners using Tailwind CSS.

How to Use

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

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

Responsive Usage

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

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