Get global styles
get_global_stylesRetrieve a block theme's global styles—palette, typography, spacing, and per-block styling—directly from theme.json and Site Editor overrides.
Instructions
Read a block theme's global styles — the palette, typography, spacing and per-block styling that theme.json defines and the Site Editor overrides. This is where a block theme's design tokens live.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site_id | No | Which configured WordPress site to act on. Optional — with a single site configured it is used automatically; with several, the default site is used unless you name one. Run list_sites for valid ids. |