The currentColor is used in CSS to inherit the text color to other properties like fill and stroke in SVG. This way you can change the color of an entire SVG element by changing the text color.
See the following Codepen for a demo:
Full article: Using the currentColor property to change SVG color
CSS Snippets
Top comments (0)