What it is

This manual describes TokenForge 0.58.2.

TokenForge is a design system you set up once and use everywhere. Colours, type and spacing scales, layout, buttons, cards, icons, effects and more are CSS variables and classes. They are built into one static stylesheet. It loads on your front end, in the block editor and, when a supported page builder is active, in the builder.

Everything runs on your own site. There is no account and no licence key. TokenForge is free under the GPLv2 or later. The only outside service is Google Fonts, and only when you ask for it (see Privacy and external services).

Requirements

TokenForge works on any WordPress site. The builder tools switch on only when a supported builder is active.

What is inside

AreaWhat it doesWhere to set it
Design tokensColour families, fluid type and spacing scales, layout, borders, shadows and icons as CSS variablesColors, Typography, Spacing, Layout, Borders & Shadows, Tokens
Utility classesSpacing, grids, flex grids, flex and alignment, text styles, colour and more, with optional breakpoint variantsOptions > Utility framework, Cheatsheet
ComponentsButtons, links, cards, ribbons, icons, form fields, overlays, surfaces and proseThe Components and Content & Effects groups
EffectsEntrance, exit, visible and hover effectsEffects
Dark modeLight and dark values for every colour, by section, with an optional visitor switchColors
AccessibilityContrast checks, automatic attributes, focus rings, reduced motionAccessibility
FontsYour own font files, or a Google font copied once to your serverTypography
WooCommerceShop, product, cart, checkout and account pages styled with your tokensWooCommerce
BuildersThe TokenForge window, right-click menus, suggestions and moreBuilder, Setup wizard, Options
Block editorPresets, patterns, button styles and editor toolsBlock editor
Data and toolsExport, import, design token files, settings history, WP-CLI, tools for AI agentsImport, export & reset, Options

How it works

You change settings in the dashboard and press Save. TokenForge then writes the stylesheet to uploads/tokenforge/. The CSS is built when you save, not on every page load. With WooCommerce, the shop styles go into a second file that loads only on pages that show the shop. While "Leave out unused utility classes" is on, a separate file with every class is also written, for the builder canvas.

What a new site starts with

You can reset to the starter values at any time, for everything or for one part. See Import, export and reset.

Install and first steps

Install

  1. Upload the tokenforge folder to /wp-content/plugins/, or install the zip from Plugins > Add New > Upload.
  2. Activate the plugin. A new site starts with the starter design system. If the builder in use supports theme styles, TokenForge links or creates a theme style for the whole website on the next page load.
  3. Open TokenForge in the admin menu, change what you like and save.

First steps

The Home screen has a Getting started list. These are its six steps, in order (Connect the builder shows only when a supported builder is active):

  1. Pick your colours. Set the base colour of each family on the Colors screen. The shades and the dark mode values are made for you.
  2. Set your fonts. On Typography, upload your font files or copy a Google font to your site, then choose the body and heading fonts.
  3. Check the fluid scales. Text and spacing grow smoothly between the smallest and the largest screen width you set on Typography.
  4. Style buttons and links. One look for every button. Each colour family gets its own variant.
  5. Connect the builder. The theme style, classes and variables follow TokenForge, and changes made in the builder come back.
  6. Keep a backup. Export everything to a file before big changes. You can import it on another site.

Then open Accessibility and look at Palette contrast. It lists text and button colours that are hard to read, with a suggested fix.

Saving

The top bar has three buttons. Save (also Ctrl + S, or Cmd + S on a Mac) stores your changes and rebuilds the stylesheet. Regenerate rebuilds the stylesheet without changing anything. Discard changes appears while you have unsaved changes and undoes every change since the last Save.

The setup wizard

If the active builder supports it, the Setup wizard sets the builder's own settings the way TokenForge works best and connects the two. Until it has run, Home shows a card with the text "New site? Set up the builder in one go." The wizard has two steps:

You choose what is ticked, then press Apply. Undo builder settings puts the builder's settings back as they were before the first run. The wizard never touches site-specific settings such as licences, API keys, user and role assignments or remote template sources. You can run it again at any time. Reload the builder after it has run.

Where things are

The dashboard screens

The sidebar shows the screens in five groups, in this order. Some screens only show when they apply: the Setup wizard, the Block editor (while the block editor is in use) and WooCommerce (while WooCommerce is active). The Builder screen always shows. Without a supported builder it lists the builders TokenForge knows instead of switches.

