A theme in shape
colors map. Typography and spacing apply globally.
Endpoints
Fetch the current draft theme document. Apply RFC 6902 JSON Patch operations to the draft. Publish the current draft theme to live.Patching tokens
The patch protocol is identical to patching a page — an RFC 6902 array of{ op, path, value } objects. Paths target JSON Pointer locations inside the theme document.
Draft vs live
| State | What it is | How it changes |
|---|---|---|
| Draft | The working theme returned by GET /theme. | Every PATCH produces a new draft version. |
| Live | The theme visitors render against. | Updated only by POST /theme. Visitors see the change on their next page load. |
Common errors
Related
Theme in PageBlocks
How color tokens, typography, and spacing flow from the theme into individual block props.