rounded-tl: Tailwind CSS Border Radius class

The rounded-tl class in Tailwind CSS applies a border-radius to the top-left corner of an element.


rounded-tl

The rounded-tl class in Tailwind CSS applies a border-radius to the top-left corner of an element. It’s handy when you want to round only one corner—commonly used in cards, buttons, modals, or tab designs.

Syntax

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

Example Code

html
<div class="bg-blue-500 text-white font-semibold p-4 rounded-tl border">
Top-left corner is rounded
</div>

Preview

Top-left corner is rounded

Use rounded-tl when you need to round just the top-left corner of an element. It's a precise and flexible utility for shaping UI elements without writing custom CSS.

How to Use

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

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

Responsive Usage

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

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