Stroke

Utilities for styling the stroke of SVG elements.

In this article

Class Properties
.stroke-current stroke: currentColor;

Usage

Use .stroke-current to set the stroke color of an SVG to the current text color.

Variants

By default, no responsive or hover-state variants are generated for stroke utilities.

Responsive

To include responsive variants like .md:stroke-current, add "stroke" to the $responsive-variants variable in your theme’s _variables.scss file when recompiling your CSS:

$responsive-variants: (
  // ...
  "stroke",
);

Hover-state

To include hover-state variants like .hover:stroke-current, add "stroke" to the $hover-variants variable:

$hover-variants: (
  // ...
  "stroke",
);

Questions or feedback about this article? Let us know