--- extends: _layouts.master title: "Borders" --- # Borders
.border{-side?}{-width?} syntax. For example, .border would add a 1px border to all sides of the element, where .border-b-4 would add a 4px border to the bottom of the element.
By default, borders are solid, and use the @default-border-color.
border Allt Topr Rightb Bottoml Left 1px2 2px4 4px8 8px@default-border-color. To override a border color, add one of the border color utilities.
```html
```
```less
div {
.border-dark;
.border-dark-soft;
.border-dark-softer;
.border-light;
.border-light-soft;
.border-light-softer;
.border-invisible;
}
```
The default border colors can also be modified using the following variables.
```less
// Variable: Default:
@border-dark: hsl(0, 0%, 82%);
@border-dark-soft: hsl(0, 0%, 90%);
@border-dark-softer: hsl(0, 0%, 96%);
@border-light: hsl(0, 0%, 100%);
@border-light-soft: hsl(0, 0%, 60%);
@border-light-softer: hsl(0, 0%, 35%);
@default-border-color: @border-dark-soft;
```
solid. This be modified using the border style utilities.
```html
```
```less
div {
.border-dashed;
.border-dotted;
}
```
border-radius to an element, using the rounded utilities.
```less
div {
.rounded-sm;
.rounded-t-sm;
.rounded-r-sm;
.rounded-b-sm;
.rounded-l-sm;
.rounded;
.rounded-t;
.rounded-r;
.rounded-b;
.rounded-l;
.rounded-lg;
.rounded-t-lg;
.rounded-r-lg;
.rounded-b-lg;
.rounded-l-lg;
.pill;
}
```