RedMadRobot / figma-export

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

Can we include Figma variables in a script? #217

Open varshasingh1512 opened 10 months ago

varshasingh1512 commented 10 months ago

1- Can we include Figma variables in a script? 2- Is there a way to add Palette.json and Semantic.json files in some way?

subdan commented 10 months ago
  1. Which variables? Which script?
  2. What is Palette.json and Semantic.json?
fedulvtubudul commented 9 months ago
Screenshot 2023-09-15 at 20 26 06

This is how Figma variables and variable modes look like, and it seems like this feature request is relevant for me as well.

https://help.figma.com/hc/en-us/articles/14506821864087

fedulvtubudul commented 9 months ago

I forked figma-export and tried to implement Variables import functionality similarly to Styles import. But it fails with error 403 saying "Limited by Figma plan". After reading docs more deeply, I realised you need Enterprise Figma plan to access variables via REST API (Whyyyy!??). So using this new feature does not look so attractive anymore, as it gets 6 times more expensive than staying on Professional plan and continue using Styles 😅.

sashensingh08 commented 6 months ago

@fedulvtubudul by any chance could you make your fork public to see your changes? 😅 or any plans on the team making it work with variables?

fedulvtubudul commented 3 months ago

@sashensingh08 no chance, as I can't test it. This feature is not available for Professional plan we use: https://www.figma.com/developers/api#variables

If someone will give me access to Enterprise-limited feature, I'll give it a try. @chrissantamaria @figmel @jfirebaugh @klin-figma @nlevin @reiddraper @Slava @thehandsomepanther