# Typography

Source: https://ecosphere.dev/docs/foundations/typography (Ecosphere 1.5). Install `vue-ecosphere` for Vue 3 or `react-ecosphere` for React 18.2+/19: same components, props, markup and stylesheet.

Two faces and a third slot for figures. Never set font-family yourself — the three tokens are the whole vocabulary.

## Faces

One face for headings, one for everything else, and a token for figures that points at the UI face.

| Role | Face | Token | Used for |
| --- | --- | --- | --- |
| Display | Fraunces | `--font-display` | display-1/2/3 and nothing else |
| UI | Google Sans | `--font-ui` | every label, control, body and subhead |
| Figures | Google Sans | `--font-num` | every number, at any size |

## Scale

Optical sizing is on for the display face, so a bigger heading is never also a heavier one, and tracking eases toward neutral as size drops.

## Heading and subheader pairing

Keep display-1 for a page with one idea — an empty state, a landing panel; a view that needs two of them needs two views.

## Figures

Never set a number in the display face, at any size, and keep tabular figures so a changing value cannot shift what sits beside it. num is the base; num--xl (44px), num--lg (30px) and num--sm (18px) are the heading-scale sizes.

## Mixing faces

A heading keeps its figures on the UI face and carries at most one accent.