Fields work the same everywhere. A field shows its default as grey placeholder text. When you change it, a small button next to its name resets it ("Reset to" and the default). A question mark next to a name opens a short explanation. Most panels have a switch in their header that turns that part on or off. The top bar of a screen has Open all and Close all for its panels, and, on a screen that is a module, a Module on switch.

Start

Home

Every screen as a row, with a short description. Screens that are modules have a switch: switch one off and its classes and styles leave the stylesheet, while its settings stay saved. The colour, size and space variables stay, because other parts use them. The modules are Colors, Typography, Spacing, Layout, Borders, Buttons, Cards, Icons, Forms, WooCommerce, Content, Overlays, Effects, Base, Recipes and Builder. Above the list you may see the setup wizard card, the Getting started list (hide it with Hide, bring it back with "Show getting started") and a warning with a Check contrast button when some colour pairs are below the minimum.

Cheatsheet

Every class, variable and recipe, one click to copy. See Utility classes and the cheat sheet.

Accessibility

One hub for the accessibility tools: This page (the page check and the Design check, inside the builder window of a builder that supports them), Palette contrast, Automatic accessibility attributes, Focus, Reduced motion, External-link indicator and Canvas badges. See Forms, WooCommerce and other features.

Recipes

Ready-made snippets typed as ?name. See Recipes.

Setup

Setup wizard

Sets the builder up in one go. See Install and first steps.

Options

How the dashboard looks, the TokenForge window, AI agents, builder sync, performance, breakpoints, cascade layers and the utility framework.

Builder

The tools for the page builder in use: canvas aids, the dark mode preview of the canvas, right-click menus, the input helper and more. Which panels show depends on the builder. See Builders.

Block editor

Presets, editor interface, canvas, patterns and button styles for the block editor. See The block editor.

Import, export & reset

Move settings to another site, back up, restore and start over. See Import, export and reset.

Foundations

Colors

Colour families, shade generation, dark mode, colour assignments, background relationships and the text selection colours. See Tokens, colours and scales.

Typography

The viewport range, the text and heading scales, size overrides, self-hosted fonts, body text and headings, per-heading overrides and text size classes. The root font size is here too.

Spacing

The space scale, section spacing and the automatic gaps.

Layout

Content width, sections and gutters, boxed layout, the content grid and grids. Header height, Sticky, Content offset and Scrolling are here too.

Borders & Shadows

Radius, auto radius, borders, dividers, inverted radius, and box, text and drop shadows.

Tokens

Every CSS variable TokenForge writes, with the setting that makes it. You can edit tokens by hand and add your own.

Data attributes

Every TokenForge data attribute, and where your site uses it. See Forms, WooCommerce and other features.

Components

Buttons & Links

The button system (btn--* classes), the button style, colours per family and link styles.

Cards & Ribbons

The .card class, its headings, media and avatars, boxed icons and buttons, and corner ribbons.

Icons

Icon sizes, icon style (plain or boxed) and icon lists.

Forms

Form field styles and the form extras for the builder's own form, plus the form submissions tools.

WooCommerce

Styles for the shop, product, cart, checkout and account pages, each part with its own switch.

Content & Effects

Content

Flow spacing (vertical rhythm), prose styling for long text and blockquotes.

Surfaces & Overlays

The .overlay tint, custom overlays (.overlay-1 and so on) and background textures (.surface-1 and so on).

Effects

Transitions and easing, the scroll, visible and hover effects, and the default button effects. See Effects.

Base

A light reset and helper classes: object fit, background layers, screen-reader text and CSS columns.

Tokens, colours and scales

What a token is

A token is a CSS variable with a name, such as --primary, --space-m or --text-m. You use it anywhere with var(--space-m). Most tokens come from your settings. Colors makes the colour families. Typography, Spacing, Layout, Borders & Shadows, Icons and Effects make their own variables. All of them are written when the stylesheet is built.

The Tokens screen

This screen lists every variable TokenForge writes, in tabs by category, with a Filter box. The last column, "From / category", says which setting makes a variable, so you know where to change it.

Colour families

The starter design system has eleven families: primary, secondary, tertiary, accent, base, neutral, action, success, danger, warning and info. Each one is made from a single base colour. TokenForge makes the base colour, a hover step and six shades (ultra-light, light, semi-light, semi-dark, dark and ultra-dark) in OKLCH.

