Skip to content

Default template settings

We provide an option to set defaults for a template. This can be used to set default template width, and setting brand for all templates.

Email width

json
// Topol options
{
  "defaultTemplateSettings": {
    "emailWidth": 660
  }
}

Email background color

json
// Topol options
{
  "defaultTemplateSettings": {
    "emailBackgroundColor": "#000000"
  }
}

Block background color

json
// Topol options
{
  "defaultTemplateSettings": {
    "blockBackgroundColor": "#000000"
  }
}

Buttons background color

json
// Topol options
{
  "defaultTemplateSettings": {
    "buttonsBackgroundColor": "#000000"
  }
}
json
// Topol options
{
  "defaultTemplateSettings": {
    "hyperlinkColor": "#000000"
  }
}

Line height

json
// Topol options
{
  "defaultTemplateSettings": {
    "line-height": "22px"
  }
}

Headings and texts

Configurable for h1, h2, h3, p and button

Example:

json
// Topol options
{
  "defaultTemplateSettings": {
    "h1": {
      "font-family": "..",
      "font-size": "14px",
      "font-weight": "700",
      "font-style": "normal",
      "letter-spacing": "14px",
      "text-transform": "uppercase",
      "text-decoration": "underline",
      "background-color": "#000000",
      "color": "#ffffff"
    },
    "h2": {
      //...
    }
  }
}

Structure margins

json
// Topol options

{
  "defaultTemplateSettings": {
    "structure-margin": "15px"
  }
}