Alan7 Posted August 29 Share Posted August 29 This is more of a conflict with Webflow than a bug with Affinity. I have begun using Affinity 2 with Webflow and I came across a conflict between the Affinity svg save file and how Webflow handles it. Perhaps I am doing something wrong on my end, but I tried saving colored svg's using a combination of ways. So the issue is with Webflow's "No Code" principals. Most people follow tutorials and the most used way of embedding an svg into their website is to use the "SVG Import" plugin. This plugin sets "fill" to be "currentcolor" for most cases or sets the color on fill. Anyway, this causes an error/conflict with Affinity's svg file. If the svg was given fill before saving the Affinity file uses CSS, "style="fill:[color]"" for the fill. When uploaded to Webflow using this commonly used plugin, it is embedded as "["style="fill:[color]"" ]" and for a reason I am not sure of, this ends up rendering nothing or an all black svg that you cannot change the color of. The fix is simple enough. On the 'Path' settings you will have to change the left and right of the '=' to 'fill' = [#[hex] or 'currentcolor'], but because so many people do not know code it may cause frustration. Quote Link to comment Share on other sites More sharing options...
Hangman Posted August 30 Share Posted August 30 Hi @Alan7 and welcome to the forums, My first question is, why are you using a plug-in in Webflow to import your SVG file? Webflow has native support for SVG files... This logo was exported as an SVG from Affinity Designer and imported directly into Webflow... Quote Affinity Designer 2.5.5 | Affinity Photo 2.5.5 | Affinity Publisher 2.5.5 Affinity Designer Beta 2.6.0.2861 | Affinity Photo Beta 2.6.0.2861 | Affinity Publisher Beta 2.6.0.2861 MacBook Pro M3 Max, 36 GB Unified Memory, macOS Sonoma 14.6.1, Magic Mouse HP ENVY x360, 8 GB RAM, AMD Ryzen 5 2500U, Windows 10 Home, Logitech Mouse Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.