Fill

Utilities for styling the fill of SVG elements


Class reference

ClassProperties
fill-currentfill: currentColor;

Usage

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

Useful for styling SVG icons like Material Design Icons.

<svg class="fill-current text-green-400 ..."></svg>