Skip to content

Border

Classes for managing element borders.

ClassDescription
.border-0No border
.border1px border
.border-22px border
.border-33px border
.border-44px border
.border-55px border
border-0
border
border-2
border-3
border-4
border-5
ClassDescription
.border-tTop border
.border-rRight border
.border-bBottom border
.border-lLeft border
.border-xHorizontal borders
.border-yVertical borders
border-t
border-r
border-b
border-l
border-x
border-y

All palette colors are available via .border-{color}-{brightness}:

You can color a specific side:

ClassDescription
.border-t-{color}Top border color
.border-r-{color}Right border color
.border-b-{color}Bottom border color
.border-l-{color}Left border color
top
right
bottom
left
ClassDescription
.rounded-noneNo rounding
.rounded-smSmall rounding
.roundedBase rounding
.rounded-lgLarge rounding
.rounded-xlExtra large rounding
.rounded-fullFull rounding (circle)

Important: There is no .rounded class without a suffix — use .rounded.

none
sm
base
lg
xl
full

Base rounding

Round border