I am working with an svg that contains various paths, ellipses, and shapes each with different fill colors such as red and blue. When I combine them into a sprite, I want to be able to change the fill color on hover using CSS. Typically, I would remove the fills from the SVG file and manipulate everything using the fill
property in CSS.
However, due to the different initial colors of the elements, applying a simple fill:red
rule will turn everything red which is not desired. I need some parts to remain blue while others change to red upon hovering.