Figma Support Forum

Retrieving content of the "code" pane

Is it possible to retrieve the generated code displayed under Inspect > Code using the Plugin API? I’m after the CSS specifically.

There is no API for that but the way it creates CSS is pretty naive so you can generate it yourself easily.

1 Like