figma / code-snippet-editor-plugin

Translate component variants, properties, and more into dynamic code snippets for your design system.
https://www.figma.com/community/plugin/1311777988952403297/code-snippet-editor
MIT License
126 stars 11 forks source link

Exporting variables to code #43

Closed mikeysouthwell closed 4 months ago

mikeysouthwell commented 4 months ago

Hey Jake,

Would it be possible to use your plugin to export all the variables and styles out of Figma in a custom format that we set so it matches the code of our chosen platform?

As a simple example:

<Color x:Key="White">#FFFFFF</Color>
mikeysouthwell commented 4 months ago

Being able to alter the "Key" value would also be handy so we can rename this for variables that are in subfolders or referencing other variables

eg. BaseCollection\NeutralsFolder\white-color

jake-figma commented 4 months ago

variable names are available as params, but there is not a good way to load all variables with a codegen plugin in dev mode.