Change how a site looks
set_brandingChange how a site looks: its theme, main colour, typeface, header links, logo and icon. Only the site's owner can do this. Give only the things to change. A logo or icon is taken from an address you give; say images_are_ours: true only when the owner has told you the pictures are theirs to use — otherwise they are kept but not shown until the owner confirms them on the site's preview. On a preview nobody has kept yet, give its draft_id to set its name or its logo. Give languages to change the language the site's own words — Previous, Next, Search — are in.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| font | No | The typeface: system, serif, mono, humanist, grotesque. | |
| site | No | Which site: its name or its address. Leave it out if this connection only covers one. | |
| theme | No | The theme preset: classic, slab, space or paper. | |
| draft_id | No | Which preview this is about: the draft_id create_preview gave, not the code in the preview's link. Leave it out for a site you keep. | |
| icon_url | No | A direct https address of the small icon for the browser tab — same kinds and limit. | |
| logo_url | No | A direct https address of the logo — PNG, JPEG, WebP or SVG, up to 1 MB. An empty value removes the logo. | |
| languages | No | The site's language as a code, like en, ru or pt-BR — the language every page, title and heading is written in. | |
| site_name | No | The name shown at the top of every page. | |
| header_links | No | Up to 4 links for the header, replacing the current set. Addresses must start with https:// | |
| primary_color | No | The main colour, like #2e5fa3. It has to stay readable on light and dark screens. | |
| images_are_ours | No | Say true only when the owner has told you the pictures are theirs to use. Otherwise they are kept but not shown until the owner confirms them. | |
| logo_shows_name | No | true when the logo image itself spells the name, so the name is not printed again beside it. Leave it out otherwise. |