Change a site's theme
apply_themeChange the look across EVERY page of one design at once: colours, fonts, corner radius, or a complete ready-made preset. Send only what should change. For a change to one section or page use refine_site instead. Publish for visitors to see it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| colors | No | Colours to change, as hex values (e.g. {"primary": "#1d4ed8"}). Only the ones given change. | |
| preset | No | A complete ready-made theme. One of: neobrutalist, neobrutalist-dark, minimal, minimal-dark, corporate, corporate-dark, playful, luxury, cyberpunk, cyberpunk-dark, editorial, editorial-dark, retro, retro-dark. Replaces colours, fonts, borders and shadows together. | |
| borders | No | Corner radius and border width as CSS lengths (e.g. {"radius": "12px"}). | |
| site_id | Yes | The site to act on | |
| user_goal | No | Optional: the user's goal behind this call, in one short sentence of plain words (e.g. "add a page so customers can book tables"). No names, emails or other personal details. | |
| typography | No | Fonts to change, by Google Font name (e.g. {"headingFont": "Playfair Display"}). | |
| variation_id | No | The design to change. Omit for the site's live design. |