Border
Notation
Border utility classes can be defined using the format -b{sides}[-{breakpoint}]--{size}.
{sides}
t- use to applyborder-topb- use to applyborder-bottoml- use to applyborder-leftr- use to applyborder-rightx- use to applyborder-leftandborder-righty- use to applyborder-topandborder-bottom- blank - leave blank to apply
borderto all 4 sides.
{breakpoint}
Optionally, include -{breakpoint} to apply the utility behaviour to some breakpoints. As a mobile-first library, any applying to smaller breakpoints will also modify larger ones unless another class overrides this behaviour.
- blank - leave blank to apply
borderto all breakpoints. sm- use to applyborderto sm and larger breakpoints.md- use to applyborderto md and larger breakpoints.lg- use to applyborderto lg and larger breakpoints.xl- use to applyborderto xl breakpoints.
{size}
0- use to eliminate existingborderand set to01- use to setborderto1px2- use to setborderto2px3- use to setborderto3px4- use to setborderto4px
Examples
Border Colors
Use contextual color classes to change a border's color.