Creating a Maintainable Icon System with Sass
One of my favorite ways of adding icons to a site is by including them as data URL background images to pseudo-elements (e.g. ::after
) in my CSS. This technique offers several advantages:
- They don’t require any additional HTTP requests