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 and default can not be explicitly used as scaling

ScaleBorder Width
00
22px
44px
88px
default1px
Code Editor
.border

.border-2

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 and default can not be explicitly used as scaling

ScaleBorder Radius
none0
sm0.125rem
default0.25rem
md0.375rem
lg0.5rem
full9999px
Code Editor
.border .rounded