/ Search

Search Epistola

Find documentation, integration guides, tour steps, blog posts and pages.

DocsIntegrationsTourBlogPage
↑↓↵esc

Create and apply a theme

Set typography, page settings, and presets once, and use the theme in your templates.

Before you begin

You need Content Author access, and a catalog you can change. A theme controls how documents look. It does not contain the letter’s wording. For content you reuse, there are stencils.

A theme lives in a catalog. It has no publish of its own: the catalog’s next release contains it, and Publish… publishes it with the rest.

Create the theme

  1. Open the catalog, then its Themes page, and choose New theme.
  2. Enter a readable name, such as Letter style. Epistola fills in the Theme ID. Keep an ID that does not change.
  3. Choose Create theme. The theme’s page opens, where you set its styles.
  4. Set Document Styles: font, size, line height, and colours from your organisation’s style guide.
  5. Set Page Settings: paper format, orientation, and margins. Get a consistent page layout first. Only then adjust single blocks.
  6. The page saves automatically a moment after each change. Save writes at once. Wait for Saved before you check the theme in a template.

If a font family is missing, upload it first. Which files and faces work is in Fonts.

Document Styles also has Block spacing, with Space above and Space below for every block. If you leave it empty, a block keeps 6pt of space below it.

Make a reusable block preset

A preset has two parts. The catalog declares which presets exist. The theme gives each preset its look.

  1. On the catalog’s Themes page, go to Default theme and presets. In the Presets table, add a row with a key that does not change, such as muted, and a name, such as Supporting text. Choose Save.
  2. On the theme’s page, in Block Style Presets, choose Add preset. Set Key (ID) to the same key, muted, and give it a Label.
  3. Add the properties that should differ from the document defaults. For example, a smaller font size.

To limit the preset to some block types, select them under Applicable To. If you leave everything unchecked, it applies to all types.

In the template editor, select the block and choose the preset under Style Preset. The list offers exactly the presets the catalog declares. It marks a preset that this theme does not style. Preview the result.

Apply it to a template

  1. Open the template’s Settings tab.
  2. Set Default theme to the new theme. The change applies at once.
  3. Open a variant in the editor and preview with short and long examples.
  4. Check wrapping, margins, images, tables, and page furniture.

Epistola picks the theme in this order. The first level that names a theme wins:

  1. the variant’s own theme
  2. the template’s Default theme
  3. the catalog’s default theme
  4. the built-in styles

You set the catalog’s default theme on the catalog’s Themes page, with Make default or under Default theme and presets. Templates that name no theme use it.

A house theme is something else. It is the theme that new catalogs start with as their default theme. A tenant administrator sets the house theme.

Choose Make house theme on a theme in the Themes list. Apply house theme to all catalogs makes it the default theme of every catalog you can change. Each catalog uses it from its next release.

Understand overrides

Epistola works out a style in this order:

  1. the theme’s document defaults
  2. template overrides
  3. block presets
  4. styles set directly on a block

A value set directly on a block can hide a change to the theme or preset. If a block should inherit the shared style, remove the override it does not need. Note: leaving a margin empty is not the same as setting it to zero.

Change a shared theme safely

Choose View usage on the theme. You then see which templates and variants use it, and through which level, under Applied via. After a change, check a few typical templates.

When you edit a theme, the next release and every preview change at once. Releases that are already published keep the theme they contained. To use the changed theme in documents, publish the catalog.

If the PDF looks different from what you expect, follow Layout and resource problems.

More on this topic

Epistola is open source, not free of cost. The organisations that use it fund its development, through Epistola or an Official Partner. We are steward-owned: fair prices, no profit maximisation. How Epistola is funded →