Design object
RenderingDesign object
The top-level shape of a design.
json
{
"schema_version": "2.0", "display_mode": "email", // email | web | document | popup
"body": {
"values": { "content_width": 600, "background_color": "#fff", "custom_css": "" }, "rows": [ /* rows → columns → blocks */ ]
}
}Validate and migrate with the schema helpers.
Body values and their defaults
In body, only background_color, content_width, font_family and rows are required. The rest fall back when missing:
content_widthis a number of pixels from 320 to 1200. A string such as"600px"fails validation on a 2.0 design.text_color#14213d,link_color#2563eb,link_underlinetrue,content_aligncenter,font_weight"400".subject_line,preheader_textandhtml_titledefault to empty strings.mobile_breakpoint(320 to 1600) unset means 620px.block_spacing(0 to 100) unset means 18px between blocks, 14px on mobile.text_directionisltrorrtl, andlangsets the language of the exported document.
Top-level fields
Besides schema_version (always "2.0"), display_mode and body, a design needs an id and a title. counters, design_tokens and global_blocks default to empty. Optional fields are ab_variants (see A/B variants), and default_locale with locales for translations. Each block follows the block object.