The variables follow the family name: --primary, --primary-hover, --primary-light, --primary-ultra-dark and so on. A family also gets -ref and colour channel variables (--primary-hex, --primary-rgb, --primary-hsl, --primary-h, --primary-s, --primary-l, --primary-r, --primary-g and --primary-b) and transparent steps from --primary-trans-10 to --primary-trans-90.

Dark mode

Dark mode is set on the Colors screen, in the Dark mode panel.

Color assignments are the named colours behind .bg--ultra-light, .bg--light, .bg--dark, .bg--ultra-dark and the text colours .text--dark, .text--dark-muted, .text--light and .text--light-muted. A .bg--* class sets a background and a readable text colour. Background relationships shows what each .bg--* sets for everything inside it: text, headings, links, the colour family of buttons and the icon scheme. Add .unrelate to a button to keep its own colours.

Fluid scales

On Typography you set a viewport range: the narrowest and the widest screen width (the starter values are 360 and 1366 px). Every fluid value grows smoothly between them. Each scale has a base size and a ratio at both ends.

ScaleVariablesSet on
Text--text-xs to --text-xxl (m is the base)Typography > Text scale
Headings--h1 to --h6 (h4 is the base)Typography > Heading scale
Space--space-xs to --space-xxlSpacing > Space scale
Section spacing--section-space-*, the space steps times a multiplierSpacing > Section spacing

Width, grid and other tokens

Fonts

Utility classes and the cheat sheet

The utility families

TokenForge writes utility classes for your tokens. Four switches under Options > Utility framework control the families:

Three more switches add optional sets, all off by default. "Link, focus, bullet and column rule colour classes" adds link-{colour}, link-hover-{colour}, focus-{colour}, marker-{colour} and col-rule-{colour} for every colour. It adds about 30 KB. "Colour classes with double dashes too (bg--primary)" also writes the double-dash spelling of the colour classes, such as bg--primary and link-hover--primary, for pages moved from another utility framework. It adds about 10 KB. "Breakpoint variants (-at-xs to -at-xxl)" is described below.

Where the builder supports it, the switch "Register classes with the builder" (on by default) adds the utility classes to the builder's class list, so they autocomplete in its class field.

Class names at a glance

GroupExamples
Sections and widthssection--m, section--l-to-m, section--none, header--m, content-width, content-grid (switch on Layout > Content grid first), content--feature, content--feature-max, content--full. On a new site every top-level section is already a content grid.
Spacingpad-m, pad-block-m, pad-inline-m, mar-m, mar-block-m, mar-inline-m, gap-m. A size can shrink on small screens: pad-l-to-m. Block is top and bottom, inline is left and right.
Automatic gapscontainer-gap, content-gap, grid-gap, gap--none
Typographyh1 to h6, text--xs to text--xxl, text-center
Colourbg--light, bg--dark, text--dark, text-primary, bg-primary, border-primary
Buttonsbtn--primary, btn--primary-dark, btn--primary-light, btn--outline, btn--s, btn--none
Cards and iconscard, is-clickable, is-above, icon--m, icon--boxed, icon--plain
Borders and shadowsborder, border--light, divider, radius-m, shadow-1 to shadow-5, text-shadow--1, drop-shadow--1
Overlays and surfacesoverlay, overlay-1, surface-1, ribbon, ribbon--top-right

The Cheatsheet lists the exact name of every class your site has, so use it as the source of truth.

Coming from another utility framework? Its class names work where the result is the same, for example grid--3 works like grid-3, flex-grid--3 like flex-grid-3 and text--center like text-center. Its breakpoint names are matched by width, so with the starter breakpoints grid--m-2 works like grid-2-at-s (this needs Breakpoint variants). Its colour names with two dashes, such as bg--primary, need the switch "Colour classes with double dashes too (bg--primary)". Names whose result would differ are not copied: use the TokenForge name for those.

Grids

Flex grids

A flex grid puts equal-width items in rows that wrap. A short last row is centred instead of leaving an empty gap on one side.

<div class="flex-grid-3 flex-grid-2-at-m">
	<div class="card">One</div>
	<div class="card">Two</div>
	<div class="card">Three</div>
	<div class="card">Four</div>
</div>

Flex, alignment and other layout classes

Text classes

Breakpoint variants

