Skip to content

Border

Applies a border using token values by default. All parameters are optional:

@include border; // default border
@include border(var(--color-interactive)); // custom color
@include border(var(--color-error), 2px); // color and width
@include border(var(--color-border), 1px, dashed); // all params
ParameterDefaultDescription
$colorvar(--color-border)Border color
$width1pxBorder width
$stylesolidBorder style

A transparent border — same dimensions as a visible border but invisible. Use when a border is needed for layout or to prevent margin collapse without being visible:

@include border-ghost; // 1px transparent
@include border-ghost(2px); // custom width
ParameterDefaultDescription
$width1pxBorder width