Skip to content

FONT_STACKS

reference
1 min readUpdated

Kind: Constant

Source: atloria-monorepo/apps/web/src/app/p/[slugId]/components/fonts.ts

Curated font stacks for white-label branding (A4).

Branding is RUNTIME data, so we deliberately do NOT load webfonts (no next/font, no Google Fonts — that would leak reader traffic to a third party and flash unstyled text). Each curated key maps to a stack that uses the font when the reader has it installed and degrades to a metric-compatible system face otherwise.

Keys mirror the server's FONT_KEYS allow-list (branding.service.ts). custom:<stack> passes the raw (server-validated) stack through.

Definition

ts
Record<string, { label: string; stack: string }>

Was this page helpful?

Download as PDF