_Email.md_
Directives

Directives

Special block-level content sections for email layout.

Directives are special block-level sections that control the email layout. They use the ::: fenced container syntax:

::: directive
Content goes here
:::

Available Directives

DirectiveDescription
headerContent above the main body (logos, brand images)
heroFull-width section with background image
calloutHighlighted tip or note
highlightEmphasized content block
centeredCenter-aligned text
footerFooter with links and legal text

Parameters

Some directives accept space-separated parameters after the directive name to customize alignment, padding, and colors:

::: callout center
Centered callout content
:::

::: highlight center compact bg=#dc2626
Compact, centered highlight with custom background
:::
ParameterSyntaxValuesApplies To
alignBare keywordcenter, left, rightcallout, highlight, header, footer
paddingBare keywordcompact, spaciouscallout, highlight
colorcolor=<hex>Any hex colorcallout, highlight, centered, header, footer
bgbg=<hex>Any hex colorcallout, highlight

See each directive's page for detailed examples.

On this page