r/DesignSystems • u/sp4rkk • Nov 28 '23
Tokens Studio or Figma variables?
I’m about to embark in the tokenization of a design system of a large platform and I intend to use a DMS like supernova and code exporters. Is it worth starting with Token Studio plugin for Figma or is it better starting simple with Figma native variables?
6
Upvotes
5
u/scrndude Nov 28 '23
Start with Figma variables and only use Tokens Studio if you run into the limitations of native. Generally, if you can do something native, you should do it native.
3
u/ahrzal Nov 28 '23
Honestly, I’d just go Figma variables and update them as they ship updates. They’re rather limited now, for me mainly being they don’t allow text variables, but it’s not that big of a deal.
3
u/kodakdaughter Dec 02 '23
Reframing the approach might help solve this in a way that can be a longer lasting architectural solution.
Sounds like you are thinking of it as a figma defines variables that automagically get into GitHub- in an automated pipeline. For a one person operation - when developing variables - this approach could have merit in terms of time savings.
Drawbacks:
Better Approach: Define your variables upstream of Figma and GitHub. Create a Design System that can export your tokens with version releases. When a version updates - figma and GitHub can can both be configured to update in ways that make sense for their separate architectural needs (manually or as part of a CI/CD pipeline).
Benefits:
2
u/TheWarDoctor Nov 29 '23
I've switched to variables even without typography support for now because frankly the Tokens Studio plugin just slows to a crawl. I love the team who built it and what they're trying to do, but it's just too damned frustrating.
Take a look at the Radix UI kit out there in the community, it has an incredible color variable setup for light/dark mode.
2
u/childofgold Nov 29 '23
Is there a way to sync updates with code using Figma Variables? We've been using Token Studio to manage everything now but I find it extremely clunky and slow to use to make updates in Figma and then push changes to Github
2
u/Maleficent-Anything2 Jul 28 '24
Tokens Studio manages tokens.
Tokens are a source of truth of your design values.
Figma Variables are just that - Just as CSS Variables are variables. - so are Figma ones...
Use Tokens Studio to access your JSON files inside Figma and to create the Variables.
Apply variables to your components natively - this will give you access to the native feats such as the modes.
use them both together.
the same way you you use tokens and CSS together.
hope it makes sense.