Skip to main content

Tailwind CSS Border Utilities

Complete Tailwind v4 border utilities reference.
Click any utility to copy the class name.

Border Width

Border Side Width

Apply border width to specific sides, including logical properties for RTL support.

Usage Examples

Card with Border

<div class="border border-gray-200
            rounded-lg p-4">
  Card content
</div>

Focus Ring

<button class="focus:ring-2
               focus:ring-blue-500
               focus:ring-offset-2">
  Click me
</button>

List Dividers

<ul class="divide-y divide-gray-200">
  <li>Item 1</li>
  <li>Item 2</li>
  <li>Item 3</li>
</ul>

Asymmetric Radius

<div class="rounded-t-2xl
            rounded-b-none">
  Rounded top only
</div>

About Tailwind Border Utilities

Tailwind provides comprehensive utilities for styling borders, including width, style, color, and radius.

Ring vs Outline: Rings use box-shadow which doesn't affect layout, while outlines use the CSS outline property.

Logical Properties: Use border-s-*, border-e-*, and rounded-ss-* etc. for RTL language support.

For arbitrary values, use bracket notation: border-[3px] or rounded-[20px]