Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can we include Figma variables in a script? #217

Open
varshasingh1512 opened this issue Aug 28, 2023 · 5 comments
Open

Can we include Figma variables in a script? #217

varshasingh1512 opened this issue Aug 28, 2023 · 5 comments

Comments

@varshasingh1512
Copy link

varshasingh1512 commented Aug 28, 2023

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
Copy link
Collaborator

subdan commented Sep 3, 2023

  1. Which variables? Which script?
  2. What is Palette.json and Semantic.json?

@fedulvtubudul
Copy link

fedulvtubudul commented Sep 15, 2023

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
Copy link

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
Copy link

@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
Copy link

fedulvtubudul commented Mar 28, 2024

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants