alinnert Posted January 12, 2017 Share Posted January 12, 2017 I'm using Affinity Designer to create SVG icons for a website. And I'm using PostCSS and the plugin "postcss-inline-svg" to use those SVG files and apply CSS to them. The problem is, that Affinity applies background colors like this: <path d="..." style="fill: #123456;"/> The style attribute has the highest priority in CSS though. That means I can't apply extra CSS rules to it. If I remove the style attribute or replace it with this: <path d="..." fill="#123456"/> ...it works fine. Can you add an option to use `fill="#123456"` instead of `style="fill: #123456;"` when exporting SVG? That'd be great. Currently I have to do it manually. Thank you. Archimedes and ReinhardK 2 Quote Link to comment Share on other sites More sharing options...
Archimedes Posted June 19, 2019 Share Posted June 19, 2019 Anything ever happen with this? Quote 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.