RedMadRobot / figma-export

Command line utility to export colors, typography, icons and images from Figma to Xcode / Android Studio project
MIT License
718 stars 114 forks source link

Can I make a PR to support generation from variables? #227

Closed aduuub closed 6 months ago

aduuub commented 6 months ago

Our design team uses variables (which has been described as the new way of doing things- see screenshot). It's structured with a variable name for the colour with a "light" and "dark" scheme.

It would be great to be able to use this tool with them instead of Figma styles.

Would you be open to me raising a PR for this?

Screenshot 2023-12-20 at 1 40 12 pm
aduuub commented 6 months ago

cc: https://www.figma.com/developers/api#variables

aduuub commented 6 months ago

PR raised here: https://github.com/RedMadRobot/figma-export/pull/228

Would like to get this working with the API instead of downloading the token but it's still in Beta and for Enterprise customers only so this at least allows a short term solution until the API is more stable and readily available.

Will make a further PR to improve on that. Could also expand to support more than colours too