Join the Webstudio community

Updated 5 months ago

Change color svg import

At a glance

The community member asked if it is possible to change the color of an SVG image imported into an image element in the Webstudio menu. The comments indicate that this is not possible with the img element, as HTML does not allow changing the colors of an SVG inside an image. However, the comments suggest that if the SVG is embedded directly in the HTML using the embed element, then it would be possible to change the color.

Is it possible after importing an svg into an image case to be able to change the color in the Webstudio menu ?
In code normally it is the fill that is changed.
O
X
4 comments
Image element in html doesn't allow to change colors of the svg inside, this is how html works.
if you want to do that you will need to put the svg into html embed
Thank you, the subject is clear.
Add a reply
Sign up and join the conversation on Discord