Skip to main content
Document styles set the look of the whole document: its theme, colours, fonts, the items table’s style, spacing, page numbers and prices. Every block follows them, so you change the look once instead of block by block. Styles belong to the template: each template can look different.

Open document styles

Click Document styles in the editor’s toolbar (the button with the accent colour swatch). You can also deselect all blocks and open Document styles in the inspector, or click Edit document styles in a block’s Style tab.

Theme

Pick one of six themes. Each is a colour palette and a font pairing: When you change a colour or font after picking a theme, the theme shows as custom: “Custom: your colors or fonts differ from the themes.”

Colors

  • Use brand colors: uses the accent colour from Settings › Branding. The accent then follows your branding settings when documents print, and orders to countries in your branding profiles print in those profiles’ colours. If you haven’t set an accent colour yet, use Open branding settings.
  • Accent color: choose a swatch, your Brand color, or a Custom accent color. The accent colours headings, highlights and filled table headers.
  • Text, Muted text and Rules and borders: the other colours of the document.
The editor checks that your text and accent colours are easy to read on white (a contrast of at least 4.5:1). A low contrast shows a warning, but doesn’t stop you saving.

Typography

  • Headings and Body text: choose from the 12 fonts that come with Foliant, or a font you uploaded. A Font sample shows them together.
  • Base size: 8.5 to 13 pt. Everything else scales from it.
  • Uploaded fonts: your own fonts. See Upload fonts and images.
The 12 fonts are Source Serif 4, Fraunces, Playfair Display, Libre Baskerville, Lora, Work Sans, IBM Plex Sans, DM Sans, Space Grotesk, Karla, Manrope and IBM Plex Mono.

Items table

  • Header: Underline, Filled (accent background) or Tinted.
  • Shade every other row.

Spacing

  • Density: Compact, Comfortable or Airy. This sets the space between and inside blocks.
  • Page margins: 2 to 30 mm.

Pages

  • Page numbers in the footer.
  • Repeat the table header on every page: a long items table shows its column headings again on each page.

Prices

Show prices turns off every price in the document, for packing slips and pick lists: totals, payment and tax blocks are left out, and money columns and amounts in text are dropped. Invoices and credit notes always show their prices, so the switch is locked on for them. See Block reference.

Good to know

  • Undo and redo cover document styles too.
  • Fonts are drawn in the PDF itself, so documents look the same wherever they’re printed. If a font can’t be used when a document is generated, a standard font of the same kind is used instead.