Browse documentation

Reference / Borders

Border color

Color all edges together or distinguish the edge that carries emphasis.

Working example

The border-s prefix applies to the start of the inline axis and follows the element’s writing direction.

HTML
<div class="border border-neutral-300 border-s-4 border-s-black p-3">
  Binding proof received
</div>

Class reference

ClassCSS declarations
border-currentborder-color: currentColor;
border-blackborder-color: #000;
border-neutral-300border-color: oklch(0.83 0 0);
border-black/30border-color: color-mix(in srgb, #000 30%, transparent);
border-b-blackborder-bottom-color: #000;
border-s-[#111]border-inline-start-color: #111;
View full generated CSS
Compiled CSS
.border-black {
  border-color: #000;
}
.border-black\/30 {
  border-color: color-mix(in srgb, #000 30%, transparent);
}
.border-current {
  border-color: currentColor;
}
.border-neutral-300 {
  border-color: oklch(0.83 0 0);
}
.border-b-black {
  border-bottom-color: #000;
}
.border-s-\[\#111\] {
  border-inline-start-color: #111;
}