Linux 软件免费装
Banner图

TokenForge

开发者 pristadigital
更新时间 2026年10月30日 20:46
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

woocommerce accessibility css variables design tokens

下载

0.54.0 0.54.1

详情介绍:

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 all CSS variables and classes, built into one static stylesheet that loads on your front end, in the block editor and, with Bricks, in the builder. Why TokenForge A new site starts ready: a complete starter design system (every token, colour family and setting), so there is nothing to import. Reset to defaults any time, for everything or one section. Design system Accessibility Fonts WooCommerce Data and tools With Bricks When Bricks is active, TokenForge also: Data attributes These attributes work on any element in Bricks, the block editor or your own markup. Each one is listed on the Data attributes screen with where it is used. TokenForge is original software released under the GPLv2 or later. Developers A developer can add SCSS from code. The filter tokenforge_global_scss receives an empty string and returns SCSS. TokenForge compiles it with its own library (mixins and functions) and adds it last to the stylesheet. A compile error never breaks the site. This is code, not a setting. Put it 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. Roadmap Planned, with no dates yet: Example: add add_filter( 'tokenforge_global_scss', 'my_pricing_scss' ); to your functions.php, then define my_pricing_scss( $scss ) so it appends .pricing { padding: var(--space-m); } to $scss and returns it. TokenForge is developed by Prista Digital. Website: https://pristadigital.com

安装:

  1. Upload the tokenforge folder to /wp-content/plugins/, or install the zip from Plugins, Add New, Upload.
  2. Activate. A new site starts with the starter design system. On a Bricks site, 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.

屏幕截图:

  • Colour families: light and dark shades generated from one colour, with a live preview.
  • Typography: fluid text and heading sizes from one scale.
  • WooCommerce: shop pages, product lists, filters and blocks, each part with its own switch.
  • Forms: field styles, form classes, steps and conditional fields for the builder's form.

常见问题:

Do I need a page builder?

No. TokenForge works on any WordPress site: the stylesheet loads on the front end and in the block editor. The builder tools switch on only when the Bricks theme or plugin is active.

Will it slow my site down?

TokenForge writes one static stylesheet, so no CSS is built while a page loads. You can print it inline (no extra request) under Options, Performance, and switch off any section you do not use. Under Options, Utility framework, you can leave out the utility classes your site does not use. With WooCommerce, the shop styles are in a second file that loads only on pages that show the shop.

Does it work with WooCommerce?

Yes. While WooCommerce is active, TokenForge styles the shop, product, cart, checkout and account pages, the builder's shop elements and the WooCommerce blocks with your tokens. Every part has its own switch under WooCommerce. With a block theme, the product price, sale badge and rating blocks can take their look from global styles.

How do I load the shop styles on every page?

Set WooCommerce, Shop pages, Load shop page styles to On every page. Developers can also decide per page with the tokenforge_woo_shop_styles filter.

Where do the tokens come from?

Most come from your settings: Colors makes the colour families, and Typography, Spacing, Layout, Borders, Icons and Effects make their own variables, all when the stylesheet is built. The Tokens screen lists every variable with the part that makes it. Add your own tokens with + Add token, in a built-in category or one you name yourself. A token with the same name as a variable a setting makes replaces it; Use settings removes copies that only repeat a setting.

Can I bring in settings from another framework?

Yes. See the switching guide below.

How do I switch from another utility framework?

  1. Open TokenForge, then Import, export & reset.
  2. Press Import from Automatic.css and confirm. The import merges into your settings: colours, scales, layout, typography, buttons, cards, components, overlays and fonts come across. If a token has the same name as one you already have, the imported value replaces it.
  3. Read the message that follows. It gives the number of variables and settings imported.
  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.
If something is wrong, open Import, export & reset and use the settings history to put back the copy from before the import.

Can I add my own CSS?

Yes, in two places. Add CSS to the builder's own custom CSS box (in Bricks, the theme style's Custom CSS), or to your theme's Additional CSS in the Customizer. Developers can also add SCSS from code with the tokenforge_global_scss filter, shown under Developers in the description.

What happens when I deactivate or delete TokenForge?

Deactivating stops the stylesheet from loading; your settings stay. Deleting the plugin removes its settings, the generated stylesheets and the variables, colours and classes it added to Bricks. Font files you uploaded stay in uploads/tokenforge/fonts/, because other CSS may still use them. On a multisite network, uninstall cleans every site.

Does TokenForge keep anything about visitors?

Only what your forms ask for. On your server, a form with a send limit keeps a count of its sends, and a form limited per user keeps the time of each signed-in user's last send in their user data. A form with the Update meta action writes the answers you map to the post or user meta you choose, and the Add to cart action puts the answers you allow on the cart item and the order. Two things stay in the visitor's own browser (local storage): their light or dark choice when you show the dark mode switch, and, only for forms where you turn on Remember answers on this device, what they typed until the form is sent. Passwords, files and hidden fields are never kept, and the saved answers are removed after a successful send. Deleting TokenForge removes its counts and the per-user send times.

Does TokenForge contact other servers?

Only when an administrator asks it to, and there is one such service: Google Fonts, when you press Download from Google Fonts (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. Terms: https://developers.google.com/terms Privacy: https://policies.google.com/privacy The accessibility checker (axe-core, MPL 2.0) is bundled with the plugin and runs only in the builder when an administrator presses Run check. Nothing else is contacted.

Can I translate TokenForge?

Yes. The dashboard and the builder settings use the tokenforge text domain, so translations from translate.wordpress.org are loaded automatically.

更新日志:

The full history is in CHANGELOG.md, also shown from the Changelog link next to TokenForge on the Plugins screen. 0.54.1 0.54.0 0.53.7 0.53.6 0.53.5 0.53.4 0.53.3 0.53.2 0.53.0 0.52.0 0.51.0 0.50.0 0.49.0 0.48.0 0.47.0 0.46.0 0.45.1