When you switch on Breakpoint variants (-at-xs to -at-xxl), the layout and text classes get a copy for each breakpoint, named {class}-at-{bp}. The breakpoint names are xs, s, m, l, xl and xxl. The class applies at that width and below. Examples: col-span-1-at-m, flex-col-at-s, flex-grid-2-at-m.

The widths come from Options > Breakpoints. Variants are off by default because they add a lot of CSS. Turn on "Leave out unused utility classes" together with them, so only the ones you use stay.

Leave out unused utility classes

This setting (Options > Utility framework) gives visitors a smaller stylesheet. After a scan of your site, TokenForge keeps only the utility classes and the data attribute styles your content uses.

The Cheatsheet

The Cheatsheet screen lists the classes, variables, recipes and data attributes your site has, each with a plain explanation and the CSS it applies. It is built from your current settings, so a switched-off class is not listed.

Effects

The Effects screen has one panel for transitions, one for each kind of effect and one for the default button effects. The whole module starts switched off on a new site. Switch it on at Home.

Transitions and easing

Entrance (scroll)

An entrance effect plays while an element scrolls into view. The classes are .on-enter--fade, --float, --sink, --slide-left, --slide-right, --grow, --shrink and --blur (each starts with .on-enter). Effects combine: on-enter--fade on-enter--float.

Exit (scroll)

.on-exit--* and .on-exit-all--* use the same effects as the entrance ones, except parallax, while an element scrolls out of view. .on-exit--stagger works like the entrance one. Their settings mirror the entrance ones; the amounts are named "Fade: end opacity", "Grow: end scale" and "Shrink: end scale".

Visible (once)

.on-visible--* effects play once when an element becomes visible. .on-visible-all--* on a parent does it for every child, and .on-visible--stagger delays each child a little more than the one before. The Threshold (0 to 1) says how much of the element must show first: 0.2 means 20 percent. Without JavaScript the content simply shows. The attribute data-tf-reveal uses these effects too, so the Effects module and the Visible (once) panel must be on for it. data-tf-reveal="fade" fades the element in, and data-tf-reveal="up" fades it in and slides it up into place.

Hover and hover borders

Reduced motion and the builders

Recipes

A recipe is a ready-made snippet you call by name. Type ?name in the builder's custom CSS box, pick it from the list or finish with a semicolon, and it expands into CSS. In a recipe, %root% stands for the selector of the selected element. The Recipes screen has a switch for the whole feature and a list of the built-in recipes with a filter.

Where recipes work

The built-in recipes

CategoryRecipes
Color?primary-clr, ?primary-light-clr, ?primary-hover-clr and the same for every family and shade, plus ?color-mix and ?transparency
Gradients?linear-gradient, ?gradient-radial, ?gradient-conic, ?gradient-sharp, ?gradient-fade, ?gradient-vignette, ?gradient-text, ?gradient-border
Pseudo?before, ?after, ?before-after, ?hover, ?focus-visible, ?hover-focus, ?hover-exclude-touch
Grid?auto-grid, ?variable-grid, ?grid-1 to ?grid-12, ?grid-1-2 and the other ratios, ?flex-row, ?flex-column, ?flex-grid, ?masonry, ?content-grid
Text?ipsum-short, ?ipsum, ?ipsum-long
Media queries?breakpoint-xs to ?breakpoint-xxl, ?breakpoint-up-xs to ?breakpoint-up-xxl, ?card-container, ?container
Interaction?clickable-parent, ?clickable-card, ?focus-parent, ?btn, ?tooltip, ?skip-link
Layout?columns, ?divider-all, ?divider-top, ?divider-bottom, ?line-clamp, ?concentric-radius, ?concentric-radius-reverse, ?list-none, ?border, ?overlap, ?overlap-alt, ?footer-reveal, ?is-bg, ?border-check, ?center-all, ?center-top, ?center-bottom, ?center-left, ?center-right
Fades?fade-top, ?fade-right, ?fade-bottom, ?fade-left, ?fade-block, ?fade-inline, ?fade-all
Code?script and ?query-children (snippets for builder elements), ?property (an @property rule)

The breakpoint recipes use the widths from Options > Breakpoints. Your own custom recipes are not part of the WordPress.org version of TokenForge. Developers can add recipes with the tokenforge_recipes filter (see For developers).

Builders

