Skip to main content

Typography reference

Every typography setting in Vara SaaS, the type scale behind it, and how to extend it. Admin path: Appearance → Customize → Vara SaaS → Typography

Settings

Available font stacks

The font field is sanitized against this allowlist. A value that is not in the list is rejected on save rather than being written through.

Bundled fonts

Two families ship with the theme, subset to Latin in woff2 only. Both are preloaded in the page head, so the browser starts fetching them immediately rather than discovering them in CSS. Screenshot: browser network panel showing woff2 font requests served from your own domain

The base size scale

Your base size is the root. Everything else is relative to it. Changing the base size rescales the whole hierarchy.
A stepper control with increment and decrement arrows sits next to the numeric field. Values outside 12–48 are clamped on save.

The block editor scale

theme.json gives the block editor its own named size scale, independent of your Customizer base size.

Editor styles

The theme calls add_editor_style() so the block editor canvas renders in your chosen typeface and base size rather than WordPress’s defaults. Screenshot: the block editor canvas using the theme's font and base size

Adding a custom font

The Customizer only accepts its six stacks. For anything else, self-host it.
1

Upload the font files

Add your .woff2 to the site. A media upload works, though a .woff2 may be rejected by your host — FTP or a file manager is more reliable.
2

Declare it with @font-face

In Appearance → Customize → Additional CSS, or better, a child theme.
3

Apply it

Override the font on body, then on headings if you want a different family there.
Self-host rather than linking Google Fonts. A <link> to fonts.googleapis.com adds a third-party connection to every page load, costs you render performance, and gives the provider your visitors’ IP addresses. Download the font and serve it yourself.
Use font-display: swap. It tells the browser to show text in a fallback while the webfont loads, rather than blocking on it. The theme’s own bundled fonts do this.
For anything beyond a one-off font, a child theme is the right home for the CSS. See Child themes.

Practical guidance

The theme uses your base family for both headings and body. A separate display font is a refinement, not a requirement.
Anything from 15 to 18 works well for marketing content. Below 15 hurts long-form readability.
60–80 characters per line is comfortable. The default container widths stay in this range. If you widen the container a lot, constrain the text column.
Muted text is lightened in dark mode. Confirm your metadata and excerpts remain readable.

Typography

A guided walkthrough of setting your fonts.

CSS and design tokens

Every CSS variable the theme exposes.