Border Width

Set the width for element borders.

Widely available

This feature is well established and works across many devices and browser versions.

Chrome
Edge
Firefox
Safari

bw-0
border-width: 0;
bw-1
border-width: 1px;
bw-2
border-width: 2px;
bw-3
border-width: 3px;
bw-4
border-width: 4px;
bw-5
border-width: 5px;
bw-6
border-width: 6px;
bw-7
border-width: 7px;
bw-8
border-width: 8px;

Responsiveness

Use breakpoint prefixes to target different screen sizes. Styles apply from the breakpoint & up.

Target viewport sizes with breakpoint prefixes.

sm:bw-*
Small640px
md:bw-*
Medium768px
lg:bw-*
Large1024px
xxl:bw-*
Extra Large1536px

Hover State

Apply styles conditionally on hover using the h: prefix.

Add the h: prefix to apply styles only when the user hovers over the element.

Syntax:h:bw-*

Negative Values

Use negative variants to apply negative border width values.

Use the -- syntax to apply negative numeric values.

Syntax:bw--*