TokenForge works on any WordPress site. The builder tools switch on only when a supported page builder is active. The supported builders are Bricks, Etch, Oxygen 6, Breakdance, Elementor (classic widgets and containers) and Divi 5. The block editor has its own screen (see The block editor). The Builder screen shows the panels that fit the active builder. If no supported builder is active, it lists the builders TokenForge knows, with their status, instead of switches.

What works in each builder

ToolBricksEtchOxygen 6BreakdanceElementorDivi 5
TokenForge stylesheet in the editor canvasYesYesYesYesYesYes
The TokenForge windowYesYesYesYesYesYes
Right-click the class field to add or remove TokenForge classesYesYes (the class area of the CSS panel)YesYes (the Classes field)Yes (the CSS Classes field)Yes (the Attributes list, Advanced tab)
Right-click a style field to insert a TokenForge variableYesNoYesYesYes (size fields)Yes (size fields)
Input helperYesNoYesYesYes (fields with the custom unit)Yes
Variable, class and recipe suggestions in the custom CSS boxYesYes (the CSS editor)YesYesYes (Custom CSS needs Elementor Pro)Yes (Free-Form CSS)
Placeholder text recipes in text fieldsYesYesYesYesYesYes
Light and dark preview of the canvas (moon button, while dark mode is on)YesYesYesYesYesYes
Sync of variables, colours and classes, theme style, Style ManagerYesNoNoNoNoNo
Page check, Design check, BEM class generatorYesNoNoNoNoNo
Canvas tools, Add Elements panel tools, template tweaks, setup wizardYesNoNoNoNoNo
Form toolsYesNoNoNoNoNo

Elementor's new atomic elements are not covered yet. Divi 5 is supported; older Divi is not. Oxygen 6 and Breakdance share one code base and cannot run together on one site.

The TokenForge window

The window is the whole dashboard, docked inside the builder. Open it with the shortcut (set under Options > TokenForge window; the starter value is Alt + Shift + T) or the TokenForge button. It is shown to administrators only. It is the same dashboard, so every screen is there. Where the builder supports it, "Show in builder canvas while editing" adds a TokenForge button in the corner of the canvas. While dark mode is on, a small moon button beside the TokenForge button switches the canvas between light and dark, so you can check both colour schemes while you edit. Only you see it and nothing is saved (Builder, Dark mode preview switches it off). The window also opens on your site's pages for administrators, with the shortcut or the admin bar link.

Right-click menus

The input helper

Leave a style field or press Enter. A TokenForge variable typed by name (space-m or --space-m) becomes var(--space-m). Maths with a variable, such as var(--space-m) * 2, is wrapped in calc(). A name with no dash in it, such as primary, needs the two leading dashes. Anything else stays as typed, and the builder's undo takes the change back. The switch is "Turn typed variable names and maths into var() and calc()" under Builder > Inputs & class list.

What only Bricks has

Add-ons for builders

A developer can load scripts and styles in the editor of every supported builder with the action tokenforge_builder_enqueue. See For developers.

The block editor

The block editor works on any site. Everything for it is on the Block editor screen. The screen shows while the block editor is in use, and every switch has a tooltip. Reload the editor after saving.

Presets

Your colours, font sizes, spacing, font families and shadows become the presets the editor offers. The setting "TokenForge presets" has three choices:

With Replace, "Map the theme's old preset names to the nearest tokens" points the theme's old preset names at the nearest token, so existing posts and the theme's own styles keep their look. It adds CSS only and never changes your content. Where the theme uses one of TokenForge's names for another value (a white "base" in a theme, for example), the theme keeps the name and TokenForge's preset gets tf- in front.

TokenForge never changes the styles you saved in the Site Editor. A preset list you saved there still shows first in its picker. The Site Editor parts need a block theme. Presets, patterns and button styles work with any theme.

Editor interface

These switches change how the editor looks and opens for you. Nothing here reaches your pages.

Canvas, content and window

Also in the block editor

Forms, WooCommerce and other features

Forms

The Forms screen styles form fields everywhere and, in a builder that supports it, adds extras to the builder's own form element. No new elements are added, and the answers reach the email, webhook, saved submission and other actions as before. Each part has its own switch. The Builders section lists the builders that have the form tools.

Form submissions adds to the builder's own submissions screen without changing its table: search, one entry laid out, read and unread marks with a count in the menu, statuses (new, done, spam), private notes, column choice, editing an entry, and export of ticked rows as CSV or JSON. Cells that start with =, +, - or @ get a leading quote in an export, so a spreadsheet does not run them. "Who can use these" sets the lowest role. Editing answers and deleting always need an administrator.

