TokenForge is a design system you set up once and use everywhere. Colours, type and spacing scales, layout, buttons, cards, icons and effects become CSS variables and classes in one static stylesheet, loaded on the front end, in the block editor and in your page builder.
A new site starts ready with a complete starter design system. Reset to defaults any time, for everything or one section. The built-in Manual (TokenForge, Manual) explains every screen.
Design system
- Colour families with light and dark shades from one colour, live preview, and dark mode by section with a light or dark switch (shortcode or block).
- Fluid type and spacing scales from one setting each, a width scale, grids and automatic gaps.
- Layout, borders, radius, shadows, icons, buttons, cards, overlays and prose styles.
- Utility classes for spacing, grids, flex grids, flex and alignment, text and more, with optional breakpoint variants. Unused classes can be left out after a site scan.
- Effects: entrance, exit, hover, border and scroll effects, and optional default effects for your buttons.
- A Tokens screen that lists every variable, where it comes from and where it is used.
Builders and the block editor
- Works with the block editor, Bricks, Etch, Oxygen, Breakdance, Divi and Elementor. Bricks has the deepest support.
- In every supported builder: the TokenForge window, variables and classes by right-click, the input helper, suggestions and recipes in the custom CSS box, text recipes, a light and dark preview of the canvas, and the TokenForge stylesheet in the canvas.
- Block editor: your tokens become the editor presets, plus patterns, button styles, a class field and optional editor tools.
- Bricks: two-way sync with Bricks variables, colours, global classes and the theme style, a design check, a BEM class generator, form element extensions and a setup wizard.
Accessibility
- Contrast check of text, links, focus rings and buttons in light and dark mode (WCAG 2 AA, APCA shown), with a suggested token applied in one click.
- Optional automatic attributes: hidden decorative icons, alt text, menu labels, the current page mark and a new tab notice.
- A page check in the builder (axe-core), only when an administrator presses Run check.
- Data attributes for layout and behaviour without code (data-tf-stack, data-tf-space, data-tf-surface, data-tf-reveal, data-tf-tooltip, data-tf-filter and more).
Fonts, WooCommerce and tools
- Self-hosted fonts: upload TTF or OTF and get WOFF2, or download a Google font once to your server.
- WooCommerce shop, product, cart, checkout and account pages and blocks styled with your tokens, each part with its own switch.
- Export and import settings (with a preview), W3C design token files for Figma, Tokens Studio and Style Dictionary, the settings history (last 20 saves, undoable), WP-CLI commands and tools for AI agents.
- Moving from another utility framework? The settings import under Import, export & reset brings your settings across, and its class names work too.
Developers
The filter
tokenforge_global_scss returns SCSS that TokenForge compiles and adds last to the stylesheet (put it in a child theme or a mu-plugin). The action
tokenforge_builder_enqueue loads an add-on's assets in every supported builder, and
tokenforge_block_editor_enqueue in the block editor. Details and examples are in the Manual.
TokenForge is original software released under the GPLv2 or later, developed by Prista Digital (
https://pristadigital.com).
Older versions are in changelog.txt.
0.58.3
- Dark mode: text set to a fixed colour (black from an imported setup, say) now switches to its light pair, so sections that turn dark stay readable.
- Dark mode: elements you gave a fixed background in the builder (a white header, say) keep their light colours, so their text never turns light on light.
- Dark mode: a fixed page, card or boxed-page background turns dark only when that makes its text more readable.
- Shop: the New badge and the cart item counts keep readable text in dark mode.
- With dark mode off nothing changes.
- Faster pages: the block editor colour and size lists are built once and kept, not on every page view.
0.58.2
- New: TokenForge, Manual, an English user manual in the admin.
- Class names from another utility framework (grid--3, grid--m-2, flex-grid--3, text--center and more) now work too; colour names such as bg--primary have their own switch.
- New: default button effects (hover, entrance and hover border) on the Effects screen.
- New recipes: gradients, ?before, ?after, ?hover, ?focus-visible, ?color-mix, ?tooltip, ?footer-reveal and more.
- Builder: a moon button previews the canvas in dark mode while you build.
- Fixed: a window opened before a newer save (another builder tab or the dashboard) no longer puts older settings back.
- Fixed: switching on a setting that adds classes rechecks the site, so used classes are not left out. Entrance effects on screen at load no longer flash before they play.
- Settings import: more switches, button effects and older breakpoint values come across.