I'm struggling to change the color of an existing static SVG image. Here's the code I have:
<img class="icon-shop" src="@/assets/icon-shop.svg"/>
<style>
.icon-shop {
width: 32px;
fill: orange;
stroke: orange;
}
</style>
Although I found a solution using the filter
attribute, it feels overly complicated.
filter: invert(35%) sepia(36%) saturate(7009%) hue-rotate(2deg)
brightness(104%) contrast(88%);