Typography
Typography settings decide which fonts your app uses and how big text is. You choose a body font , a heading font , a base size and a type scale ; headings, labels and small text are then sized consistently from those four values.
Typography settings decide which fonts your app uses and how big text is. You choose a body font, a heading font, a base size and a type scale; headings, labels and small text are then sized consistently from those four values.
When to use
- Match your brand's typeface.
- Make text larger for an app used on tablets in the field, or smaller for a dense back-office tool.
- Give headings more or less emphasis.
Settings
Open Theme › Typography:
| Setting | What it does | Default |
|---|---|---|
| Body font | Font for paragraphs, inputs, tables and buttons | Inter / system |
| Heading font | Font for headings (h1–h4) | Inter / system |
| Base size | Size of body text, 12–18 px | 14 px |
| Type scale | How much bigger each heading level is than the one below | 1.2 — Balanced |
Font choices available in the list: Inter / system, Segoe UI, Arial, Georgia, Playfair Display, Roboto, DM Sans, Source Serif, Monospace, plus any fonts you uploaded (shown as "Name (uploaded)").
Type scale options: 1.125 (Subtle), 1.2 (Balanced), 1.25 (Pronounced), 1.333 (Dramatic).
How sizes are derived
With base size 14 and scale 1.2:
h1 ~29 px (base × scale⁴) h2 ~24 px (base × scale³) h3 ~20 px (base × scale²) h4 ~17 px (base × scale) body 14 px small 12 px (base ÷ scale) tiny 10 px (base ÷ scale²)
Raise the base size to 16 for a friendlier customer portal; keep 14–15 px for data-heavy business apps, as the help text in the Theme view suggests.
Hosted and uploaded fonts
- Fonts such as Playfair Display, DM Sans, Roboto and Source Serif are loaded from Google Fonts automatically when selected (weights 400–700). Lora, Poppins, Nunito and Open Sans are loaded the same way if a custom font-family value names them.
- Your own font files are added under Custom fonts and then appear in both font lists. See Custom fonts.
Per-component typography
The inspector's Style tab has Font size, Weight (300–800), Line height, Letter spacing, Align, Transform and Font family for a single component. The Responsive tab lets you change Font size and Text align for one breakpoint, which is useful for shrinking a big hero heading on phones.
Common mistakes
- Base size below 14 on mobile. Phone browsers zoom into inputs smaller than 16 px on some devices; keep forms readable.
- A decorative heading font for body text. Scripts and display serifs are hard to read in tables. Use them for headings only.
- Typing a font name that is not installed. The Font family field in the Style tab accepts any name, but the font only shows if the visitor's device has it or you uploaded it. Use the Theme font lists.
Advanced
Tokens: typography.fontFamily, typography.headingFontFamily, typography.baseSize (10–24), typography.scale (1–1.6). The runtime exposes --mab-font, --mab-font-heading, --mab-text-base, --mab-text-sm, --mab-text-xs, --mab-h1 … --mab-h4. Font values are CSS font stacks, for example 'DM Sans', Arial, sans-serif; a custom font becomes 'Brand Sans', Inter, 'Segoe UI', Arial, sans-serif.