Change the site's look
set_themeChange the site's colours and fonts in the draft — any subset; what you leave out is kept, and text that would become unreadable is repaired and reported. Also sets the brand name and tagline, re-applies a saved look (preset_name), and saves the result as a named look (save_as) for later. For one section's surface or one button, prefer that node's own data (section background, button variant) over the theme. After a colour change it measures the preview, and text that no longer reads on its background (accent text on a primary card, a button's own text colour) is given a theme colour that reads and listed in text_recoloured — tell the owner what changed. That check adds up to ~20s. Returns the preview URL.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Brand name, recorded in the site brief. | |
| colors | No | Any subset of the palette (hex/rgb/css). Colours you leave out keep their current values; text that would become unreadable is repaired and reported. | |
| save_as | No | Save the resulting look under this name so it can be re-applied later with preset_name (an existing name is replaced). | |
| site_id | Yes | ||
| tagline | No | Tagline, recorded in the site brief. | |
| body_family | No | Body font (a supported Google Font, e.g. 'Inter'). | |
| preset_name | No | Re-apply a look saved earlier with save_as (its colours and fonts); colours/fonts passed alongside override it. | |
| heading_family | No | Heading font (a supported Google Font, e.g. 'Fraunces'). |