Delete old submissions automatically removes submissions older than a number of days, once a day. Nothing is deleted until you run a Dry run, look at what it would remove and confirm it. After you change the days, it waits for a new dry run. Each form can also have its own number of days in its Save submission settings.

WooCommerce

While WooCommerce is active, the WooCommerce screen styles your shop with your tokens: shop, product, cart, checkout and account pages, product cards and filters, header carts, and the Cart, Checkout, Mini-Cart and product blocks. Every part has its own switch: Shop pages, Buttons, Prices, Sale badge, Ratings, Notices, Fields, Product grid, Product filters and Blocks. Look and spacing and Tables, tabs & pagination hold shared styles.

Accessibility

Data attributes

These attributes work on any element. The Data attributes screen lists each one, scans your site to show where it is used, flags unused ones and warns about misspelt data-tf- names, with a suggestion. Hover or focus the question mark for what each does.

AttributeWhat it does
data-tf-stackA row becomes a column below a breakpoint. Values: xs, s, m, l.
data-tf-spaceSection spacing, or the gap between children when used with data-tf-stack. Values: s, m, l.
data-tf-surfaceA raised panel from your colour tokens. Values: 1, 2, 3.
data-tf-revealShows the element on scroll, once. Values: fade, up.
data-tf-clampCuts text after 1 to 6 lines with an ellipsis.
data-tf-ratioA fixed shape: 1/1, 4/3, 3/2, 16/9, 21/9, 3/4, 2/3 or 9/16.
data-tf-copyMakes a button or link copy text when clicked: the value you type, or the element's own text when the value is empty.
data-tf-tooltipShows its text in a small bubble above the element on hover and on keyboard focus. Near the edge of a small screen the bubble moves sideways to stay in view.
data-tf-filter-group, data-tf-filter, data-tf-termA list filter with no code.
data-tf-decorativeMarks decoration: aria-hidden on it and an empty alt on images.
data-tf-stateMarks an element as open, active or disabled so your CSS can style that state. Disabled also dims the element and blocks mouse clicks, but the keyboard can still reach it.
data-tf-a11ySet to off to exclude an element from the automatic accessibility attributes.
data-schemeForces light or dark on an element and everything inside it.
data-scheme-toggleOn any button: a click switches the page between light and dark (the same as .scheme-toggle).
data-tf-formMarks a form as a TokenForge form, so steps, conditions, calculations and saved answers work in it.
data-tf-stepsOn the form: the step settings and the summary shown before sending.
data-tf-stepOn a field wrapper: a new step starts here, with an optional title, such as data-tf-step="Contact".
data-tf-step-showOn the field wrapper that starts a step: the condition that decides whether the step is shown.
data-tf-showOn a field wrapper: shows the field only when another field has a given answer.
data-tf-requireOn a field wrapper: makes the field required only when another field has a given answer.
data-tf-calcOn a field wrapper: shows a total worked out from other fields.
data-tf-saveOn the form: keeps the visitor's answers in their own browser until the form is sent.

The form controls in the builder set the form attributes for you, so you rarely type them. The icon, ribbon and inverted radius attributes (data-icon, data-icon-size, data-icon-style, data-icon-list, data-icon-hover, data-ribbon-position, data-inverted-radius-1-position) are listed on the Cheatsheet.

Other components

AI agents

TokenForge's tools for AI agents are on by default (Options > AI agents). They are read only and are available to logged-in users who can edit content. An agent that builds your site through the WordPress MCP Adapter, or through the builder's own AI tools, sees four tools and is told to use TokenForge classes and variables instead of hard-coded CSS, and to name its own classes in BEM:

