I would like to change the color of a svg image <img src="someImage.svg" className="icon">
to #ffffff
. I tried using color
and fill
but both didn't work.
Currently I style it with filter
. It works but I don't want to use it as it is too vague:
.icon {
filter: invert(100%) sepia(7%) saturate(0%) hue-rotate(158deg)
brightness(108%) contrast(109%);
}