Create a brand theme
create_brand_themeSave a reusable Brand Theme on the caller's account: a name, three colours and two fonts that can then be applied to any ebook by id. Create one only when the user wants a saved, REUSABLE identity ("set up our company brand"). To style a single ebook, pass 'theme' to update_ebook instead, which saves nothing extra and has no limit. Call get_design_options for the valid fonts and the colour format. The number of Brand Themes an account may keep is capped by its plan, exactly as in the Unplain web app; get_account reports the cap. Logos and uploaded font files can only be added in the web app.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Display name, usually the company or publication name. | |
| links | No | Website and social profiles for this brand. They become the default social links on the CTA page of every ebook the theme is applied to. Bare domains are accepted and upgraded to https. Anything that is not a web address is ignored. | |
| bodyFont | Yes | Body typeface: a Google Fonts family from Unplain's catalog or a system font id. Call get_design_options for the full list. | |
| textColor | Yes | body text color | |
| accentColor | Yes | accent color, used for links, rules and call-to-action buttons | |
| headingFont | Yes | Heading typeface: a Google Fonts family from Unplain's catalog or a system font id. Call get_design_options for the full list. | |
| backgroundColor | Yes | page background color |