update_theme
Modify 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 |
|---|---|---|---|
| accent_color | No | Accent theme color (hex) | |
| background_color | No | Background color (hex) | |
| border_radius | No | Border radius CSS value | |
| custom_css | No | Additional custom CSS | |
| font_family | No | Body font family CSS value | |
| footer_html | No | Custom footer HTML (changing regenerates all content) | |
| head_html | No | Custom HTML for <head> section | |
| header_html | No | Custom header HTML (changing regenerates all content) | |
| heading_font | No | Heading font family CSS value | |
| logo_url | No | Logo image URL | |
| primary_color | No | Primary theme color (hex) | |
| secondary_color | No | Secondary theme color (hex) | |
| site_name | No | Site name | |
| site_tagline | No | Site tagline | |
| text_color | No | Text color (hex) |