TokenLink overview demo reel.

TokenLink began as a side project to improve my own workflow and provide a better way to manage and interact with token systems. As it grew, I needed to expand beyond my own personal use cases and add support for more general editing and common token workflows. The result is a more robust and flexible tool now available in an open-beta.

Token management pain points

I kept a subset of color tokens in Figma, while the broader system—including composite values, units, and expressions—depended on token files and tools such as Tokens Studio and Style Dictionary. Keeping those representations in sync became part of the work itself.

Managing hundreds or thousands of tokens inside a plugin dialog made it difficult to inspect the system. Some updates took minutes and still failed. I found myself opening and hand-edited JSON just to get work done.

As more of my design-system work moved closer to code, I wanted a dedicated workspace where I could inspect relationships, edit values, and directly export CSS variables.

Foundations

I started with a single JSON document using Design Tokens Community Group (DTCG) conventions, plus metadata for token sets and themes. One file gave me a manageable scope for establishing the editing behavior before introducing more complex project structures.

The interface pairs a searchable table with a details panel. Selecting a token shows its authored value—the value written in the file—alongside the result of resolving its references or calculations. A dependency graph shows where the value comes from and which tokens use it.

Structured controls support values such as typography, borders, and shadows; a raw JSON editor supports bulk changes. Maintaining both adds complexity, but gives users focused controls and direct access to their files.

Presets and getting started

Requiring a file made it difficult to try the editor without an existing token system. Presets provided a way to explore the tool and for new users to learn the structure at the same time.

I added small examples of spacing, typography, and elevation alongside fuller systems with primitive, semantic, and component layers. Users can follow a reference, compare themes, and change a value within a working example.

Single-file presets protect the original and use Save As for an editable copy. Multi-file presets create a working composition with its own modules. Both provide structures to learn from and adapt without imposing them on imported systems.

Exports

Export needed to serve two purposes: preserve an editable system and generate output for implementation.

Single-file JSON retains authored values, references, and metadata. CSS can preserve references and calculations or resolve them to values; SCSS provides another implementation target. Compositions can export resolved output or a bundle of editable source files.

I made the options visible alongside an output example, with reports for problems that need attention. A successful download alone does not tell a user whether the result is usable. Style Guides offer a visual reference generated from a saved single-file project for review or sharing.

Single file vs multi-file compositions

Larger systems can benefit from separating shared foundations from theme or density variations. I added a composition workflow informed by the Design Tokens Community Group’s resolver work.

A composition uses a manifest to list token modules and define how they combine. Shared foundations can be reused across contexts, with later sources overriding earlier definitions. Setup, Preview, and Export let users organize the sources, inspect the combined result, and generate output.

The two models interpret references differently. In a single file, an alias—a reference to another token—can bind to a token within its own set. In a composition, aliases resolve after sources have been merged. Moving the same tokens between models can therefore change their values.

Challenges and approaches

As the application grew, the harder decisions concerned what users could trust: whether a preview matched an export, whether an edit preserved the source, and what an import could promise. Designing those behaviors required product choices, shared technical rules, and tests that followed the user’s workflow.

Token resolution

A semantic token such as surface.default can point to different colors in light and dark themes. The editor needs to track the relevant set and theme through each link in an alias chain.

For single-file projects, I established an explicit policy: check the token’s own set first, then eligible sets in the defined order, retaining the originating theme throughout the chain. A missing target stays unresolved instead of borrowing a plausible value from another theme.

Editor previews and resolved exports share that policy. Alias suggestions account for compatible token types, and the dependency graph uses shared reference analysis. This keeps the interfaces tied to the same interpretation of the token.

File and type support

Tools express similar concepts with different type names, key styles, and metadata. I had to decide how much TokenLink should reinterpret and how much it should preserve.

I separated the editor’s interpretation from the saved representation. Types such as spacing, sizing, and fontSize can share a dimension category for comparisons and suggestions while retaining their original labels in the file. Ordinary edits also retain existing token metadata and extensions.

Figma variables

A reliable Figma round trip would require collections, modes, variable identities, and aliases to survive changes on both sides. Rather than carry around all of the Figma metadata that related to variable id, collection ids, and other internal Figma pointers, I elected to support a one-way import from Figma instead.

This approach gives up the convenience of syncing edits back to Figma, but it allows TokenLink support broader token-file workflows without promising a lossless translation. Import is a starting point for further work, with its limitations visible. This mirrored the way I had handled my earlier migrations from Figma as a source-of-truth for tokens to a standalong token files which could then be edited and managed independently without Figma’s constraints on non-color token types. (e.g., I could use expressions, shorthands, and other advanced features that Figma’s variable system does not directly support.)

Testing and regression

The early AI-assisted proof of concept let me explore the product quickly. As features accumulated, checking every workflow by hand became a bottleneck, especially when refactoring behavior shared across screens.

I started with unit tests for resolution, expressions, and export formatting, then expanded into saving and full browser workflows. These follow a token through editing, saving, reopening, and export, alongside checks for theme changes, composition modules, and conflicting saves.

TokenLink is now an open-beta web application that brings token management, visual editing, and implementation exports into one workspace. It connects the work that originally sent me between tools; viewing token values across themes, dependencies and relationships, to a transformation pipeline to output CSS variables.

Alongside the app, I built a product site and documentation to introduce the workflow and support people using it. I continue to use TokenLink in my own design-system work and refine the experience as the beta develops.

Try the TokenLink beta or explore the product site.

Tags