Design tags
PersonalizationDesign tags
Design-time placeholders [[key]] baked into the output, distinct from send-time merge tags.
Where merge tags ({{first_name}}) personalize per recipient at send time, design tags fill in fixed values at render, a company name, a campaign label, the current year.
import { renderDesign } from "email-craft-sdk";
renderDesign(design, {
designTags: { company: "Acme Inc", year: "2026" }, // resolves [[company]], [[year]]
});Unknown tags are left untouched, and the delimiters are configurable via designTagsDelimiters.
Where they are filled
Design tags are filled in on the design JSON before it is rendered, so each value goes through the same URL and HTML checks as anything typed in the editor. renderDesign, renderAmp, renderPopupHtml and renderDocument take designTags. renderMjml does not, so [[key]] stays as written in MJML output. To fill one string, such as a subject line, use resolveDesignTags(text, tags).
Syntax
- Keys can use letters, digits,
_,.and-. Spaces inside the brackets are fine:[[ company ]]works. - A tag with no value in
designTagsis left as written, so a typo shows up in the output instead of becoming an empty string. - Custom delimiters are a pair:
designTagsDelimiters: ["<<", ">>"].
In the editor
The editor does not fill design tags. Authors see [[company]] on the canvas and in the editor's own export; the values appear when your server renders the design.