Images as inline SVGs

Hi there, we need to dynamically manage icon colors, thus we’d like to be able to handle prismic images as inline SVG. As this is not the default behaviour (), how can we handle that ? Thanks

You can use SVGs with prismic, and you can set the text colour / background colour of the SVG container for dynamic image colours.

Hey Simon welcome to the forum!

Well, you can't actually modify the colors of an SVG file inside Prismic. But you can add another field, like a select, or key text field just beside your image field that serves as a 'class name' selector. That way you can select a given color while editing your documents and then add it as an actual CSS attribute in the code!