Skip to content

Borders

Utilities for controlling border and outline CSS properties.

Border width

ClassPropertyValue
border-0border-width0
borderborder1px solid
border-2border-width2px

Directional borders

ClassProperty
border-tborder-top: 1px solid
border-bborder-bottom: 1px solid
border-lborder-left: 1px solid
border-rborder-right: 1px solid
border-t-0border-top-width: 0
border-b-0border-bottom-width: 0
border-l-0border-left-width: 0
border-r-0border-right-width: 0

Border style

Classborder-style
border-solidsolid
border-dasheddashed
border-dotteddotted
border-nonenone

Border color

Classborder-color
border-transparenttransparent
border-currentcurrentColor

Outline

ClassPropertyValue
outline-noneoutlinenone
outlineoutline1px solid currentColor

Examples

html
<!-- Basic border -->
<div class="border radius-4 pa-4">With border</div>

<!-- Bottom border only -->
<div class="border-b pa-2">Underlined element</div>

<!-- Dashed border for drop zone -->
<div class="border border-dashed border-current radius-4 pa-4 op-5">
  Drop zone
</div>

<!-- Remove button outline -->
<button class="outline-none">No outline</button>

<!-- Left border (blockquote style) -->
<blockquote class="border-l border-2 pl-4">
  A quote
</blockquote>