Browse documentation
Reference / Borders
Border color
Color all edges together or distinguish the edge that carries emphasis.
Working example
Binding proof received
The border-s prefix applies to the start of the inline axis and follows the element’s writing direction.
<div class="border border-neutral-300 border-s-4 border-s-black p-3">
Binding proof received
</div>Class reference
| Class | CSS declarations |
|---|---|
border-current | border-color: currentColor; |
border-black | border-color: #000; |
border-neutral-300 | border-color: oklch(0.83 0 0); |
border-black/30 | border-color: color-mix(in srgb, #000 30%, transparent); |
border-b-black | border-bottom-color: #000; |
border-s-[#111] | border-inline-start-color: #111; |
View full generated 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;
}