rounded-tr-md: Tailwind CSS Border Radius class

The rounded-tr-md class in Tailwind CSS applies a medium border radius to the top-right corner of an element.


rounded-tr-md

The rounded-tr-md class in Tailwind CSS applies a medium border radius to the top-right corner of an element. This gives a slightly more noticeable curve than the default size and is great for refining the visual style of cards, modals, or input fields.

Syntax

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

Example Code

html
<div class="bg-lime-600 text-white font-semibold p-4 border rounded-tr-md shadow">
Top-right corner has a medium curve
</div>

Preview

Top-right corner has a medium curve

Use rounded-tr-md when you want a moderate rounding on just the top-right corner of an element. It offers a clean, subtle visual enhancement, especially in UI layouts with directional rounding.

How to Use

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

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

Responsive Usage

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

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