Presetscope

설명

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.

설치

  1. Upload the presetscope folder to /wp-content/plugins/, or install it from the Plugins screen.
  2. Activate the plugin.
  3. Go to Tools Presetscope.

FAQ

Can I edit theme.json here?

No. The screen is read-only. Use your theme files, or the Site Editor’s Styles panel, to make changes.

Why does the Source column say “default”?

Those presets come from WordPress core. “theme” means the active theme defines them, and “custom” means they were added in the Site Editor.

Does it work with classic themes?

Yes. Classic themes without a theme.json file show the core defaults that WordPress uses for them.

후기

이 플러그인에 대한 평가가 없습니다.

기여자 & 개발자

“Presetscope”(은)는 오픈 소스 소프트웨어입니다. 다음의 사람들이 이 플러그인에 기여하였습니다.

기여자

자국어로 “Presetscope”(을)를 번역하세요.

개발에 관심이 있으십니까?

코드 탐색하기는, SVN 저장소를 확인하시거나, 개발 기록을 RSS로 구독하세요.

변경이력

1.0.0

  • First release.