Border size
←To border or not to border, that’s the question! When no side is given, the border applies to all sides. When no width is given, the default var width of --space-px
will apply. There is also a border reset class that will remove all borders for sure. You can customize the border color with CSS variables.
In the example, different border sizes are mixed, an unlikely design case. A border usually adds up to the size of a container, to align the boxes here a fixed height is set and the text labels are centered using a flexbox alignment.
Syntax:
.bo{-side?}{_width?}
SCSS:
_borders.scss
Border on all sides
bo_px
bo_xs
bo_s
Top border
bo-t_px
bo-t_xs
bo-t_s
Right border
bo-r_px
bo-r_xs
bo-r_s
Bottom border
bo-b_px
bo-b_xs
bo-b_s
Left border
bo-l_px
bo-l_xs
bo-l_s
Reset border
.box.bo-no
Custom border
.bo-t_s.bo-custom