CodePen

New Pen
User Avatar of Amelia Bellamy-Royds

Amelia Bellamy-Royds

Customizable SVG Icons with CSS Variables

When you re-use SVG graphics with the <use> element, it inherits CSS styles from the new context. If the graphic you're re-using applies inherited styles, they can be customized in each icon...