Skip to main content
Solved

Variables: JSON export and import & font family changes among modes


w_karen

Hello all,

I am excited for Variables!

Thinking about transitioning to it to manage our themes across multiple brands, but ran into some challenges:

  • text styles are tied into the string variables
  • no option to set different mode for one text style to render in different font families (which changes between our brand A and B)

We have extensive primitive and semantic tokens set up in Tokens Studio, which we can export to JSON, but I don’t see a way for Variables to import JSON or consume existing Tokens Studios files. would there be a future update to ease the transition?

Best answer by ksn

Oh! Also, a sidenote: our Community has plugins that may fit what you need.

Give it a view when you have a chance!

View original
This topic has been closed for comments

5 replies

ksn
Figmate
  • Community Support
  • 1624 replies
  • July 6, 2023

Hey hey! Sorry for the late response to this, but I’m checking in with the teams that work with variables to see if there are plans to help with this. Will get back to you soon as an edit to this comment 😀

EDIT:

You should be able to import JSON-formatted tokens using the API – we have a code sample on Github that might help: https://github.com/figma/plugin-samples/tree/master/variables-import-export

Can you let me know if you’re looking for something different? Hope this helps a bit in the meantime!


w_karen
  • Author
  • New Participant
  • 7 replies
  • July 10, 2023

Hi Kim, thanks for the response! I am sure that the API doc is helpful but to be honest our team is basically all designers/non-engineer and we really don’t know how to work with the API.

I’d prefer something more of a simple UI with an export or export button/action on the Variables panel (or wherever Figma team think fits the best)

thanks a lot.


ksn
Figmate
  • Community Support
  • 1624 replies
  • July 12, 2023

No problem! Appreciate the extra context – I just passed that feedback over to the teams working on Variables.

Totally understand where you’re coming from. Hopefully we’re able to make this more simplified in the future 😁


ksn
Figmate
  • Community Support
  • 1624 replies
  • Answer
  • July 12, 2023

Oh! Also, a sidenote: our Community has plugins that may fit what you need.

Give it a view when you have a chance!


w_karen
  • Author
  • New Participant
  • 7 replies
  • October 25, 2023

yes just used some since last week. Appreciate the update !


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings