I am creating an icon set, and I want to deliver it to the development team in SVG format.
The problem I faced is that some SVG codes export with the stroke that I want, but some export as a filled one (it seems that Figma first use outline stroke then export it)
You can see two different icon svg file
Yeah, this is super annoying. It’s real finnicky though. If you are able to put the individual parts of your icon on their own layers it might export like you want. I needed mine to all be flattened and was able to get it to work by flattening one part and then the whole icon. It’s super weird.
Have you made a union of any of these stroked elements?
Figma will convert any union elements, even if they are strokes, to fills.
Workaround might be to simply group these stroked elements together in one group, and try to export then.