Update Theme
update_themeModify theme settings like colors, fonts, and custom HTML in LightCMS. Update specific fields without affecting other settings, with automatic content regeneration when header or footer HTML changes.
Instructions
Update theme settings. Only the fields you provide are changed — all other settings are preserved (partial update, safe to call without get_theme first).
Changing header_html or footer_html triggers background regeneration of all published pages. Changing colors, fonts, or custom_css does NOT require content regeneration.
Use pin_theme_version to protect important milestones before making major changes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| logo_url | No | Logo image URL | |
| head_html | No | Custom HTML for <head> section | |
| site_name | No | Site name | |
| custom_css | No | Additional custom CSS | |
| text_color | No | Text color (hex) | |
| font_family | No | Body font family CSS value | |
| footer_html | No | Custom footer HTML (changing regenerates all content) | |
| header_html | No | Custom header HTML (changing regenerates all content) | |
| accent_color | No | Accent theme color (hex) | |
| heading_font | No | Heading font family CSS value | |
| site_tagline | No | Site tagline | |
| border_radius | No | Border radius CSS value | |
| primary_color | No | Primary theme color (hex) | |
| secondary_color | No | Secondary theme color (hex) | |
| background_color | No | Background color (hex) |