Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I've been trying to switch from icon fonts to SVG for icons, but I'm struggling with productivity/maintainability:

- SVG icons are more complicated to drop in, or complicate the code. For icon fonts it's usually just a CSS class, which is lean and expressive. For SVG, either I drop in the explicit code, which can be huge and hard to read, or I include it as external file (like an image) and lose CSS styling abilities.

- Versioning is harder. SVG icons are usually present as files, either from a thrid-party set or created and maintained using editors like inkscape. Now I either copy the code for above styling advantages, which is obviously bad for consistency, or I reference them as external images and lose stlying power again.

Are there any good workaround for those issues?



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

Search: