Current color
Atomic classes allow you to quickly add currentColor to an element’s fill or stroke property.
Class | Output |
---|---|
.fill-current |
fill: currentColor; |
.stroke-current |
stroke: currentColor; |
When applied to an SVG, applying currentColor
to the fill or stroke property allows you to inherit the parent element’s text color or the text color applied to the element itself.