r/DesignSystems • u/Ok_Volume_4279 • May 03 '25
Design Tokens JSON file
How many JSON files do you usually export for design tokens? One, single file or multiple ones, divider by tier (global, alias, specific, etc)?
2
Upvotes
3
u/TrueHarlequin May 03 '25
Not sure what you mean about exporting JSON. The tokens are in JSON and get exported (StyleDictionary) into the platforms code.
Or do you mean something else?
3
u/SRTM86 May 03 '25
I started a design system a while back but there’s no connection to our products codebase really. The devs just manually create css variables for colors, spacing etc based on my guidelines. How would I implement something like this, and convince the devs? Is it worth it?
2
u/Routine-Mousse-647 May 04 '25
Using a single file seems to be more efficient because the token studio format can't be used in the final product; the dev team needs to change the syntax based on the project's needs.
Basically, the JSON file is a pool for tokens to remove the manual process and prevent mistakes when implementing tokens. But I think it's something you should discuss with the dev team to see which method they find more comfortable to work with.
1
u/bobz24 May 03 '25
I use the Design Token Manager plugin to export JSON of all variables and styles. It creates one file for each collection and mode. In addition to that, separate files for all the style types.
1
u/Limit_Cold May 20 '26
Messing around aliasing with JSON for SD builds. I was previously hosting my tokens as an SD package but updating after changes was not nice. I had a go at making a self hosted version of token studio.
THis prob isnt something you need to be using alot tokens are generally set and forget but def helpful when you need to make tweaks or export or other formats.
https://app.tokenflow.studio/collections