Skip to content
Open in

Empty template reference ​

You are reading the Email Editor v3 docs

Email Editor v4 is the current version. See this page in the v4 docs, or how to upgrade to v4.

This is the starting-point template: global styles, a single section with one full-width empty column, and no blocks. It's a useful shape to compare a load payload against.

json
{
  "tagName": "mj-global-style",
  "attributes": {
    "h1:color": "#000",
    "h1:font-family": "Helvetica, sans-serif",
    "h2:color": "#000",
    "h2:font-family": "Ubuntu, Helvetica, Arial, sans-serif",
    "h3:color": "#000",
    "h3:font-family": "Ubuntu, Helvetica, Arial, sans-serif",
    ":color": "#000",
    ":font-family": "Ubuntu, Helvetica, Arial, sans-serif",
    ":line-height": "1.5",
    "a:color": "#24bfbc",
    "button:background-color": "#e85034",
    "containerWidth": 600,
    "fonts": "Helvetica,sans-serif,Ubuntu,Arial",
    "mj-text": {
      "line-height": 1.5,
      "font-size": 15,
      "font-family": "Ubuntu, sans-serif"
    },
    "mj-button": { "font-size": "13px" }
  },
  "children": [
    {
      "tagName": "mj-body",
      "attributes": { "background-color": "#FFFFFF", "containerWidth": 600 },
      "children": [
        {
          "tagName": "mj-section",
          "attributes": {
            "full-width": "600px",
            "padding": "10px 0px 10px 0px"
          },
          "children": [
            {
              "tagName": "mj-column",
              "attributes": { "width": "100%", "vertical-align": "top" },
              "children": [],
              "uid": "HJQ8ytZzW"
            }
          ],
          "layout": 1,
          "backgroundColor": null,
          "backgroundImage": null,
          "paddingTop": 0,
          "paddingBottom": 0,
          "paddingLeft": 0,
          "paddingRight": 0,
          "uid": "Byggju-zb"
        }
      ]
    }
  ],
  "style": {
    "h1": { "font-family": "Ubuntu, sans-serif", "font-size": "22px" },
    "a": { "color": "#0000EE" },
    "h2": {
      "font-family": "Ubuntu, Helvetica, Arial",
      "font-size": "17px"
    },
    "h3": {
      "font-family": "Ubuntu, Helvetica, Arial",
      "font-size": "13px"
    },
    "p": { "font-family": "Ubuntu, sans-serif", "font-size": "11px" },
    "ul": { "font-size": "11px", "font-family": "Ubuntu, sans-serif" },
    "li": { "font-size": "11px", "font-family": "Ubuntu, sans-serif" },
    "ol": { "font-size": "11px", "font-family": "Ubuntu, sans-serif" }
  },
  "fonts": ["Ubuntu, sans-serif", "Ubuntu, Helvetica, Arial"]
}