4 ms·
Another approach which I use at work is to use `postcss-inline-svg`[0]. This allows you to "import' the SVG from your CSS and then customize it. For example, yo
by photonios 9y ago
Another approach which I use at work is to use `postcss-inline-svg`[0]. This allows you to "import' the SVG from your CSS and then customize it. For example, you might want the icon in a different color:
background: svg-load('myicon.svg', fill=blue);
The SVG would then be inlined into the CSS instead of the HTML.
[0] https://github.com/TrySound/postcss-inline-svg https://github.com/TrySound/postcss-inline-svg