#alter fill colour of svg icons via CSS
13 messages · Page 1 of 1 (latest)
You can only use CSS on embedded SVGs
I think there are libraries for automating embedding them and then using those in place of the actual image tag
whys it so complicated 😭
should just be able to use fill it dont make sense
but ty, u know of any libraries?
ah alright fair enough
i will take a look on google
but if anyone does know then lmk^^
i would recommend checking out https://fontawesome.com/
Unless you need specific icons they done have for free, its a great and fast way to implement svg icons into your project that you can change the color of with code
If you are set on using this svg with an img tag, you could try the css filter property. it might be a quick fix if you can work out the right set of filters for the color you want
depending on the color, maybe the value of grayscale or hue-rotate could give you the effect you are looking for