Skip to main content

Email Theme

The email theme is the shared look of the emails Allegro sends: the page background, the email card, fonts and text colors, headings, links and buttons, the logo header, and the footer. You set it once, and every email template and workflow email built with blocks picks it up. Emails written in HTML can opt in.

Edit the theme under Organization Settings → Branding, on the Email tab. The tab sits after the component tabs at the top of the editor.

The Email tab of the Branding settings, with a sample email preview

Turning on the email builder

The email theme comes with the email builder, which is turned on per organization. If you don't see an Email tab under Branding, ask your Allegro contact to turn on the email builder for your organization.

Where the theme applies​

EmailThemed?
Built-in emails you haven't customized, such as sign-in codesYes. They're built from blocks, so a new organization's theme reaches them right away.
Any email in builder modeAlways.
Any email in HTML modeOnly when Use email theme is on for that email.

How values are chosen​

Each theme setting can be set at three levels. For every setting, Allegro uses the most specific value:

  1. This email, set with the Theme button in the email editor.
  2. The property, set on the property's Branding page. See Properties → Branding.
  3. The organization, set under Organization Settings → Branding.
  4. Your brand, for the few settings that follow a global branding token: body and heading fonts, link and button colors, button text color, and corner radius.
  5. Allegro's default, listed in the tables below.

An empty field shows, in gray, the value it inherits. When you set a value, the label turns bold, a dot appears beside it, and a reset button (↺) clears it so the field inherits again.

Brand colors carry over

Leave Link color and Button background empty to use your primary brand color, and leave the fonts empty to use your brand fonts. On the organization page the gray placeholder shows Allegro's default, but your brand value is what emails use.

Theme settings​

The settings are grouped the same way in Branding and in the per-email Email theme drawer. Sizes are in pixels unless noted.

Page​

SettingDefaultWhat it controls
Page background#f3f4f6The color around the email card.
Email background#ffffffThe email card's color.
Page padding40Space between the edge of the inbox and the card (0–120).
Email width600The card's width (320–800).
Email padding40Space inside the card (0–80).
Email shadowNoneNone, Soft, Medium, or Strong. Shown in Apple Mail and Outlook.com; Gmail and classic Outlook ignore it.
Email horizontal paddingEmail paddingSpace inside the card on the left and right only (0–120).
Email border colorDivider colorThe card's thin outline.
Email corner radius8How rounded the card's corners are (0–40). Follows your brand radius when it's in pixels.

Text​

SettingDefaultWhat it controls
Body fontSystem fontsThe font for body text. Follows your brand font.
Text color#111827Body text.
Text size16Body text size (10–28).
Line height160%Space between lines of body text (100–250%).
Muted text color#6b7280Muted text blocks and, by default, the footer text.

Headings​

SettingDefaultWhat it controls
Heading fontBody fontFollows your brand heading font.
Heading colorText color
Heading weight600400, 500, 600, or 700.
Heading letter spacing0−2 to 10.
Heading line height125%80–250%.
Heading 1 size, 2 size, 3 size32, 22, 18The Title, Subtitle, and Heading blocks (10–72).
SettingDefaultWhat it controls
Link color#2563ebText links. Follows your primary brand color.
Button background#111827Follows your primary brand color.
Button text color#ffffffFollows your brand's Primary text color.
Button corner radius60–999. Use a large value for pill-shaped buttons.
Button text weight600400, 500, 600, or 700.
Button vertical padding120–40.
Button horizontal padding240–80.
Divider color#e5e7ebDivider blocks and, by default, the card's border.

The header shows your branding logo above the email's content. Turn it on with Show logo (see Footer and logo).

SettingDefaultWhat it controls
Logo heightNatural size, up to 160 wideThe logo's height (8–120).
Logo alignmentLeftLeft, center, or right.
Divider under the logoOffDraws a line in the divider color below the logo.
SettingDefaultWhat it controls
Footer backgroundNoneSet a color to turn the footer into a full-width band across the bottom of the card.
Footer text colorMuted text color
Footer text size138–24.
Footer alignmentLeftLeft, center, or right.

Footer text and a footer background in the sample email

On phones, the card fills the screen: its padding drops to 16 pixels, and its rounded corners and shadow are removed.

Below the theme settings, the Footer and logo section sets content every themed email shares:

SettingWhat it does
Footer textShown at the bottom of every themed email, up to 2,000 characters. Plain text only: separate paragraphs with a blank line. Placeholders such as {% organization_name %} work here, so a mailing address or a reason for receiving the email can stay current.
Show logoAdds your branding logo in the header of every themed email. It has no effect until a logo is uploaded under Branding, and SVG and WebP logos are left out because Gmail and Outlook don't display them. Use a PNG or JPEG logo for email.

On a property's Branding page, an empty Footer text shows the organization's footer, and Use organization value beside Show logo returns it to the organization's setting.

Global CSS​

Global CSS adds your own CSS to every themed email, after the theme's styles, so it wins when both style the same thing. Use the selectors the theme styles.

.email-footer a {
color: #0f766e;
}

Allegro writes your rules into each element's style attribute, because many email clients ignore <style> blocks. Rules it can't write inline, such as @media queries, are kept in the email's <style> block.

Global CSS can be up to 20,000 characters, and can't contain <, @import, expression(, or {% %} placeholders.

Email client support

Gmail ignores dark-mode rules, and classic Outlook ignores media queries, rounded corners, and web fonts. Check important styling with a test email.

CSS stacks from broad to narrow: the theme's styles, then the organization's Global CSS, then the property's, then the email's own. Each later layer wins a tie.

Previewing changes​

The preview beside the settings shows a sample email with a heading, a link, a smaller heading, a button, a divider, and your footer. It updates a moment after you change a setting, before you save, so you can try values freely. Switch it between desktop and mobile widths.

Click Save to apply the theme. Like the rest of Branding, each save is a revision you can restore from History. See Branding → Saving and revisions.

Overriding the theme for one email​

To change the theme for a single email, open it and click Theme beside the tabs. The Email theme drawer lists the same settings, with your branding's values as placeholders. Anything you set applies to this email only. The Theme button shows how many values you've overridden.

The Email theme drawer with one override

  • Click ↺ beside a setting to remove its override, or Reset all to remove every override.
  • In the builder, the drawer ends with an Email CSS section. Click Edit CSS to add CSS for this email only, applied after your theme. In HTML mode, use the CSS tab instead.
  • Changes show in the editor and preview right away, and are saved with the email.

Properties​

A property can override any theme setting, the footer text, Show logo, and the Global CSS on its own Branding page. Everything it leaves empty follows the organization. A property's emails then use the property's theme.