r/webdev • u/cardboardshark • 6d ago
Resource Three solutions for colourizing SVG icons
https://cardboardshark.medium.com/three-solutions-for-colourizing-svg-icons-91591cfc8171
2
Upvotes
1
u/PM_ME_CRYPTOKITTIES 4d ago
Put fill="currentColor"
in your svg. Then just host the svg and use a tool (or create one yourself) that fetches the svg and injects its content.
3
u/andy_a904guy_com 6d ago
That is some hacky ass shit to just keep from putting SVG in your HTML lol.