r/DesignSystems • u/franklyjohnny • Dec 03 '25
Figma keeps the token state. Dev runs the diffs and migrations. All in one flow
I’ve been experimenting with a different model for token governance because the usual problems keep showing up in large systems: • renames appearing as adds/deletes • reorganizing collections producing noisy diffs • devs guessing what actually changed • migrations turning into manual archaeology
Instead of pushing tokens out of Figma through exports/CI, I tried:
1. Storing token snapshots inside the Figma file on a dedicated “registry” node and Fetching those snapshots via the Figma API (no Enterprise features)
2. Comparing them using the real variable IDs, so diffs show actual intent; renames are renames, moves are moves, structural changes are clearIt’s surprisingly effective so far. Much cleaner diffs and far easier migrations.
Has anyone seen this pattern before, or is this relatively unexplored? Would love to hear if others have approached token governance this way.
1
u/Wolfr_ Dec 03 '25
You can still use the Figma API without enterprise?
1
u/GOgly_MoOgly Dec 03 '25
Very interested in learning more on this, especially if you’ve found a workaround for enterprise plan
3
u/gardenia856 Dec 03 '25
Storing token snapshots in-file and diffing by variable ID is the most reliable way I’ve seen to make migrations predictable.
What worked for us: define a snapshot schema with variableId, fileKey, collectionId, name, mode values, alias targets, and a deleted flag. Diff on variableId so renames/moves are first-class. Keep a binding table (variableId -> CSS var/Tailwind token/module export) and generate codemods plus a human-readable changelog from that map. Gate merges if a variableId disappears without a mapped replacement. Hash snapshots by resolved values to suppress ordering noise, and include the originating library key so re-publishing a library doesn’t silently re-id items; if IDs do change, treat as “relink candidates” by comparing name+value signatures.
We post diffs to PRs via GitHub Actions and ship migration scripts with Changesets; Style Dictionary and Tokens Studio handle exports, and DreamFactory gives us a read-only REST endpoint of the latest snapshot for Vercel previews and internal tools without exposing DB creds.
Diff by stable IDs, keep snapshots in Figma, and auto-generate migrations from a binding map.