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

I just started using it icon fonts. I was initially using SVGs using an IMG tag, but the issue there is that you can't change color, opacity, or style it with CSS.

You can sprite SVGs, but you have to maintain it just as you would have to maintain a sprite of PNGs. The only advantage being that a sprited SVG would scale to a HDPI monitor without needing a second set of higher resolution images.

I ended up going with icon fonts because it requires significantly less CSS than dealing with the position of an icon in a sprite. I actually find it is easier to maintain since I can style icons with shadows, opacity, color, etc.

One drawback, using icon fonts generally means having flat icons. You can't have fancy 3D-like iconography.



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

Search: