Re:Show HN: SVGInject – Make external SVG files fully CSS st...
by spdustin on Tuesday October 23, 2018 @06:45PM
(#18288163)
This is great, and something I can use in client projects. I'll also include this as a recommendation in my SharePoint classes that use SVGs for data visualization. Excellent script!
(I never did understand why CSS can't style referenced SVGs, personally)
Basically we want to keep the project small and focused on the injection itself. Also there is a potential issue with multiple IDs if you pre-inline SVGs (we call this ID hell).
If you want to give it a shot, please go ahead. You can contact us anytime through the issues in the SVGInject project for support or API change requests (I am waruyama on GitHub).
(I never did understand why CSS can't style referenced SVGs, personally)
https://github.com/iconfu/svg-inject/issues/19
Basically we want to keep the project small and focused on the injection itself. Also there is a potential issue with multiple IDs if you pre-inline SVGs (we call this ID hell).
If you want to give it a shot, please go ahead. You can contact us anytime through the issues in the SVGInject project for support or API change requests (I am waruyama on GitHub).