| 开发者 | sulaimandauda |
|---|---|
| 更新时间 | 2026年3月25日 03:01 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 6.9 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
theme.json Global Styles pipeline. No code editing required.
Features
--wp--preset--color--{slug} CSS custom properties.--wp--preset--spacing--{slug} CSS custom properties.clamp() support. Generates --wp--preset--font-size--{slug} CSS custom properties.--wp--custom--border-radius--{slug} CSS custom properties.--wp--preset--shadow--{slug} CSS custom properties.wp_theme_json_data_theme filter. Tokens use WordPress's native slug-based merge system — matching slugs are replaced, new slugs are appended.
All changes are fully reversible. Deactivating the plugin restores original theme styles.
Developer-Friendly
gdtm_tokens_before_merge)gdtm_after_save) and for custom tab content (gdtm_after_tab_content)gdtm_admin_tabs) for registering additional tabstheme-json-design-manager folder to /wp-content/plugins/.No. It works with any block theme or classic theme that supports theme.json. WordPress 6.1 or later is required.
Yes, tokens with matching slugs replace the theme's values. New slugs are appended alongside existing ones. This is WordPress's native slug-based merge behavior.
All plugin-managed tokens are removed from the Global Styles pipeline and your theme's original theme.json values are restored. Your token data is preserved in the database so nothing is lost. When you delete (uninstall) the plugin, the data is removed for a clean uninstall.
Yes. On the Typography tab, check the "Fluid" toggle and enter min/max values. WordPress will generate a responsive clamp() function automatically.
Each token generates a CSS custom property. For example, a color with slug "primary" becomes var(--wp--preset--color--primary). The CSS variable name is displayed next to each token row in the admin.
--wp--preset--color--base stays defined when replacing the theme palette.wp_theme_json_data_theme filter.