Borders Utilities
Utilities for applying borders to elements
Border Width
Following border width utilities can be used to add border radius to elements. Class names are prefixed with .border
and any scale
as suffix can be added e.g. .border-1
, .border
. To add border to some specific corners, use first character of the corners in
between the prefix and scale e.g. .border-l-2
, .border-t
.
The
default
scale will be used if no scaling is provided anddefault
can not be explicitly used as scaling
Scale | Border Width |
---|---|
0 | 0 |
2 | 2px |
4 | 4px |
8 | 8px |
default | 1px |
Border Radius
Following border radius utilities can be used to add border radius to elements. Class names are prefixed with .rounded
and any scale
as suffix can be added e.g. .rounded-sm
, .rounded-full
. To add border radius to some specific corners, use first character of the corners in
between the prefix and scale e.g. .rounded-tl-lg
, .rounded-t-none
The
default
scale will be used if no scaling is provided anddefault
can not be explicitly used as scaling
Scale | Border Radius |
---|---|
none | 0 |
sm | 0.125rem |
default | 0.25rem |
md | 0.375rem |
lg | 0.5rem |
full | 9999px |