To connect an AI client (Claude, ChatGPT, Cursor and others):

  1. Install and activate the WordPress MCP Adapter plugin. In a builder with its own AI screen, that screen can install it for you and walk you through every step.
  2. Create an application password for your user: Users > Profile > Application Passwords.
  3. Add the site to your AI client as an MCP server that runs npx -y @automattic/mcp-wordpress-remote@latest, with three environment values: WP_API_URL (your site's /wp-json/mcp/mcp-adapter-default-server), WP_API_USERNAME (your user name) and WP_API_PASSWORD (the application password).
  4. Ask the agent to call tokenforge-get-framework first. The server instructions already tell it to.

Two switches under Options > AI agents turn the tools and the guidance off.

Import, export and reset

Everything is on Import, export & reset. Before every save, import, reset, restore and setup, TokenForge keeps a copy of your settings, so each of these can be undone under History.

Export and import

Design token files

Reset to defaults

Choose what to reset: All settings (every switch and value), Tokens and colour families (the starter colours) and Font list (the files stay in uploads). Press Reset to defaults and confirm. It puts TokenForge back to how a new site starts, with the Effects module off. You can undo it under History. On any single field, the small reset button next to its name puts that one default back.

History

TokenForge keeps the last 20 copies. The table says when each was taken and what triggered it: before a save, an import, a reset, the setup wizard or a restore. What changed lists the differences between that copy and now. Restore puts a copy back after a confirmation. The restore takes a copy of the current state first, so it can be undone. Your pages are never touched.

Importing another framework's settings

The panel "Settings importer" brings over the variables and settings of another utility framework. It works even after that plugin was deactivated.

  1. Open Import, export & reset, then the panel Settings importer.
  2. Press the import button in that panel and confirm. The imported variables are merged into your tokens, and same-named tokens are overwritten. The imported settings replace the matching TokenForge settings: colours, scales, layout, typography, buttons, cards, icons, components, overlays, effects, builder options and fonts.
  3. Read the message that follows. It gives the number of variables and settings imported. "Last import" lists, for each part, what was mapped.
  4. Check Colors, Typography and Accessibility, then look at a few pages on the front end and in the builder.
  5. Move any custom CSS into your builder's own CSS box. Custom CSS is not imported.

When the other framework is a newer version, its site colour scheme ("light only", "dark only" and "light dark" become Light, Dark and Follow the visitor) and the card inner radius come across. Its "standard" card radius has no match in TokenForge and is named in the report. The import also brings over the default button effects, where the block editor class field sits, the floating dashboard button on the site's pages, and whether switched-off classes are hidden from the builder class list. If something is wrong, open History and restore the copy from before the import.

Settings reference

Every screen and its panels, in the order of the sidebar. Each setting has a tooltip (the question mark next to its name) with the details. Use "Search settings" at the top of the sidebar to find one by name.

ScreenPanels
HomeModule switches, Getting started, the setup wizard card
CheatsheetEvery class, variable, recipe and data attribute
AccessibilityThis page (in the builder window), Palette contrast, Automatic accessibility attributes, Focus, Reduced motion, External-link indicator, Canvas badges
RecipesRecipes, Built-in recipes
Setup wizardStep 1: builder settings, Step 2: connect TokenForge and the builder
OptionsDashboard look, TokenForge window, AI agents, Builder sync, Performance, Breakpoints, Cascade layers, Utility framework
BuilderAdd Elements panel, Canvas, Dark mode preview, Style tab & code, Contextual menus, Inputs & class list, Templates, Theme style, Builder built-in (which ones show depends on the builder)
Block editorPresets, Editor interface, Canvas, Content, TokenForge window
Import, export & resetExport, Import, Design token files, Reset to defaults, History, Settings importer
ColorsColor families, Shade generation, Dark mode, Color assignments, Background relationships, Selection
TypographyRoot font size, Viewport, Text scale, Heading scale, Size overrides & transitions, Self-hosted fonts, Body text, Headings, Per-heading overrides, Text size classes
SpacingSpace scale, Section spacing, Automatic gaps
LayoutContent width, Sections & gutters, Boxed layout, Content grid, Grids, Header height, Sticky, Content offset, Scrolling
Borders & ShadowsRadius, Auto radius, Borders, Dividers, Inverted radius, Box shadows, Text shadows, Drop shadows
TokensEvery variable, + Add token, Use settings, Find uses
Data attributesEvery data attribute and where your site uses it
Buttons & LinksButtons, Button style, Button colours per family, Links
Cards & RibbonsCard, Headings & links, Media & avatars, Icons & buttons, Corner ribbons
IconsIcon sizes, Icon style, Icon lists
FormsForm fields, Form submissions
WooCommerceWooCommerce, Shop pages, Buttons, Prices, Sale badge, Ratings, Look and spacing, Notices, Fields, Product grid, Product filters, Tables, tabs & pagination, Blocks
ContentFlow spacing, Prose, Blockquotes
Surfaces & OverlaysBasic overlay, Custom overlays, Surfaces
EffectsTransitions & easing, Entrance (scroll), Exit (scroll), Visible (once), Hover, Hover borders, Button effects, Builders & accessibility
BaseReset, Utilities

Options worth knowing

WP-CLI reference

All commands start with wp tokenforge. Import and restore take a history copy first, so they can be undone.

CommandWhat it does
wp tokenforge regenerateRebuilds the stylesheets.
wp tokenforge export > tokenforge-export.jsonPrints every setting, token, colour family and font as JSON. Redirect it to keep it in a file.
wp tokenforge import <file>Imports an export file (2 MB at most). --parts=tokens,palette picks parts from tokens, palette, settings, modules, recipes and fonts. --dry-run shows what would change and writes nothing.
wp tokenforge snapshotTakes a history copy now, unless nothing changed since the last one. --note=before-release adds a short label (letters, digits and dashes).
wp tokenforge historyLists the history copies, newest first. --format is table, json, csv, yaml or count.
wp tokenforge restore <id>Puts a history copy back. --yes skips the question.
wp tokenforge statusShows the version, the stylesheet files, the active builders and the number of history copies. Writes nothing. --format is table, json, csv or yaml.
wp tokenforge contrastChecks text contrast. It exits with code 1 when a pair fails, so it can stop a release. --all lists passing pairs too. --format is table, json, csv or yaml.

For developers

Put your code in a child theme's functions.php or in a mu-plugin, never in TokenForge's own files, so an update does not remove it.

Add SCSS from code

The filter tokenforge_global_scss receives an empty string and returns SCSS. TokenForge compiles it with its own mixins and functions and adds it last to the stylesheet. A compile error never breaks the site.

add_filter( 'tokenforge_global_scss', 'my_pricing_scss' );
function my_pricing_scss( $scss ) {
	return $scss . '.pricing { padding: var(--space-m); }';
}

PHP filters

PHP actions

Dashboard filters (JavaScript)

The dashboard runs these filters through wp.hooks in the browser: tokenforge.sections (add a section), tokenforge.nav (add a sidebar entry), tokenforge.icons (add an icon), tokenforge.render (draw a section that has its own render type), tokenforge.section_html (add a panel to a section), tokenforge.import_labels (name the parts an add-on adds to the import list) and tokenforge.reset_parts (add a part to the Reset to defaults list).

Frequently asked questions

Do I need a page builder?

No. The stylesheet loads on the front end and in the block editor on any WordPress site. The builder tools switch on only when a supported builder is active.

Will it slow my site down?

No CSS is built while a page loads: TokenForge writes one static stylesheet when you save. A new site prints it inline (Options > Performance, Inline the stylesheet). You can switch off any module you do not use at Home, and leave out the utility classes your site does not use. The shop styles are in a second file that loads only where the shop shows.

Can I add my own CSS?

Yes. Use the builder's own custom CSS box (or the CSS of the builder's theme style), or your theme's Additional CSS in the Customizer. Developers can add SCSS from code (see For developers).

