Utilities for styling the stroke of SVG elements

Class reference

stroke-currentstroke: currentColor;


Use .stroke-current to set the stroke color of an SVG to the current text color. This makes it easy to set an element’s stroke color by combining this class with an existing text color utility.

Useful for styling icon sets like Feather that are drawn entirely with strokes.

<svg class="stroke-current text-violet-400 ..."></svg>