rounded-es: Tailwind CSS Border Radius class

The rounded-es class in Tailwind CSS applies the default border-radius to the end-start corner of an element.


rounded-es

The rounded-es class in Tailwind CSS applies the default border-radius to the end-start corner of an element. In left-to-right (LTR) layouts, this affects the top-right corner; in right-to-left (RTL) layouts, it targets the top-left corner. It’s part of Tailwind’s logical corner utilities, which adapt to text direction automatically.

Syntax

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

Example Code

html
<div class="bg-indigo-600 text-white font-semibold p-4 rounded-es">
This box has a rounded end-start corner.
</div>

Preview

This box has a rounded end-start corner.

Use rounded-es when you need to apply a default radius to the top corner on the end-start side of an element. It’s great for building direction-aware buttons, cards, and custom UI elements.

How to Use

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

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

Responsive Usage

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

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