- adding without additional markup
- css-based styling
- reduce amount of http requests
- per-icon
viewBox
- SVG library file with:
- Icons in
<symbol>elements (with individual viewBoxes) - Referenced via
<use> <use>nodes with public IDs- Only one visible via
:not(:target)CSS-in-SVG styling
- Icons in
- Use via background image
library.svg#my-idto retain icon color - Use via
mask-imageto override color (specify color asbackground-color
https://gistcdn.githack.com/ondras/20393a5fc73293d8e01164325851dc79/raw/index.html