Search code examples
cssimagesvgcolorsfill

Change fill color of SVG image loaded via background-image


If I load SVG image via css background-image like this:

.icon {
  background-image: url('icon.svg');
}

How can i change fill color of shapes inside that icon or whole icon itself?

Thanks.


Solution

  • Edit it in an XML editor and if you know the color values, just change it.

    Or, you can go to THIS LINK and make your edit.

    Hope this helps.