3 ms·
You can customize whatever you like by using var(--color, #000) in SVG and --color: #123 in CSS. No need for any tools. :)
by megous 8y ago
You can customize whatever you like by using var(--color, #000) in SVG and --color: #123 in CSS. No need for any tools. :)
- myfonj 8y agoOr just inherit colour that was set for text. path { stroke: currentColor; } https://developer.mozilla.org/en-US/docs/Web/CSS/color_value#currentColor_keyword https://developer.mozilla.org/en-US/docs/Web/CSS/color_value...
- jakelazaroff 8y agoOnly if you're including the markup inline as opposed to as an image, which may or may not be desirable!
- megous 8y agoYes, you need at least xlink to an external SVG file. But that's pretty close to <img>. It's just one more element.