Linux 软件免费装
Banner图

Theme.json Design Manager

开发者 sulaimandauda
更新时间 2026年3月25日 03:01
PHP版本: 7.4 及以上
WordPress版本: 6.9
版权: GPLv2 or later
版权网址: 版权信息

标签

block-editor theme-json design-tokens global-styles css-variables

下载

1.0.0

详情介绍:

Theme.json Design Manager provides a user-friendly admin interface for managing design tokens that are automatically merged into your theme's theme.json Global Styles pipeline. No code editing required. Features How It Works The plugin stores design tokens in the WordPress database and merges them into the theme's Global Styles via the 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

安装:

  1. Upload the theme-json-design-manager folder to /wp-content/plugins/.
  2. Activate the plugin through the Plugins screen in WordPress.
  3. Go to Appearance → Design Manager to start managing your design tokens.

屏幕截图:

  • Spacing scale with drag-to-reorder functionality.
  • Typography scale with fluid clamp() support.
  • Border radius presets with live corner previews.
  • Shadow presets with live box-shadow previews.

升级注意事项:

1.0.0 Initial release.

常见问题:

Does this plugin require a specific theme?

No. It works with any block theme or classic theme that supports theme.json. WordPress 6.1 or later is required.

Will my tokens override the theme's existing colors/spacing?

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.

What happens when I deactivate the plugin?

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.

Can I use fluid typography?

Yes. On the Typography tab, check the "Fluid" toggle and enter min/max values. WordPress will generate a responsive clamp() function automatically.

How do I reference these tokens in CSS?

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.

更新日志:

1.0.0