Borders
This guide covers the utility classes available for controlling an element’s borders, including width, style, and color. 🖼️
Borders
Section titled “Borders”Use the .ro-u-border utility class to apply a default 1px solid border to any element. You can then combine it with modifier classes to change its width, style, and color.
<div class="ro-u-border">Default border</div>Default border
Control the border width using .ro-u-border-width-* classes.
<div class="ro-u-border ro-u-border-width-2">Border width 2px</div><div class="ro-u-border ro-u-border-width-4">Border width 4px</div>Border width 2px
Border width 4px
Change the border style using the .ro-u-border-style-* classes. The default style is solid.
<div class="ro-u-border ro-u-border-style-dashed">Dashed border</div>Dashed border
Modify the border color using the .ro-u-border-color-* utility classes.
<div class="ro-u-border ro-u-border-color-light">Light</div><div class="ro-u-border ro-u-border-color-regular">Regular</div><div class="ro-u-border ro-u-border-color-accentuated">Accentuated</div><div class="ro-u-border ro-u-border-color-product">Product</div><div class="ro-u-border ro-u-border-color-success">Success</div><div class="ro-u-border ro-u-border-color-warning">Warning</div><div class="ro-u-border ro-u-border-color-danger">Danger</div>Light
Regular
Accentuated
Product
Success
Warning
Danger
Radius
Section titled “Radius”Apply border radius using .ro-u-radius-* classes.
<div class="ro-u-border ro-u-radius-sm ro-u-p-2">Small Radius</div><div class="ro-u-border ro-u-radius-md ro-u-p-2">Medium Radius</div><div class="ro-u-border ro-u-radius-lg ro-u-p-2">Large Radius</div><div class="ro-u-border ro-u-radius-xl ro-u-p-2">Extra Large Radius</div><div class="ro-u-border ro-u-radius-circle ro-u-p-2 ro-u-w-10 ro-u-h-10 ro-u-flex-center">Circle</div>Small
Medium
Large
XL
Circle
Properties
Section titled “Properties”| Class Prefix | Description |
|---|---|
.ro-u-border | Applies the base border styles (1px solid regular). |
.ro-u-border-width-* | Changes border width. Options: 2, 4. |
.ro-u-border-style-* | Changes border style. Options: dashed. |
.ro-u-border-color-* | Changes border color. Options: light, regular, accentuated, product, success, warning, danger. |
.ro-u-radius-* | Changes border radius. Options: sm, md, lg, xl, circle. |