跳到内容

Presetscope

v1.0.0

Rahul Tank · 2026年10月1日 上架

See the theme.json settings, presets, styles and generated CSS that WordPress is using for your theme, on one read-only screen.

正在使用
10 以下
评分
暂无
累计下载
310
最近更新
2026年10月1日
需要 WordPress 6.3+已测试到 7.1.5PHP 7.4+

贡献者

WordPress builds the final theme.json data by merging three layers: core defaults, the active theme (and its parent), and the changes saved in the Site Editor. When a colour, font size or spacing value is not what you expect, it can be hard to see which layer it came from.

Presetscope is a theme.json inspector. It adds a screen under Tools Presetscope that shows this merged data:

  • Overview – the active theme, its parent, whether it is a block theme, the theme.json version of the theme and how many presets it defines.
  • Presets – every colour, gradient, font size, font family, spacing size and shadow preset, with its CSS custom property (for example --wp--preset--color--contrast), its value, a colour sample and where it comes from (default, theme or custom).
  • Settings and Styles – the merged data as formatted JSON.
  • Generated CSS – the global stylesheet WordPress prints on the front end.

You can switch between the data with and without the Site Editor changes, to see what the theme itself provides.

It works with block themes and classic themes.

Read-only

The screen only reads data through WordPress’ public functions (wp_get_global_settings(), wp_get_global_styles() and wp_get_global_stylesheet()). It does not change the theme, the Site Editor data or any option, and it stores nothing in the database. Only users who can edit theme options (administrators by default) can see it.

Nothing is sent to any external service.

Presetscope is an independent project and is not affiliated with or endorsed by the WordPress project.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums