Hacker News new | ask | show | jobs
by megous 2675 days ago
You can customize whatever you like by using var(--color, #000) in SVG and --color: #123 in CSS. No need for any tools. :)
2 comments

Or just inherit colour that was set for text.

    path { stroke: currentColor; }
https://developer.mozilla.org/en-US/docs/Web/CSS/color_value...
Only if you're including the markup inline as opposed to as an image, which may or may not be desirable!
Yes, you need at least xlink to an external SVG file. But that's pretty close to <img>. It's just one more element.