Y
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
myfonj
2675 days ago
Or just inherit colour that was set for text.
path { stroke: currentColor; }
https://developer.mozilla.org/en-US/docs/Web/CSS/color_value...
link
jakelazaroff
2675 days ago
Only if you're including the markup inline as opposed to as an image, which may or may not be desirable!
link
megous
2675 days ago
Yes, you need at least xlink to an external SVG file. But that's pretty close to <img>. It's just one more element.
link