Email

Optional, at most one, and always the outermost element. Its attributes are the page-level settings the Design tab's Page & body panel edits: one parse sets the look along with the blocks, so a branded email is a single write. Without it, the blocks keep the template's current theme.

Email

Container

Optional, at most one, and always the outermost element. Its attributes are the page-level settings the Design tab's Page & body panel edits: one parse sets the look along with the blocks, so a branded email is a single write. Without it, the blocks keep the template's current theme.

PropTypeDefaultDescription
backgroundColorcolor#f4f4f5Page backdrop around the email card.
bodyColorcolor#ffffffThe email card's background.
contentWidthnumber600Card width (px). 560–640 reads best.
bodyPaddingnumber24Padding inside the card (px). 0 lets full-width sections reach the edges (they bring their own padding).
bodyRadiusnumber0Card corner radius (px).
bodyBorderWidthnumber—Stroke around the card (px); its corners follow body-radius.
bodyBorderStyleenumsolid | dashed | dotted—Stroke style.
bodyBorderColorcolor#e4e4e7Stroke color.
fontFamilystring-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serifDefault font stack (email-safe fonts, with fallbacks).
textColorcolor#1a1a1aDefault text color.
linkColorcolor#2563ebInline link color.
darkModeenumauto | off—"auto" opts in to dark mode: in mail apps set to dark, the card, its text and its links switch to a dark palette (copy on its own background keeps its colours). "off" declares the email light-only. Unset, the email renders as it always has.
darkColorsstring—The dark palette as an object, e.g. {{ bodyColor: "#111111", textColor: "#f5f5f5" }} (backgroundColor, bodyColor, textColor, linkColor). Unset colours are derived.
previewTextstring—Inbox preview text: the snippet shown after the subject.
categoryenumtransactional | marketing—Marketing emails get the managed unsubscribe / postal footer at send — never write it yourself.

Common props

Every component accepts these on top of its own props.

PropTypeDefaultDescription
marginBottomnumber16Vertical space (px) below the block.
classNamestring—Tailwind-style utility classes compiled to inline CSS at render (e.g. "mt-4 text-zinc-500 sm:hidden"). Responsive/pseudo variants are hoisted into a <style> block. class and tw are accepted as aliases in code.
customCsscss—Extra inline CSS declarations merged onto the block's root element (e.g. "letter-spacing: 1px; opacity: 0.9"). Inlined so it survives every client.

Set one side at a time with the padding and margin objects in the visual editor's inspector.

Search docs and guides

Search the docs and product guides.