Fonts

Self-hosted variable fonts with latin and latin-ext subsets.

@surface-one/tokens bundles every font it references — Inter, Geist, Geist Mono, Figtree, DM Sans, JetBrains Mono, Schibsted Grotesk and Source Serif 4 — as self-hosted WOFF2 variable fonts. Nothing is loaded from a CDN.

latin-ext is mandatory

Each family ships two files: latin and latin-ext. The latin subset alone has no ą, ć, ę, ł, ń, ś, ź, ż (or ő, ř, ș …), so the browser would draw those glyphs from a system face mid-word. A unicode-range split means a page downloads the latin-ext file only when it renders one of those characters.

css
@font-face {
  font-family: "Figtree";
  font-weight: 300 900;
  font-display: swap;
  src: url("../fonts/figtree-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, /* … */ U+A720-A7FF;
}

Chinese and Japanese text falls back to the platform's own CJK face through each font stack.

Adding a font

A new family is accepted only with both subsets. Add the two WOFF2 files to packages/tokens/fonts/ and a pair of @font-face rules to fonts.css.