Data & variants

Create template variants

Reuse one design with different sets of labels, colors, or content through variants.

4 min read4 sections
On this page

Use Variants when one design needs several sets of labels, colors, or alternative content. Keep the HTML/CSS and input data together in one template, then choose the appropriate variant for a run.

For example, a variant can use Vietnamese labels while the base keeps English labels. Override only the values that need to differ; the rest continue to come from the base.

1. Understand the base and inheritance

Standard is the base variant, marked BASE in the list. Edit shared HTML/CSS and structure there.

Every variant has the full Config tab for Global, Header, Footer, Page and Section, using the same controls as Standard. Global controls direction, typography, font order, margins/mirror, background and watermark. Header/Footer control visibility, margins/mirror and background. Page controls direction, independent Header/Footer Off / Inherit / Customize modes, local margins, backgrounds and watermark. Section controls direction and page breaks.

For each group, choose Follow Base / Customize. Follow Base removes that group’s override; future Base edits apply again. Customize starts with the values currently shown and saves that group only for the selected variant. Follow Base hides that group’s editing controls; choose Customize to show them. A customized typography group or font list is independent as a whole; font order remains font priority. Switching a background or watermark off is a saved choice, distinct from following Base. Page watermark still supports inherit Global, off and custom. At page level, a disabled margin/background override follows Base’s page setting; use zero custom margins or an empty custom background when intentionally clearing one.

Direction uses Base / LTR / RTL. Base follows the setting at the same scope; if Base inherits its parent, it follows this variant’s effective Global or Page. Explicit HTML dir still controls its own subtree. Global and section HTML/CSS, paper size, orientation and structural additions/removals are shared in Standard. A customized page Header/Footer has its own HTML, CSS, props and Config; editing an inherited copy in another variant creates an independent copy. Review Layout and PDF after switching variants, especially when fonts or page breaks change pagination.

VARIANTS+
StandardBASE
VIInherited + custom values
Standard is the base · A variant reuses it with selected changes

2. Add or copy a variant

Open Variants and select +. When only Standard exists, the app creates a variant from the base. With multiple variants, the menu offers:

  • From Standard: start from the base without a separate set of overrides.
  • Duplicate: copy the selected variant, including its overrides.

Use the rename control or double-click a variant’s name to rename it. Choose a recognizable name such as VI, EN, or a design name. Names must be unique within the template.

VARIANTS+
From StandardStart from the base
Duplicate VIKeep VI’s overrides
Variants → + → From Standard / Duplicate

3. Edit the differences

Select the variant, then select a section in Structure → Props. Change the labels, colors, or other props that need their own values.

Structure’s visibility controls also let you hide a page or section in the selected variant, allowing one template to omit content in a particular version of its presentation.

StandardVI
headingText
VALUETài liệu{{ props.heading }}
Standard: DocumentVI: Tài liệu
Edit a Prop with the variant selected to save an override

4. Choose a variant for a PDF

In Run, choose a version and select the exact name in Variant. You can reuse the same data object across variants that share the same input fields.

Changes to a base value reach variants still inheriting it. Values overridden by a variant remain unchanged.

RUN
VERSIONv1
VARIANTVI
{ "recipient": "Tembuilder" }
Run → select the variant name for this PDF

Search documentation