# Typography

Page: /docs/foundations/typography

{/* Figma: Meridian → Typography (page 7:92). Laid out like Pathfinder’s Typography page. */}

Two typefaces. Baskervville Medium for titles, statements, quotes and figures. Inter for everything else. Baskervville numbers are always lining and tabular.

<TypographyPlayground />

## Typefaces [#typefaces]

Baskervville is a Google font; Inter is the UI face shared with Pathfinder.

<Typefaces />

## Website roles [#website-roles]

The marketing and blog styles, `Web/<Role>` in Figma. Desktop size shown; tablet and phone sizes are in each style’s description in Figma. These are Meridian’s own and do not exist as CSS classes yet.

<WebRoles />

## UI styles [#ui-styles]

Pathfinder’s Heading, Label and Copy styles for controls, plus Meridian Label/14 and Label/16 for 40px fields and xl buttons. Where Pathfinder ships a class, the specimen below uses it.

<UiStyles />

## Use a complete text style [#use-a-complete-text-style]

A Pathfinder class carries family, size, line height, weight and tracking in one go. Colour and the HTML tag stay your choice.

```tsx
import "@commenda/pathfinder/styles.css";

export const FieldLabel = () => <label className="pf-txt-label-13-strong">Entity name</label>;
```

Tracking is in em: Figma’s −2% is `-0.02em`, not −2px.

## Roles [#roles]

- **Display, Statement, Quote, Figure** are Baskervville Medium. They carry the page’s message, never UI.
- **H2, H3, Title** are Inter Medium and organise content under a Baskervville headline.
- **Article H2, Article H3, Body Article** are for blog posts, TP guides and country pages, sized for long reading.
- **Eyebrow** is Inter Semi Bold 13/16, uppercase, tracked 10%, and always sits above a heading.
- **Label** is compact UI text: fields, buttons, chips. **Copy** is wrapping prose inside product UI.
- Choose h1–h6 by document structure, never by font size.

## Blog spacing [#blog-spacing]

Every heading, paragraph, table and image in an article brings its own space above and below. Writers never add spacing by hand, so every post, guide and template looks the same.

| Element | Role | Above | Below |
| --- | --- | --- | --- |
| h2 | Article H2 · 24/32 | 48 | 16 |
| h3 | Article H3 · 20/28 | 32 | 12 |
| h4 | Title · 18/26 | 24 | 8 |
| p | Body Article · 16/26 | 0 | 16 |
| ul, ol | Body Article | 0 | 16 |
| li | Body Article | 0 | 8 |
| table | Table, reading size | 32 | 32 |
| img, figure | – | 32 | 32 |
| figcaption | Caption · 12/16 | 8 | 0 |
| blockquote, callout | Lead · 18/28 | 32 | 32 |
| hr | 1px border/subtle | 48 | 48 |

When two spaces meet, the bigger one wins: 16 below a paragraph and 48 above an h2 give 48, not 64. The first element has no top space. A heading straight under a heading drops its top space. Phone: h2 top 40, h3 top 24.

## Fonts in code [#fonts-in-code]

The website loads both faces with `next/font`: Inter as `--font-sans`, Baskervville as `--font-serif`. Use `font-serif font-medium` for Baskervville. Do not import `@commenda/pathfinder/fonts.css`; Inter is already loaded, and a second copy is a duplicate download.

## Best practices [#best-practices]

- Only two fonts: Baskervville Medium and Inter. No third font, even as a placeholder.
- Baskervville numbers are lining and tabular. In Figma set Type settings → Details → Numbers on every Baskervville style; the API cannot set it.
- Article spacing lives on the element: h2 48 above, 16 below; h3 32 / 12; p 16 below.
- Same use case, same role, on every page.
- Source: Pathfinder Typography for UI styles. Meridian adds the Web roles and Label/14, Label/16.
