A token set holds the colors, fonts and spacing of a site. Create one, change it with a contrast check and a preview, and activate it when it is right.
For designers and site owners · Leitvia Studio · Administrator · Checked with Leitvia 1.2.69 and Leitvia Studio 1.3.65
Create a token set
A token is one named value, such as the accent color. A token set gives a value to every role of the theme.
- Open Leitvia Studio › Tokens and click Create set.
- Under Source, choose where the values come from. Current site is preselected: the theme together with the colors and fonts changed in the Site Editor, so the set looks like the site does now. You can also choose Active theme (the theme alone) or one of the Style variations.
- Enter a Title, or leave it empty to use the name of the source.
- Click Create.
The new set opens with the values of the source. Nothing on the site changes until you activate it.

Transcript of the video
- Under Studio, Tokens, Create set starts from the current site, the theme or a variation.
- Each color role has its value; the contrast check runs on every change.
- The preview shows the saved set on real patterns before you activate it.
Change values with the contrast check
- Open a set from the list. Each role shows its value: colors, font sizes, font families, spacing, radius sizes and shadows.
- Change a value. Enter colors as
#rgbor#rrggbb, or pick them. - Read the table Contrast. Each pair, such as text on surface, shows its ratio, the minimum of WCAG 2.2 AA and Pass or Fail.
- Click Save token set. While a pair fails, the button is blocked and names the pair.
- Check the Preview below: a hero, a content section and a call to action with the saved set, at a Viewport of 390, 782 or 1440 px.
Every save keeps a revision of the set. The live site still shows the active set.

Activate a set
- Go back to Leitvia Studio › Tokens.
- Open the menu Actions of the set and choose Activate.
- The dialog lists which values it replaces on the whole site. Click Activate.
The set shows the status Active, and every page uses its values. The earlier values stay in the style revisions of WordPress. AI agents work with the same roles, so pages they build by vibe coding take your colors and fonts as well.

If you save the active set again, or someone changes the colors in the Site Editor, the list shows a warning that the site no longer looks like the active set. Click Apply again to bring the set back. To stop such colors from being saved in the Site Editor at all, keep Block saving palettes that fail the contrast pairs in the Site Editor turned on under Leitvia Studio › Settings › General. It is on by default.
Show a set for a limited time
A temporary change shows another set to visitors for a period, for a sale or an anniversary, and switches back on its own.
- Open the set you want to show.
- Under Schedule as temporary change, enter Start and End in the time zone of the site.
- Click Save schedule.
The list shows the period under Temporary change. The global styles stay unchanged, and cached pages can switch a little later. Remove schedule ends a running temporary change at once. Agencies schedule overlays for many sites in the fleet.

Move a set to another site
- In the list, open the menu Actions of the set and choose Export. The browser saves a token file.
- On the other site, open Leitvia Studio › Tokens and click Import file.
- Choose the file under Token file (at most 512 KB), enter a Title and click Import.
The file is checked against the theme before it is saved. Token files use the DTCG format, the shared format for design tokens of the Design Tokens Community Group. You can also keep the file in your account as a design system.

Undo
- To go back to an earlier state of a set, open its menu Actions, choose Revisions and restore one.
- To go back to the earlier look of the site, activate the set you had before.
For developers
With WP-CLI, every command except list runs as a user and needs --user. export writes the title and the DTCG document as one JSON object, and import expects exactly that object, not a bare DTCG file. More in the Developer guide.
wp leitvia tokens list
wp leitvia tokens export 12 --user=admin > brand.json
wp leitvia tokens import brand.json --user=admin
wp leitvia tokens activate 13 --user=admin
Read next: Patterns and the Pattern Lab, Design systems for clients and Design.