1. Borders
  2. border-style

Borders

border-style

Utilities for choosing the style used to render an element's borders.

ClassStyles
border-solid
border-style: solid;
border-dashed
border-style: dashed;
border-dotted
border-style: dotted;
border-double
border-style: double;
border-hidden
border-style: hidden;
border-none
border-style: none;
divide-solid
& >:not(:last-child) { border-style: solid; }
divide-dashed
& >:not(:last-child) { border-style: dashed; }
divide-dotted
& >:not(:last-child) { border-style: dotted; }
divide-double
& >:not(:last-child) { border-style: double; }
divide-hidden
& >:not(:last-child) { border-style: hidden; }
divide-none
& >:not(:last-child) { border-style: none; }

Examples

Basic example

Reach for utilities like border-solid and border-dotted to set an element's border style:

border-solid

border-dashed

border-dotted

border-double

<div class="border-2 border-solid ..."></div><div class="border-2 border-dashed ..."></div><div class="border-2 border-dotted ..."></div><div class="border-4 border-double ..."></div>

Clearing a border

Apply the border-none utility to strip an existing border off of an element:

<button class="border-none ...">Save Changes</button>

You'll typically reach for this to clear a border style that was set at a smaller breakpoint.

Choosing a divider style

Reach for utilities like divide-dashed and divide-dotted to style the border drawn between child elements:

01
02
03
<div class="grid grid-cols-3 divide-x-3 divide-dashed divide-indigo-500">  <div>01</div>  <div>02</div>  <div>03</div></div>

Responsive design

Add a breakpoint variant such as md: in front of a border-style utility to switch it on only from medium screens upward:

<div class="border-solid md:border-dotted ...">  <!-- ... --></div>

Find out more about variants in the variants documentation.

Ship polished interfaces fast — 5-day starter

5-day email course

Ship interfaces you'll love.

Bite-sized, hands-on video lessons from the team behind Breezel, dropped straight into your inbox once a day for a week.

Grab the free course

Copyright © 2026 Breezel, Inc.·Trademark Policy