I have chosen to base64 encode my SVGs as CSS backgrounds for faster load times but I can not change the fill color with CSS. With the following example, I have tried adding a background color but that just changes the color of the div. If I add fill: #06f;
below background:
it does nothing.
.icon {
background: url(data:image/svg+xml;base64,PHN2Z...3N2Zz4K) no-repeat center center;
}
How can I affect the fill colors with CSS alone?