Skip to main content

Stroke Width

Utilities for styling the stroke width of SVG elements.

CSS Property:stroke-width
Classes:3

Stroke Width Classes

ClassCSS
stroke-0stroke-width: 0;
stroke-1stroke-width: 1;
stroke-2stroke-width: 2;

Arbitrary Values

You can use arbitrary values with square bracket notation when you need a specific value not included in the default scale.

[stroke-width:value]

Responsive Variants

Apply stroke width utilities at specific breakpoints using responsive prefixes.

BreakpointPrefixExample
640px+sm:sm:stroke-0
768px+md:md:stroke-0
1024px+lg:lg:stroke-0
1280px+xl:xl:stroke-0
1536px+2xl:2xl:stroke-0