sb_theme
Read or update site-wide colors, text styles, and locale in one call. Unnamed token values are kept, so a single change repaints every page.
Instructions
The site's palette and type scale — the layer every element's style preset resolves from, so one token repaints every page at once. Call it with nothing to read what the site actually has. colors and text_styles PATCH the saved document: what you do not name is kept. locale sets the site's language (settings.locale, what is served from) — site-wide, every other setting kept.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| colors | No | Token id -> CSS colour, e.g. { "heading": "#2E2A3B", "primary": "#E8557A" } | |
| locale | No | Site language tag, e.g. "vi" or "en" | |
| dry_run | No | ||
| site_id | No | ||
| text_styles | No | Text style slug -> base declarations, e.g. { "h1": { "fontSize": "48px" } } |