Update global styles
update_global_stylesUpdate block theme global styles (palette, typography, spacing, per-block) with immediate site-wide application. Merges at top level; partial settings replace that entire branch.
Instructions
Update a block theme's global styles — palette, typography, spacing, per-block styling. Changes apply site-wide immediately. Read them first: this merges at the top level, so a partial settings object replaces that whole branch.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| styles | No | theme.json-shaped styles, e.g. {"color": {"background": "#fff"}, "typography": {...}}. | |
| 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. | |
| settings | No | theme.json-shaped settings, e.g. {"color": {"palette": [...]}}. |