Skip to content

Typography

One or two families, type roles for every kind of text, and fonts you are allowed to use on the web.

Applies to EngineCloud
View as Markdown
On this page
  1. Families
  2. Type roles
  3. Fonts you are allowed to use
  4. How fonts are served

Families

A guide uses one or two families: one for display and headings, one for text, or one for both. A third, monospaced, is allowed for codes and numbers that must line up (La Espiga uses one for the pick-up code).

Type roles

Code never asks for «20 px bold». It asks for a role.

RoleForLa Espiga, phone → desktop
displaythe one big line of a page36 → 56 px, headings family
titlethe title of a screen26 → 34 px
headinga section20 → 24 px
bodytext16 → 17 px, text family
smallnotes, help under a field14 px
labelbuttons, tabs, field labels15 px, medium weight
numberprices and quantitiestext family with tabular figures
codethe pick-up codemonospaced, 22 px, wide spacing

Each role has its family, size, line height, weight and letter spacing, for phone and desktop. Body text is never under 16 px, and lines of text stay between about 45 and 75 characters.

Fonts you are allowed to use

SourceAllowed
Fonts under an open licence (SIL Open Font License, Apache)yes; Design proposes from this catalogue
Fonts you bought with a licence that includes web useyes; upload the files and record the licence
Fonts without a web licence, or copied from another siteno

Uploaded fonts go to design/brand/fonts/ with a line in design/brand/fonts/LICENSES.md saying where the licence comes from. Design never asks you to break a licence and never suggests a font only because a famous brand uses it.

How fonts are served

Fonts are served with your app, from your own domain: no third-party font service sees your visitors. They are subset to the languages your guide declares, use font-display: swap so text shows at once, and load two weights per family unless the guide asks for more.

  1. Families
  2. Type roles
  3. Fonts you are allowed to use
  4. How fonts are served

    Search pages, sections and terms