What happens when I deactivate or delete TokenForge?

Does "Close after this many sends" stop one visitor from taking every place?

No. The limit counts sends, not people. One visitor or a script can send the form until it closes, and two sends at the same moment can both get the last place. For places that matter, such as event seats, also turn on the form's CAPTCHA or "Only signed-in visitors can send" with "Sends per user".

How do I load the shop styles on every page?

Set WooCommerce > Shop pages > Load shop page styles to On every page.

Can I translate TokenForge?

Yes. The dashboard and the builder settings use the tokenforge text domain, so translations from translate.wordpress.org load by themselves. This manual is in English only.

Troubleshooting

Privacy and external services

Google Fonts

TokenForge contacts another server only when an administrator asks it to, and there is one such service: Google Fonts, when you press Download to this site (Typography > Self-hosted fonts). Your server asks fonts.googleapis.com for the family's CSS, then downloads the font files from fonts.gstatic.com, once. It sends the family name, the weights and styles you picked, and your server's IP address, like any web request. The files are stored in uploads/tokenforge/fonts/, so your visitors never contact Google. Google's terms are at developers.google.com/terms and its privacy policy at policies.google.com/privacy.

The accessibility checker (axe-core) is bundled with the plugin and runs only in the builder when an administrator presses Run check. Nothing else is contacted.

What TokenForge keeps about visitors