I recently added dark mode support to my website. While doing so I found a neat trick to make SVG images that changes colors depending on if dark mode is active or not.
How to properly change the color of a mat-icon with angular?
I have looked at the documentation and I have tried to change the color of a mat-icon like so:
<mat-icon class="white" color="primary" svgIcon="back"></mat-icon><span class="backTex...
It turns out what I missed was the SVG Security page on the W3C’s wiki, where it says external SVGs brought in via are denied the ability to fetch other resources. So that answers that.https://t.co/xcLR6kIKCH(hat tip: @shshaw)— eric_meyer.css (@meyerweb) August 11, 2022
SVGBox makes it dead-easy to include icons in your project. Simple tags: that's all you need. No CSS, JS, file uploads, or inline SVGs. It's completely free and delivered over Cloudflare CDN, the same technology that powers CDNJs's 190B+ monthly requests .
A set of over 450 free MIT-licensed high-quality SVG icons for you to use in your web projects. Each icon is designed on a 24x24 grid and a 2px stroke.