Spectrum is now read-only. Learn more about the decision in our official announcement.


Figma is the first collaborative UI design tool built in the browser. Join our growing community and kick off a conversation!


SVG Class Attribute Request

March 22, 2019 at 6:06pm
The Figma community has a new home. This thread is preserved for historical purposes. The content of this conversation may be innaccurrate or out of date. Go to new community home →

SVG Class Attribute Request

March 22, 2019 at 6:06pm
Hey Figma Community,
This may sound like a specific ask, but I'd love the ability to add a CLASS to one or more objects at a time that would be included on SVG export. Currently I do this by building my file in Figma, and then exporting the SVG and opening it up in Illustrator to add a "graphic style" in which I name it what I want that CLASS attribute to be. And then I re-export the SVG from there, to retain that attribute.
I have attached a screenshot of what some of the code looks like (with some of the user facing result beside it), for reference.
Screen Shot 2019-03-22 at 2.05.05 PM.png
Thank you!

March 22, 2019 at 6:08pm
Thank you! I need this exact same feature too. It would be great if I could just do it in Figma instead opening Ai.