Styling the Contents of SVG<use> with CSS

An in-depth article on how to style the contents of the SVG <use> element and overcome some challenges it brings. We get into where the contents are cloned (the shadow DOM!), what limitations that brings up and how to work around them by taking advantage of the CSS cascade and using CSS Variables to get full control over the content while providing fallback for non-supporting browsers.

Read the article on Codrops

Real. Simple. Syndication.

Get my latest content in your favorite RSS reader. (What is RSS?)