Hacker News new | past | comments | ask | show | jobs | submit login

currentColor is neat, but it means that you can use strokes for the other color, and this technique doesn't scale to more than two colors.

CSS custom variable support is very good: https://caniuse.com/#feat=css-variables

If you can import external symbols this way, you're already not using IE, and so can use CSS custom variables.




There's actually a small polyfill for external SVG use that works with IE. Think I used this one:

https://github.com/Keyamoon/svgxuse




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: