rounded-s-xl: Tailwind CSS Border Radius class

The rounded-s-xl class in Tailwind CSS applies an extra-large (xl) border-radius to the start side of an element — which means the left side in left-to-right (LTR) layouts and the right side in right-to-left (RTL) layouts.


rounded-s-xl

The rounded-s-xl class in Tailwind CSS applies an extra-large (xl) border-radius to the start side of an element — which means the left side in left-to-right (LTR) layouts and the right side in right-to-left (RTL) layouts. This includes both the top-start and bottom-start corners, and it adapts automatically based on text direction.

Syntax

html
<div class="rounded-s-xl">...</div>

Example Code

html
<div class="bg-blue-500 text-white font-semibold p-4 rounded-s-xl">
This box has extra-large rounding on the start side.
</div>

Preview

This box has extra-large rounding on the start side.

Use rounded-s-xl when you want to apply extra-large border-radius to the start side of an element. It's ideal for UI components like buttons, cards, and flexible layouts that need direction-aware styling.

How to Use

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

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

Responsive Usage

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

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