jxnblk / microicon

SVG icon microservice
https://icon.now.sh
359 stars 25 forks source link

Inherit Color #12

Closed kaydwithers closed 7 years ago

kaydwithers commented 7 years ago

Sorry if this is covered somewhere, I couldn't find anything in the docs. Is it possible to inherit a color?

Something like https://icon.now.sh/chevron/16/currentcolor

or should fill='currentColor' be enabled by default?

equinusocio commented 7 years ago

Try https://icon.now.sh/chevron/16/inherit and set color to the parent.

jxnblk commented 7 years ago

If you're using the URL in an <img> tag, SVGs are not inline in the HTML and won't pick up or inherit the document's styles. You'd have to install the package as an npm dependency to do what you're describing. Let me know if that doesn't make sense