Screens

Tokenwright

See how tokens connect: what each one points at, what points at it, and what a change would reach. Also where a theme’s modes are set up.

What it’s for

Most tokens point at other tokens. A button’s background points at the brand colour, which points at a green from the palette. Tokenwright draws those links, so you can see where a value really comes from, and everything that would change if you changed it.

Flow, Hierarchy and Outline

Tokenwright’s Flow view: four columns (own values, tokens that point at them, tokens two steps away, components), with one chain lit from color.text.link to the Badge component, and the Release picker at the top.
Flow in the new layout, with a release selected: own values on the left, the tokens that point at them, and the components at the end. Shown with demo tokens.
Flow
Columns from left to right: the raw values, the tokens that point at them, and the components that use those. Hover a token to light up its whole chain; click to keep it lit.
Hierarchy
The same tokens as nested blocks, grouped by name. Click a block to zoom into it. Good for seeing the shape of a set.
Outline
A plain list, easiest with a keyboard or a screen reader.

Narrow the view with the search box, or by kind (Colour, Sizes, Type, Other). Show unused adds tokens with their own value that nothing points at, which are often safe to remove.

In the new layout, the Flow’s zoom controls sit in a row along its top, with a key to the marks on screen (a change in the release, a deprecated token, comments, components) and Map, which shows or puts away the small map of the whole flow. A search that matches nothing says so there, with Clear the search.

Mode and Release

  • Mode shows every value as it is in that mode, such as dark. Press M to flip through them.
  • Release picks any version of the theme (newest first, each with its state: waiting, live, replaced), or the one waiting for review, and highlights what that release changes and everything the change reaches. Tokenwright opens on the release waiting for review, else the latest release, so a release is always picked; choose No release to see the theme without one. It’s the quickest way to see how far a small change goes.

A token up close

Click a token to see it in the panel: its value in the current mode, its description, what it points at, and what points at it (tokens and components). Open in Tokens takes you to edit it.

Comments under it is the token’s conversation. Use it to ask why a value is what it is, or to suggest a change. Follow a thread to be told about replies.

Deprecations, below the flow, lists deprecated tokens and what still points at them. Editors can deprecate a token (or bring one back) there; each change is sent as a release for review.

Setting up modes

Modes are how one theme has light and dark (or compact and comfortable) values. Editors set them up with Modes at the top of Tokenwright, the Modes button on Tokens, or Edit on a theme in Overview › Add a mode. All three open the same dialog. Names are lowercase letters, numbers and dashes (like color-scheme or dark); an axis’s first mode is its default.

  1. Add an axis: a group of modes that switch together, such as scheme or density.
  2. Add its modes, such as light and dark. Make default picks the one used when nothing else is chosen.
  3. For each mode, say what each token set does: enabled (on in this mode), disabled (off), source (its tokens can be pointed at, but aren’t output themselves), or inherit (as the theme has it).

Tip: A common setup: a light set and a dark set with the same token names. In the light mode, enable light and disable dark; in the dark mode, the other way round. Every token that points at them now has both values.

Good to know: Delete axis and Delete mode remove them from the theme. Releases already published keep the values they had.

Keyboard

↑ ↓
Move within a column
← →
Follow a link back or forward
Enter
Select (pin the chain)
Esc
Clear the selection
+ −
Zoom in or out (or ⌘/Ctrl + scroll)
0
Fit every column
F
Centre the selection
M
Flip the first mode (e.g. light and dark)

Was this page useful?

Looking for the API, CLI or AI agents? They’re in the developer docs.