The brilliant Lea Verou writes about using CSS masks and variables to make icons function as design tokens in a web UI. Probably overkill for most marketing sites, but this is extremely smart, and I’m keeping it tucked away in my back pocket.
The best way to use icons in Web UIs • Lea Verou lea.verou.me
What if I told you, you could use CSS to insert and tweak icons without touching any HTML? And that it could be more flexible and maintainable than what you’ve been using?