# Typography

The root is 15px (1rem). The app draws three sizes a major third apart: 12px, 15px and 18.75px; nothing is smaller than 12px. xl to 4xl are fluid, for the docs and the landing. Five faces, one job each, and roles that name a face, size, weight, leading and tracking together; components take a role.

## Families

- **Inter** What a person reads: body text, values, table cells, typed input, empty states (`--q-sans-family`, through `--q-body-family`).
- **Inter Tight** What names or acts in the app: its sectioning (page, dialog and section titles), buttons, tabs, selects, menus, field labels, table heads (`--q-title-family`, through `--q-sectioning-family` and `--q-label-family`).
- **Urbanist** The sites' voice: display and headings on the landing and this guide, never inside the app (`--q-brand-family`, through `--q-display-family`).
- **Karla** The wordmark, in every product (`--q-logo-family`, through `--q-wordmark-family`).
- **Spline Sans Mono** What is a string or a column: code, ids, paths, keys, aligned figures, the uppercase eyebrow (`--q-mono-family`, through `--q-code-family`, `--q-figure-family` and `--q-eyebrow-family`).

## Type scale

- `--q-text-xs` 12px (2xs aliases it)
- `--q-text-base` 15px (sm aliases it)
- `--q-text-lg` 18.75px (md aliases it)
- `--q-text-xl` 19.5–22.5px
- `--q-text-2xl` 21.75–26.25px
- `--q-text-3xl` 25.5–33.75px
- `--q-text-4xl` 30–45px

## Weights

- Light 300
- Regular 400
- Medium 500
- Demi 550
- Semibold 600
- Display 650
- Bold 700

## Roles

Each role names a face, size, weight, leading and tracking, every one an alias of a primitive; its class (or the element it defaults on) applies it whole. Each row lists the values needed to reproduce it outside the system: Figma or print.

Display

- **Family**: Urbanist
- **Size**: 4xl · 30–45px
- **Weight**: Display · 650
- **Leading**: Tight · 1.15
- **Tracking**: 0

Display SM

- **Family**: Urbanist
- **Size**: 3xl · 25.5–33.75px
- **Weight**: Display · 650
- **Leading**: Tight · 1.15
- **Tracking**: 0

Page title · h1, h2

- **Family**: Inter Tight
- **Size**: lg · 18.75px
- **Weight**: Demi · 550
- **Leading**: Snug · 1.35
- **Tracking**: 0

Dialog title

- **Family**: Inter Tight
- **Size**: lg · 18.75px
- **Weight**: Demi · 550
- **Leading**: Snug · 1.35
- **Tracking**: 0

Section title · h3–h6

- **Family**: Inter Tight
- **Size**: base · 15px
- **Weight**: Demi · 550
- **Leading**: Snug · 1.35
- **Tracking**: 0

Body

- **Family**: Inter
- **Size**: base · 15px
- **Weight**: Regular · 400
- **Leading**: Normal · 1.6
- **Tracking**: 0

Body, long-form

- **Family**: Inter
- **Size**: base · 15px
- **Weight**: Regular · 400
- **Leading**: Relaxed · 1.7
- **Tracking**: 0

Caption

- **Family**: Inter
- **Size**: xs · 12px
- **Weight**: Regular · 400
- **Leading**: Normal · 1.6
- **Tracking**: 0

Label

- **Family**: Inter Tight
- **Size**: base · 15px
- **Weight**: Medium · 500
- **Leading**: Snug · 1.35
- **Tracking**: 0

Label SM

- **Family**: Inter Tight
- **Size**: xs · 12px
- **Weight**: Medium · 500
- **Leading**: Snug · 1.35
- **Tracking**: Slight · 0.02em

Table head · th

- **Family**: Inter Tight
- **Size**: base · 15px
- **Weight**: Regular · 400
- **Leading**: Snug · 1.35
- **Tracking**: 0

Eyebrow · panel title

- **Family**: Spline Sans Mono
- **Size**: xs · 12px
- **Weight**: Medium · 500
- **Leading**: Normal · 1.6
- **Tracking**: Wide · 0.04em
- **Case**: Uppercase

Code

- **Family**: Spline Sans Mono
- **Size**: inherits
- **Weight**: Regular · 400
- **Leading**: inherits
- **Tracking**: 0

Figure

- **Family**: Spline Sans Mono, tabular
- **Size**: inherits
- **Weight**: inherits
- **Leading**: inherits
- **Tracking**: 0

Figure, inline

- **Family**: inherits, tabular
- **Size**: inherits
- **Weight**: inherits
- **Leading**: inherits
- **Tracking**: inherits

Empty state

- **Family**: Inter, subtle ink
- **Size**: base · 15px
- **Weight**: Regular · 400
- **Leading**: Normal · 1.6
- **Tracking**: 0

Input · placeholder

- **Family**: Inter (placeholder: subtle ink)
- **Size**: base · 15px
- **Weight**: Regular · 400
- **Leading**: Snug · 1.35
- **Tracking**: 0

## Examples

A few realistic compositions showing how the roles stack together.

### Example 1: An article head

Eyebrow, heading and caption: three roles, one clear order.

```svelte
<div class="col">
  <span class="q-text-eyebrow ex-subtle">Engineering · 2026-04-12</span>
  <div class="q-text-heading-xl ex-title">
    Why we rebuilt the training scheduler around event sourcing
  </div>
  <p class="q-text-caption ex-subtle">
    Adi Sharma · 8 min read · Updated yesterday
  </p>
</div>
```

### Example 2: A label and its value

The label names in Inter Tight; the id is a string, so it takes the code face.

```svelte
<span class="q-text-label">Checkpoint</span>
<code class="q-text-code ex-code">ckpt-0142.safetensors</code>
```

### Example 3: A field and its hint

Typed input reads in Inter; the hint under it is a caption in subtle ink.

```svelte
<form class="col" onsubmit={(e) => e.preventDefault()}>
  <label class="q-text-label" for="ex-name">Project name</label>
  <input id="ex-name" type="text" value="towel-fold-v3" readonly />
  <span class="q-text-caption ex-subtle">
    Lowercase letters, numbers, and hyphens.
  </span>
</form>
```

---

From the Qualia design guide: https://q-core-3b2732.gitlab.io/tokens/typography. Every page as markdown: https://q-core-3b2732.gitlab.io/llms.txt
