Skip to content
OAIT Design System

Design system / Foundations

Typography

The typefaces, the 28 text styles, and the rules for setting English, Arabic, and French in every OAIT product.

Every value on this page comes from the tokens: sizes, line heights, weights, tracking, compact sizes, and the Arabic line heights are in Type scale, the stacks in Type families. The rules come from the canonical rules §3 and the typography decisions D-TYP-01 to D-TYP-19 in the decision log, as amended by D-ARC-20, D-ARC-21, D-ARC-27, D-ARC-29, D-ARC-34, and V-8.

On this page:

Rules in brief

  1. One stack for three languages. --font-sans draws Latin letters, digits, and punctuation in Roboto Flex and lets Arabic letters fall through to Noto Kufi Arabic. Never switch the family by language or direction (D-TYP-05). Headings (h1 to h6) use a second stack, --font-heading, which leads with Inter, the open face closest to Apple's San Francisco, and falls through to Noto Kufi Arabic for Arabic in the same way (D-TYP-20).
  2. Three faces, self-hosted. Roboto Flex with the wght and opsz axes, Noto Kufi Arabic, and Roboto Mono, as woff2 with font-display: swap. Preload the Roboto Flex latin file on every page, Noto Kufi Arabic only on Arabic pages, Roboto Mono never (D-TYP-01, D-TYP-02, D-TYP-03, D-TYP-04, D-TYP-06).
  3. Four weights. 400, 500, 600, and 700. No italics; emphasis is 600 (D-TYP-07).
  4. Text only through the styles. text-<style> in Tailwind, or .oa-text-<style> in plain CSS, sets size, line height, tracking, and weight together. Never an arbitrary size, tracking, or line-height utility (D-TYP-08, D-TYP-10).
  5. Arabic comes with the tokens. The :lang(ar) block in oait.css and tailwind.css gives Arabic its taller line heights and removes tracking. Never hand-write it (D-TYP-14, D-ARC-29).
  6. Numbers. Western digits through Intl with -u-nu-latn, tabular-nums wherever numbers line up or change, Roboto Mono for codes and IDs, and <bdi dir="ltr"> around them inside Arabic (D-TYP-12, D-TYP-13).
  7. Sentence case. Uppercase comes only from CSS, and only for eyebrows and card art (D-TYP-11, D-TYP-17).
  8. Floors. 12px for any text that carries meaning, 16px in inputs, 28px on the projector stage (D-TYP-17).
  9. Shape of text. Balanced headings, pretty paragraphs, never justified; paragraphs at most max-w-measure (42rem) (D-TYP-17, D-ARC-34).

Typefaces

Token CSS · Tailwind Stack (exact) Faces served Use
sans --font-sans · font-sans "Roboto Flex", "Roboto Flex Variable", "Noto Kufi Arabic", "Noto Kufi Arabic Variable", ui-sans-serif, system-ui, sans-serif Roboto Flex: wght 100–1000 and opsz 8–144; latin 84,304 B (preloaded), latin-ext 59,020 B (on demand). Noto Kufi Arabic: wght 100–900; arabic 123,688 B (optional core subset 38,312 B). Both OFL-1.1 All interface, reading, and display text in English, Arabic, and French
heading --font-heading · font-heading "Inter", "Inter Variable", "Roboto Flex", "Roboto Flex Variable", "Noto Kufi Arabic", "Noto Kufi Arabic Variable", ui-sans-serif, system-ui, sans-serif Inter: wght 400–700 and opsz 14–32 served; latin 72,920 B (preloaded where the first screen has a heading). OFL-1.1 Headings only: h1 to h6, set by the base layer. Arabic headings draw in Noto Kufi Arabic through the same stack
mono --font-mono · font-mono "Roboto Mono", "Roboto Mono Variable", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace Roboto Mono: wght 100–700; latin 32,796 B; never preloaded. OFL-1.1 Only through the code styles: ID numbers, one-time codes, receipts, addresses, technical values
email --font-email "Segoe UI", Tahoma, Arial, Helvetica, sans-serif System fonts, each of which draws Arabic as well as Latin HTML email only (Email)

Why these faces:

  • Roboto Flex (D-TYP-01, D-TYP-02):
    • The decision rules land on it. The umbrella intends it and the products split between faces, so rule (c) applies Global ID's client-approved spec (§5.2), which names it.
    • It pairs with Noto Kufi Arabic: its stems at 400, 600, and 700 are within ±2.5% of Kufi's alef, and its ascender (750) sits beside the alef's 760.
    • Its figures are tabular by default, its l is taller than its I, and its zero is narrower than its O, which keeps dense admin tables legible.
    • Optical sizing (opsz) follows the font size: 11px text sets 3.4% wider than 14px text with a 1.7% taller x-height, and 64px text sets 15% narrower than without it.
  • Noto Kufi Arabic (D-TYP-03): the umbrella and three products already use it. Cairo, which Tamakkan's product uses today, has irregular stems across weights (77, 92.5, and 133 units) and shorter letters, and retires.
  • Roboto Mono (D-TYP-04): it shares Roboto Flex's skeleton and draws l, I, and 1 distinctly. It has no slashed zero, so one-time code alphabets leave out 0 O 1 I L (Crockford base-32 style; the content owner enforces it).
  • The icon font, Material Symbols Rounded, never sits in these stacks; see Iconography.

How the stack works

  • Latin letters, digits, and punctuation draw in Roboto Flex in all three languages, so "30" and "QR" inside an Arabic sentence look exactly as they do in English. Arabic letters are not in the Roboto Flex files, so the browser takes each one from the next family that has it: Noto Kufi Arabic (D-TYP-05).
  • The stack lists both registration names of each face. next/font registers "Roboto Flex"; fontsource registers "Roboto Flex Variable" (and likewise for Kufi and Mono). Either loader works without touching the stack (D-TYP-05).
  • Write family names literally. A var() inside a stack needs a literal fallback, because one undefined variable voids the whole declaration; that is why oait's English pages render in a system font today (D-TYP-05, OA-1.01).
  • Put nothing before Noto Kufi Arabic: no system font and no generated "Roboto Flex Fallback" face. A face without a unicode-range ahead of Kufi catches every Arabic letter its local font can draw, and Arial draws Arabic on Windows, macOS, and iOS (D-TYP-05, D-TYP-06).
  • Never change the family with :lang(), dir, or [dir=rtl]. --font-arabic is retired (D-TYP-05).
  • Never give a loader's CSS variable a token's name. next/font's variable: '--font-sans', which some templates use, replaces the family stack with one face and drops Arabic. Name the variable after the face (--font-roboto-flex) or leave it out, and never put a loader's className on <html> or <body>, which also sets the family to one face (D-TYP-05).

What each stack actually paints, measured in Chromium with the real woff2 files for this page:

What the page declares "Global ID" (Latin) paints in "الهوية" (Arabic) paints in
The family stack, with next/font names or with fontsource names Roboto Flex Noto Kufi Arabic
A generated local() fallback face between Roboto Flex and Kufi (next/font's default) Roboto Flex the fallback's local font where it has Arabic glyphs (Arial on Windows, macOS, and iOS; measured with a local stand-in that has them); Noto Kufi Arabic where it has none (Linux)
A var() chain with an undefined variable (oait's English pages today) a system font: the page's own fallback for the broken declaration (oait's base CSS falls back to a system sans-serif stack), or the browser's default serif when there is none a system font
system-ui before Kufi (Jobs today) Roboto Flex Noto Kufi Arabic on the Linux test machine; the system font wherever the system UI font has Arabic glyphs

The second and last rows depend on the platform, which is why the painted-font test also checks the stack itself and the page CSS.

The face: Roboto Flex or Figtree

Measured facts for the decision (typography record, D-TYP-01):

Fact Roboto Flex (wght + opsz) Figtree
Renders today Global ID; the Latin parts of oait's Arabic pages Jobs, Games, the Tamakkan landing
Specified Global ID's client-approved spec §5.2; oait's code none
Width by size (Figtree against Roboto Flex) baseline 11px -0.4%, 12px +0.7%, 14px +2.9%, 16px +3.8%, 24px +7.7%, 36px +14.0%, 64px +21.1%, 96px +27.1%
Width on real strings baseline +0.7% (600-weight button labels) to +1.8% (a French paragraph); an English paragraph +1.1%; an admin table +1.6% in English, +0.9% in French
Face swapped on 8 live pages of Jobs, Global ID, and Games baseline 0–2 line breaks changed per page at interface sizes, in both directions; display headings moved more
Pairing with Noto Kufi Arabic stems within ±2.5% of Kufi's alef stems 10–13.5% lighter: Figtree 700 matches Kufi 600
Small text l taller than I; opsz opens 11–12px text l and I the same height, so "Il" is ambiguous
Figures tabular by default proportional by default (tabular on request)
Latin file 84,304 B 20,156 B
Axes served wght, opsz wght only
Character neutral, institutional, Material-native; warmth comes from the orange, the copy, and the illustrations geometric and friendly, warmer and more playful

Read the widths correctly. The often-quoted "Figtree is 27% wider" compares the two faces at 100px with Roboto Flex at opsz 100: display text, where optical sizing tightens Roboto Flex (+27.1% at 96px in the table above). At interface sizes the difference is 2.9–3.8% (14–16px), and on real strings 0.7–1.8%; against Global ID's current wght-only build it is +2.9% at every size. The choice therefore rests on brand, figures, the Arabic pairing, and display behavior, not on fitting interface text (D-TYP-01).

Either way:

  • If the default stands: Jobs, Games, and Tamakkan change face, and their display tracking (-0.045em to -0.065em) changes in the same commit, or letters collide in Roboto Flex. Font payload rises by about 64 KB on those sites (D-TYP-01, D-TYP-10).
  • If the client picks Figtree: Global ID changes face (its spec §5.2 is amended first, and its e2e/design.spec.ts changes); opsz is lost; 14–64 KB is saved per product. Apart from the tracking, figure, and Arabic weight changes listed above, everything on this page stands: the scale, the sizes, and the Arabic and French rules (D-TYP-01).

Loading and self-hosting

  • Serve the fonts from the product's own origin as woff2, with font-display: swap. Products allow fonts from their own origin only (CSP font-src 'self'); Google Fonts appear only in reference pages, artifacts, and prototypes (D-TYP-06).
  • Preload by this table (D-TYP-06):
File Preload Why
Roboto Flex latin (wght + opsz) on every page it draws the first text of every page
Noto Kufi Arabic, arabic subset only on pages rendered in Arabic English and French pages rarely draw it
Roboto Mono latin never only codes and IDs use it
Roboto Flex latin-ext never; it loads on demand only names with letters outside Latin-1 need it; French needs only latin

Next.js with next/font (oait, Global ID, Jobs)

// app/layout.tsx
import { Inter, Noto_Kufi_Arabic, Roboto_Flex, Roboto_Mono } from 'next/font/google'
import type { ReactNode } from 'react'
import { getLocale } from '@/i18n/locale' // the product's own language source: account, cookie, or path

// adjustFontFallback: false and fallback: [] on every face. Without them next/font adds a
// "<Font> Fallback" face (a local Arial) with no unicode-range right after the web font, and
// wherever Arial has Arabic glyphs (Windows, macOS, iOS) Arabic letters stop there instead of
// reaching Noto Kufi Arabic.
const robotoFlex = Roboto_Flex({
  subsets: ['latin'],
  axes: ['opsz'], // wght + opsz: every tracking value assumes opsz
  display: 'swap',
  adjustFontFallback: false,
  fallback: [],
  variable: '--font-roboto-flex', // never '--font-sans'
})
const inter = Inter({
  subsets: ['latin'],
  axes: ['opsz'], // headings only (D-TYP-20): the display cut at large sizes
  display: 'swap',
  adjustFontFallback: false,
  fallback: [],
  variable: '--font-inter', // never '--font-heading'
})
const notoKufiArabic = Noto_Kufi_Arabic({
  subsets: ['arabic'],
  display: 'swap',
  adjustFontFallback: false,
  fallback: [],
  preload: false, // preload only on pages rendered in Arabic
  variable: '--font-noto-kufi-arabic',
})
const robotoMono = Roboto_Mono({
  subsets: ['latin'],
  display: 'swap',
  adjustFontFallback: false,
  fallback: [],
  preload: false, // never preloaded
  variable: '--font-roboto-mono',
})

export default async function RootLayout({ children }: { children: ReactNode }) {
  const locale = await getLocale() // 'en' | 'ar' | 'fr'
  const dir = locale === 'ar' ? 'rtl' : 'ltr'
  return (
    <html
      lang={locale}
      dir={dir}
      className={[robotoFlex.variable, inter.variable, notoKufiArabic.variable, robotoMono.variable].join(' ')}
    >
      <body>{children}</body>
    </html>
  )
}
  • Both fallback options. Turbopack ignores adjustFontFallback: false; the empty fallback list is what removes the generated face there, and webpack needs adjustFontFallback: false. Global ID ships both options on all three faces and guards them with its e2e test; it adds axes: ['opsz'] in its migration (D-TYP-06, ID-2.22).
  • axes: ['opsz'] serves wght + opsz (84 KB latin instead of 34 KB). Every tracking value on this page assumes it; without it, display text sets 11–20% wider than specified at 36–76px (D-TYP-02).
  • Family names. next/font registers the real family names ("Roboto Flex", "Noto Kufi Arabic", "Roboto Mono"; checked in the production CSS of oait, Global ID, and Jobs), so the token stack matches them without the variables. The variable classes on <html> are harmless, and Global ID's test reads them.
  • The Arabic preload. Preload Kufi only where the page is in Arabic: in a layout that wraps only Arabic routes, or with a preload link the server writes when the language comes from a cookie. Otherwise keep preload: false, as Global ID does; the Arabic file then starts loading as soon as Arabic text is laid out (D-TYP-06).

Plain CSS and Vite: self-hosted @font-face (Games, Tamakkan)

Copy the files from the fontsource packages (checked on npm at 5.3.0, OFL-1.1) to a fixed path such as /fonts/, and declare them under the canonical family names:

Face Package and file Size Serve as
Roboto Flex, latin @fontsource-variable/roboto-flex, files/roboto-flex-latin-opsz-normal.woff2 84,304 B /fonts/roboto-flex-latin-opsz.woff2
Roboto Flex, latin-ext @fontsource-variable/roboto-flex, files/roboto-flex-latin-ext-opsz-normal.woff2 59,020 B /fonts/roboto-flex-latin-ext-opsz.woff2
Noto Kufi Arabic, arabic @fontsource-variable/noto-kufi-arabic, files/noto-kufi-arabic-arabic-wght-normal.woff2 123,688 B /fonts/noto-kufi-arabic-arabic.woff2
Roboto Mono, latin @fontsource-variable/roboto-mono, files/roboto-mono-latin-wght-normal.woff2 32,796 B /fonts/roboto-mono-latin.woff2
/* fonts.css: the family faces under their canonical names. Ranges are Google's subsets. */
@font-face {
  font-family: "Roboto Flex";
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url("/fonts/roboto-flex-latin-opsz.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Roboto Flex";
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url("/fonts/roboto-flex-latin-ext-opsz.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Noto Kufi Arabic";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/noto-kufi-arabic-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face {
  font-family: "Roboto Mono";
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url("/fonts/roboto-mono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
<!-- In <head> on every page. crossorigin is required: fonts load in CORS mode, and a preload without it is fetched twice. -->
<link rel="preload" href="/fonts/roboto-flex-latin-opsz.woff2" as="font" type="font/woff2" crossorigin>
<!-- Pages rendered in Arabic also preload: -->
<link rel="preload" href="/fonts/noto-kufi-arabic-arabic.woff2" as="font" type="font/woff2" crossorigin>
  • Woff2 only. Games serves TrueType files under woff2 names today (about 178 KB per Kufi face); the variable woff2 replaces all nine (D-TYP-03, D-TYP-06).
  • The weight ranges are the files' whole ranges; nothing asks for a weight outside 400–700 (Weights).

fontsource imports are the quickest setup in a Vite build:

import '@fontsource-variable/roboto-flex/opsz.css' // wght + opsz; the package's index.css is wght only
import '@fontsource-variable/noto-kufi-arabic'
import '@fontsource-variable/roboto-mono'
  • They register "Roboto Flex Variable", "Noto Kufi Arabic Variable", and "Roboto Mono Variable", which the stack already lists.
  • The Kufi package also declares latin, latin-ext, math, and symbols faces under its family. Roboto Flex still draws Latin because it comes first, and a face downloads only when a character needs it.
  • fontsource writes no preload link. The Roboto Flex preload is still owed on every page, which is simplest with the files at a fixed path as above.

The optional core-Arabic subset (D-TYP-03) cuts the Kufi file from 123,688 B to 38,312 B with identical widths on every tested string, vocalized text, the loanword letters گ پ چ, and Arabic-Indic digits included; only the single-code-point ligatures ﷲ and ﷺ are lost. It needs a build step, worth it for Jobs (public, mobile, MENA networks) and optional elsewhere. Set the face's unicode-range to the same code points.

pyftsubset noto-kufi-arabic-arabic.woff2 --flavor=woff2 --layout-features='*' \
  --unicodes="U+0020,U+00A0,U+0600-061F,U+0621-065F,U+0660-066F,U+0670-0671,U+067E,U+0686,U+06A4,U+06A9,U+06AF,U+06CC,U+06D4,U+200C-200F,U+FD3E-FD3F" \
  --output-file=kufi-arabic-core.woff2

Reference pages, artifacts, and prototypes may load Google Fonts, never products (canonical §3.2):

<!-- Google Fonts: reference and test pages only; products self-host (canonical §3.2) -->
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Roboto+Flex:opsz,wght@8..144,400..700&family=Inter:opsz,wght@14..32,400..700&family=Noto+Kufi+Arabic:wght@400..700&family=Roboto+Mono:wght@400..600&display=swap">

The painted-font test

Every product carries a Playwright test that proves what the browser paints, after Global ID's e2e/design.spec.ts (D-TYP-06). It asserts:

  1. The stack. The computed family of <body> starts with the family stack, so nothing sits before Noto Kufi Arabic. This catches a system font before Kufi on any operating system. The family adds this check to Global ID's pattern; it applies D-TYP-05 directly.
  2. No local() face. The page CSS declares no font face whose source is local(). This catches next/font's generated fallback even on Linux CI, where Arial has no Arabic glyphs and the paint check cannot see it.
  3. The paint. Through the Chrome DevTools Protocol (CSS.getPlatformFontsForNode): English text paints only in Roboto Flex, Arabic only in Noto Kufi Arabic, a Global ID number only in Roboto Mono, each a web font.

Global ID's test also proves that every font request comes from the product's own origin and that no CSP violation fires.

// e2e/fonts.spec.ts
import { expect, test } from '@playwright/test'

const samples = [
  { id: 'gid-latin', lang: 'en', text: 'Global ID', mono: false, face: 'Roboto Flex' },
  { id: 'gid-arabic', lang: 'ar', text: 'الهوية', mono: false, face: 'Noto Kufi Arabic' },
  { id: 'gid-code', lang: 'en', text: 'GU-25-000123', mono: true, face: 'Roboto Mono' },
]

test('the family stack puts nothing before Noto Kufi Arabic', async ({ page }) => {
  await page.goto('/')
  // Browsers serialize the list differently, so compare the family names without their quotes.
  const families = await page.evaluate(() =>
    getComputedStyle(document.body)
      .fontFamily.split(',')
      .map((name) => name.trim().replace(/^['"]|['"]$/g, '')),
  )
  expect(families.slice(0, 3)).toEqual(['Roboto Flex', 'Roboto Flex Variable', 'Noto Kufi Arabic'])
})

test('the page CSS declares no local() font face', async ({ page }) => {
  await page.goto('/')
  const localFaces = await page.evaluate(() =>
    [...document.styleSheets].flatMap((sheet) =>
      [...sheet.cssRules]
        .filter((rule) => rule instanceof CSSFontFaceRule && rule.style.getPropertyValue('src').includes('local('))
        .map((rule) => rule.style.getPropertyValue('font-family')),
    ),
  )
  expect(localFaces).toEqual([])
})

test('Latin paints in Roboto Flex, Arabic in Noto Kufi Arabic, IDs in Roboto Mono', async ({ page, context, browserName }) => {
  test.skip(browserName !== 'chromium', 'needs the Chrome DevTools Protocol')
  await page.goto('/') // run it on an English page and on an Arabic page
  await page.evaluate(async (list) => {
    for (const { id, lang, text, mono } of list) {
      const el = document.createElement('p')
      el.id = id
      el.lang = lang
      el.textContent = text
      if (mono) el.style.fontFamily = 'var(--font-mono)'
      document.body.append(el)
      // Asking for the font with text it covers makes the browser fetch the file.
      await document.fonts.load('16px ' + getComputedStyle(el).fontFamily, text)
    }
    await document.fonts.ready
  }, samples)
  const cdp = await context.newCDPSession(page)
  await cdp.send('DOM.enable')
  await cdp.send('CSS.enable')
  const { root } = await cdp.send('DOM.getDocument')
  for (const { id, face } of samples) {
    const { nodeId } = await cdp.send('DOM.querySelector', { nodeId: root.nodeId, selector: '#' + id })
    const { fonts } = await cdp.send('CSS.getPlatformFontsForNode', { nodeId })
    expect(fonts.map(({ familyName, isCustomFont }) => ({ familyName, isCustomFont })), id).toEqual([
      { familyName: face, isCustomFont: true },
    ])
  }
})
  • The protocol reports the font file's own family name, so the same expectations hold with next/font names and with fontsource's "… Variable" names.
  • Dry-run for this page in Chromium: all three tests pass with either naming. A generated local() face fails the stack and local() tests everywhere, and the paint test wherever its local font has Arabic glyphs; system-ui before Kufi fails the stack test (on Linux the paint test cannot see it); a broken var() chain fails the stack and paint tests.
  • Only Chromium has the protocol, so the paint test skips elsewhere; the first two run on every browser.

Weights

Token CSS Tailwind Value Use
normal --font-weight-normal font-normal 400 Reading text: body, lead, captions
medium --font-weight-medium font-medium 500 label-sm, the code styles, field error lines, stat labels, and the stage lock-up's sub-line
semibold --font-weight-semibold font-semibold 600 Headlines, hero-md, display, title-lg, title-sm, label-lg and label-md (buttons, chips, tabs, inline links), the eyebrow, emphasis
bold --font-weight-bold font-bold 700 hero-lg, title-md, numerals, the current navigation item
  • Nothing else, in any product. The variable ranges are served whole, but nothing asks for a weight in between: Games' 450–860 and Tamakkan's 800 retire, and so do the thin, extra-light, light, extra-bold, and black utilities, which still compile in Tailwind (D-TYP-07, V-7).
  • No italics. No italic face is served, and font-synthesis-style: none in the base CSS stops browsers slanting Roboto Flex and, worse, Arabic (D-TYP-07).
  • Emphasis is weight 600. Browsers draw <strong> at bolder, which is 700 over 400 text. Reference base.css sets b and strong to 600; a Tailwind product adds strong { font-weight: var(--font-weight-semibold); } to its base layer, or writes <strong class="font-semibold"> (D-TYP-07).
  • A weight utility beside a style changes only the weight: Tailwind v4's text-<style> reads --tw-font-weight first. Add one only where the role table says so: font-medium on field error lines, stat labels, and the stage lock-up's sub-line; font-bold on the current navigation item (D-ARC-20, D-ARC-21).
  • Product note (Global ID): names on the ID card back may use Noto Kufi Arabic 800. It is card art, not interface (ID card) (D-TYP-07).

Type scale

  • 28 styles: three fluid marketing styles (hero-lg, hero-md, lead); the Material 3 roles display, headline, title, body, and label in three sizes each; eyebrow; two numerals; four code styles; and the three brand lock-up styles (D-TYP-08, D-TYP-09, D-ARC-27). In Tailwind v4, text-<style> sets size, line height, tracking, and weight in one class. In plain CSS, .oa-text-<style> from base.css does the same, or apply the four variables yourself (D-TYP-08).
  • Each style is four custom properties: --text-<style> (the size), --text-<style>--line-height, --text-<style>--letter-spacing, and --text-<style>--font-weight. The Arabic block re-points the line-height and letter-spacing variables (and the eyebrow's size), so every way of applying a style gets Arabic right (D-ARC-29).
  • Tailwind v3 products use tailwind.preset.cjs with oait.css; its text-<style> utilities read the same variables, so the Arabic block reaches them too (V-8).
Style Tailwind CSS Size / line height Weight Tracking Compact (phones) Arabic line height Use, with copy from the products
hero-lg text-hero-lg --text-hero-lg clamp(2.75rem, 1.875rem + 3.6vw, 4.75rem) / 1.08: 44px at 390px, 76px from 1280px 700 -0.025em fluid, 44px 1.45, no tracking The landing h1, one per page: "Good work. Closer to home." (Jobs)
hero-md text-hero-md --text-hero-md clamp(2rem, 1.35rem + 2.7vw, 3.5rem) / 1.1: 32px to 56px 600 -0.025em fluid, 32px 1.45, no tracking Landing section h2 and heroes longer than two short beats: "Opportunity starts with trust." (Jobs)
lead text-lead --text-lead clamp(1.125rem, 1rem + 0.45vw, 1.25rem) / 1.6: 18px to 20px 400 0 fluid, 18px 1.8 The paragraph under a hero (at most 30em) or a section title (at most max-w-measure, 42rem): "Your official ID card and campus pass on your phone, for students, staff and guests." (Global ID)
display-lg text-display-lg --text-display-lg 57px / 64px 600 -0.02em 36px / 44px 1.45, no tracking Rare very large statements, projector-stage titles, and one-line stage scenes: "Thanks for playing." (Games stage)
display-md text-display-md --text-display-md 45px / 52px 600 -0.02em 32px / 40px 1.45, no tracking Large statements on wide screens, stage scene titles: "The leaderboard" (Games stage)
display-sm text-display-sm --text-display-sm 36px / 44px 600 -0.01em 28px / 36px 1.45, no tracking App page titles from 768px: "On campus" (Global ID)
headline-lg text-headline-lg --text-headline-lg 32px / 40px 600 -0.01em 28px / 36px 1.6, no tracking Section headings on dashboards and wide app screens: "Needs attention" (Global ID)
headline-md text-headline-md --text-headline-md 28px / 36px 600 -0.01em none 1.6, no tracking Sign-in, setup, and step titles; full-page state titles: "Sign in with your password" (Global ID)
headline-sm text-headline-sm --text-headline-sm 24px / 32px 600 0 none 1.6 Phone page titles, dialog, and bottom-sheet titles: "Sign out of Global ID on this phone?" (Global ID)
title-lg text-title-lg --text-title-lg 20px / 28px 600 0 none 1.6 Section headings inside a page, side-sheet titles, in-content empty-state titles: "About the role" (Jobs)
title-md text-title-md --text-title-md 18px / 24px 700 0 none 1.75 Card, tile, and list-group titles: "A digital ID card" (Global ID)
title-sm text-title-sm --text-title-sm 16px / 24px 600 0 none 1.75 Small headings, legends, accordion triggers, footer column titles, list-row headlines: "Last sign-in" (Global ID)
body-lg text-body-lg --text-body-lg 16px / 24px 400 0 none 1.75 (28px) Default text, list items, input values: "Its QR code changes every 30 seconds and works offline, so a screenshot is no use to anyone else." (Global ID)
body-md text-body-md --text-body-md 14px / 20px 400 0 none 1.75 Helper and error lines, snackbars, notices, reassurance lines, table cells, dialog descriptions, metadata: "We use these details only to reply to you." (oait)
body-sm text-body-sm --text-body-sm 12px / 16px 400 0 none 1.75 Captions, footnotes, timestamps; the smallest text that carries meaning: "Last updated: 27 October 2026" (legal and help pages)
label-lg text-label-lg --text-label-lg 16px / 24px 600 0 none 1.75 48 and 56px buttons, segmented buttons, header navigation links: "Show my ID" (Global ID)
label-md text-label-md --text-label-md 14px / 20px 600 0 none 1.75 40px buttons, chips, tabs, inline links, table headers, field labels and legends, banner and popover titles: "Coming soon"
label-sm text-label-sm --text-label-sm 12px / 16px 500 0 none 1.75 Navigation bar and rail labels, badges, small status chips, the lock-up sub-line: "My ID" (Global ID)
eyebrow text-eyebrow --text-eyebrow 12px / 16px 600 0.12em none 13px, 1.75, no tracking, no uppercase The overline in primary-ink, uppercased by CSS (uppercase in Tailwind; .oa-eyebrow and .oa-text-eyebrow include it; see Eyebrows): "How we work" (oait)
numeral-lg text-numeral-lg --text-numeral-lg 40px / 48px 700 0 none unchanged (Latin, left to right) With tabular-nums: stat values, KPIs, counters, timers: "1,248"
numeral-md text-numeral-md --text-numeral-md 28px / 36px 700 0 none unchanged With tabular-nums: figures in cards, ranks, scores: "04"
code-lg text-code-lg --text-code-lg 24px / 32px 500 0.12em none unchanged, tracking kept With font-mono: one-time codes read aloud or typed, in groups of four: "7K3M-Q9TD"
code-md text-code-md --text-code-md 16px / 24px 500 0 none unchanged With font-mono: an ID or secret shown as a value: "GU-25-000123"
code-sm text-code-sm --text-code-sm 14px / 20px 500 0 none unchanged With font-mono: IDs, codes, and web addresses in lists, tables, and cards: "id.oait.app"
code-xs text-code-xs --text-code-xs 12px / 16px 500 0 none unchanged With font-mono: receipts, timeline times, course codes: "AI-100"
lockup-name text-lockup-name --text-lockup-name 22px / 28px 600 0 none unchanged (Latin name) Brand-owned: the product name in the medium lock-up (headers from 640px, footers): "Global ID"
lockup-name-compact text-lockup-name-compact --text-lockup-name-compact 18px / 24px 600 0 none unchanged Brand-owned: the small lock-up (headers below 640px): "Global Jobs"
lockup-name-stage text-lockup-name-stage --text-lockup-name-stage 38px / 42px 600 0 none unchanged Product note (Games): the stage lock-up on the 1920 × 1080 artboard: "Global Games"

The hero styles are fluid, so one class fits every width. Computed values (rounded; checked in Chromium for hero-lg):

Window width hero-lg hero-md lead
360px 44 / 47.5px 32 / 35.2px 18 / 28.8px
390px 44 / 47.6px 32.1 / 35.3px 18 / 28.8px
834px 60 / 64.8px 44.1 / 48.5px 19.8 / 31.6px
1024px 66.9 / 72.2px 49.2 / 54.2px 20 / 32px
1280px and wider 76 / 82.1px 56 / 61.6px 20 / 32px

Compact sizes. Four fixed styles shrink on phones. Each compact size equals another style's size and line height, so use that style below the sm breakpoint (--breakpoint-sm, 640px) and the full style from sm. The token notes give the same threshold, below 640px (sm); there is no 600px breakpoint (D-LAY-02). Write it mobile-first like every other responsive recipe: the compact style first, then the full style from sm, as the table shows. (text-display-lg max-sm:text-display-sm renders the same, but the family keeps max- variants for undoing a base style, D-LAY-02.) The compact style brings its own tracking and its own Arabic line height.

Style Compact (below 640px) Tailwind Plain CSS
display-lg 36px / 44px text-display-sm sm:text-display-lg the four --text-display-sm variables, then the four --text-display-lg variables inside @media (min-width: 40rem)
display-md 32px / 40px text-headline-lg sm:text-display-md the four --text-headline-lg variables, then the four --text-display-md variables inside @media (min-width: 40rem)
display-sm 28px / 36px text-headline-md sm:text-display-sm the four --text-headline-md variables, then the four --text-display-sm variables inside @media (min-width: 40rem)
headline-lg 28px / 36px text-headline-md sm:text-headline-lg the four --text-headline-md variables, then the four --text-headline-lg variables inside @media (min-width: 40rem)
hero-lg, hero-md, lead the clamp floors: 44, 32, and 18px nothing to add nothing to add

App page titles are not a compact size: they are text-headline-sm md:text-display-sm, 24px on phones and 36px from 768px; in plain CSS, .oa-page-title from base.css does the same (D-TYP-08).

Applying a style:

<!-- Tailwind v4 -->
<h1 class="text-headline-sm md:text-display-sm">On campus</h1>
<h2 class="text-title-lg">About the role</h2>
<p class="text-body-md text-on-surface-variant">We use these details only to reply to you.</p>

<!-- Reference CSS (base.css): .oa-page-title is the app page title, .oa-supporting the on-surface-variant color -->
<h1 class="oa-page-title">On campus</h1>
<h2 class="oa-text-title-lg">About the role</h2>
<p class="oa-text-body-md oa-supporting">We use these details only to reply to you.</p>
/* Plain CSS in your own stylesheet: always all four companions. */
h2 {
  font-size: var(--text-title-lg);
  line-height: var(--text-title-lg--line-height);
  letter-spacing: var(--text-title-lg--letter-spacing);
  font-weight: var(--text-title-lg--font-weight);
}

Traps

Trap What goes wrong Write instead
Material 3's values for the same names AI tools reach for M3's title-md 16/24 500, label-lg 14/20 500, label-md 12/16 500, and label-sm 11/16 The family's: title-md 18/24 700, label-lg 16/24 600, label-md 14/20 600, label-sm 12/16 500 (canonical §3.4)
Tailwind's own size scale text-lg to text-9xl still compile and sit off the scale (text-3xl is the retired 30px). Tailwind's text-xs, text-sm, text-base, and text-2xl equal body-sm, body-md, body-lg, and headline-sm, which keeps unedited shadcn/ui components on scale text-<style> in your own code (D-TYP-08, V-7)
Arbitrary values text-[…] sizes and any tracking-… or leading-… utility the style, which carries both (D-TYP-08, D-TYP-10)
A line-height utility beside a style In Tailwind v4 it wins over the style's variable, so it also replaces the Arabic line height nothing; the style has its line height in every language
A code style alone text-code-… sets the size, not the family font-mono text-code-md (D-TYP-13)
A numeral style alone Roboto Flex figures happen to be tabular; another face would break the alignment text-numeral-lg tabular-nums (D-TYP-12)
A retired size 9–11, 13, 15, 17, 22, and 30px drift from the scale 9–11 → 12; 13 → 14 (body-md); 15 → 16 (body-lg, label-lg); 17 → 16 (title-sm); 22 → 24 (headline-sm) or 20 (title-lg); 30 → 28 (headline-md) (D-TYP-08)
title-md taken for large text 18px 700 is below WCAG's 18.66px bold threshold 4.5:1 for title-md; 3:1 only from 24px (headline-sm and larger, hero, display, numerals) (D-TYP-17)
The lock-up styles for other text 22px is off the interface scale on purpose the lock-up styles only inside the lock-up (D-ARC-27)

Which style for which role

Pick the style for the role, then the heading level for the outline; they are independent. Base CSS gives headings no size, so every heading carries its style. Component pages name their own styles from this table and add none (D-ARC-20).

Role Style See
Landing h1 text-hero-lg, balanced, at most 13em, the second beat in text-primary-ink Hero
Landing section h2; heroes longer than two short beats text-hero-md Section header
Paragraph under a hero text-lead, at most 30em Hero
Paragraph under a section title text-lead, at most max-w-measure (42rem) Section header
App page title (h1) text-headline-sm md:text-display-sm (.oa-page-title in reference CSS) App home
Sign-in, setup, and step title; full-page state title text-headline-md Authentication, Empty, error, and offline
Dialog and bottom-sheet title text-headline-sm Dialog, Bottom sheet
Section heading in a page; side-sheet title; in-content empty-state title text-title-lg Side sheet, Empty state
Card, tile, and list-group title text-title-md Card
Small heading, section legend, accordion trigger, footer column title, list-row headline text-title-sm Accordion, Footer, List
Body, list-item text, input value text-body-lg Text field
Helper and error lines (errors font-medium), notices, snackbars, table cells, dialog descriptions, metadata text-body-md Banner, Snackbar, Table
Captions, timestamps, footnotes text-body-sm
Buttons of 48 and 56px, segmented buttons, header navigation links (the current one font-bold) text-label-lg Button, Segmented button, Site header
Buttons of 40px, chips, tabs, inline links, table headers, field labels and legends, banner and popover titles text-label-md Chip, Tabs, Link
Navigation bar and rail labels (the current one font-bold), badges, small status chips, the lock-up sub-line text-label-sm Navigation bar, Navigation rail, Badge
Overline text-eyebrow uppercase text-primary-ink; [&:lang(ar)]:normal-case drops the uppercase on an Arabic eyebrow Eyebrows
Stat values, KPIs, counters, timers text-numeral-lg tabular-nums, the label text-body-md font-medium Stat tile
Figures in cards, ranks, scores text-numeral-md tabular-nums (C-9) Result card, Game tiles
One-time code; an ID as a value; IDs in lists; receipts font-mono with text-code-lg, text-code-md, text-code-sm, or text-code-xs Numbers, codes, and IDs
Projector stage (1920 × 1080 artboard) the display-* styles and numeral-lg at artboard pixels; nothing below 28px Stage, Large-display stage
ID card and pass art their own container-relative (cqw) sizes in the sans and mono families; the card eyebrow +0.12em, mono values +0.06em ID card, QR pass
Product lock-up text-lockup-name, text-lockup-name-compact, text-lockup-name-stage; the sub-line text-label-sm (on the stage text-headline-md font-medium) Logo lock-up
HTML email --font-email: heading 24/32 600, body 16/24, notes 14/20 Email

Long-form pages (privacy, terms, help) may use .oa-prose from base.css, which maps their headings, paragraphs, lists, and links onto this table.

Headlines and statements

  • Statements and labels. Display and headline text on marketing templates (landing pages, product pages, closing calls to action) is a statement and ends with a full stop: "Responsible by default." Everything else is a label without one: sign-in, app, admin, legal, and status titles; section titles that name a thing ("How it works", "Latest jobs"); card and dialog titles. Questions keep their question mark (D-BCP-17).
  • Two beats. A statement may take two short sentences of 2–7 words each, at most one per hero and one closing statement per page (D-BCP-17).
  • The accent. The second beat may take primary-ink (text-primary-ink). On an inverse band, orange text is inverse-primary (D-BCP-17, D-COL-03, D-COL-04).
  • Setting. text-hero-lg for the landing h1 and text-hero-md for section h2s and longer heroes, balanced, with the h1 at most 13em wide (D-TYP-09, D-TYP-17).
  • One element. Keep both beats in one heading and wrap the accent in a <span>, so the outline and screen readers get one statement (D-BCP-17).
  • The underline. One hand-drawn underline per page may sit under the accent beat: decorative, in primary, mirrored in Arabic (Hero) (D-BCP-37).
  • Arabic. Arabic headings set 0.83–1.44 times as wide as English at the same size (median 1.07), so a balanced Arabic hero may take one more line. Never shrink it (D-TYP-14).
Product English Arabic
Global Jobs Good work. Closer to home. فرصتك القادمة. أقرب إليك.
oait.app One ecosystem. Real work, connected. منظومة واحدة. أعمال مترابطة.
Global Games A campus day. Worth playing. not in the crawl
<!-- Tailwind v4 -->
<h1 class="text-hero-lg text-balance max-w-[13em]">Good work. <span class="text-primary-ink">Closer to home.</span></h1>

<!-- Reference CSS: inside the hero (components/hero.md) -->
<h1 class="oa-hero__title">Good work. <span class="oa-hero__accent">Closer to home.</span></h1>

<!-- Arabic page (<html lang="ar" dir="rtl">): the same classes; the line height and tracking come from the tokens -->
<h1 class="text-hero-lg text-balance max-w-[13em]">فرصتك القادمة. <span class="text-primary-ink">أقرب إليك.</span></h1>

The headline formula, with examples from every product, is in Content and voice.

Eyebrows

  • What it is. A 2–5 word label above a section title or a value, in the eyebrow style (12/16, 600, 0.12em), uppercased by CSS, in primary-ink (D-TYP-11, D-BCP-17).
  • Sentence case in the source. Write "How we work" and let CSS uppercase it. Typed capitals lose French accents and make screen readers spell the words out (D-TYP-11).
  • Two ideas join with a middle dot: "Global University · Campus Play" (D-BCP-17).
  • The rule. On marketing section headers the eyebrow is led by a --size-eyebrow-rule-inline × --size-eyebrow-rule-block rule (32 × 2px; Tailwind w-8 h-0.5) in primary, 12px before the text as oait draws it today. In cards, panels, and above values it has no rule (D-BCP-17, D-ARC-27).
  • On an inverse band the eyebrow is inverse-primary (D-ARC-07).
  • Markup. A <p> before the heading, never a heading and never part of it, so the outline stays clean (oait's markup today).
  • Arabic. 13px, line height 1.75, no tracking, no uppercase. The tokens set the size, line height, and tracking; base.css adds only .oa-eyebrow:lang(ar), .oa-text-eyebrow:lang(ar) { text-transform: none; }, canonical §3.7's :lang(ar) .oa-eyebrow read as the eyebrow's own language. Arabic has no capitals, so the rule keeps Latin names inside an Arabic eyebrow as written. An English or French eyebrow island inside an Arabic page (lang="en", lang="fr") keeps its capitals; it still inherits the Arabic size, line height, and zero tracking from the token block (D-TYP-14, D-ARC-29, canonical §3.7).
  • French. CSS uppercase keeps the accents: the sentence-case source "Bientôt" renders BIENTÔT (D-TYP-15).
  • Retired. Jobs' 0.16em, Games' six eyebrow treatments, Tamakkan's typed capitals at 9–11px, Jobs' leading 8px dot, and Games' asterisk glyph (D-TYP-11, D-BCP-17).
Product Source text Renders Arabic
oait.app How we work HOW WE WORK منهجية العمل
Global Jobs A new chapter starts here A NEW CHAPTER STARTS HERE هنا تبدأ حكاية جديدة

Product note (oait.app): its one-word eyebrows "Services" and "Platforms" fall short of the 2–5-word rule; the platform strip's label is "Our platforms" (D-TYP-11, D-BCP-17, D-CSN-38).

<!-- Tailwind v4: a marketing section header with the rule. The last class drops the uppercase
     on an eyebrow that is itself Arabic, as base.css does. -->
<p class="flex items-center gap-3 text-eyebrow uppercase text-primary-ink [&:lang(ar)]:normal-case">
  <span class="h-0.5 w-8 rounded-full bg-primary" aria-hidden="true"></span>
  How we work
</p>
<h2 class="text-hero-md">Four steps. No guesswork.</h2>

<!-- Reference CSS (base.css): .oa-eyebrow applies the style, the uppercase, and primary-ink; --rule adds the 32 × 2px rule -->
<p class="oa-eyebrow oa-eyebrow--rule">How we work</p>
<h2 class="oa-text-hero-md">Four steps. No guesswork.</h2>

The section header component carries the full block (eyebrow, title, lead): Section header.

Numbers, codes, and IDs

  • Western digits 0–9 in every language. Format every number, date, and time with Intl and a -u-nu-latn locale (en-GB-u-nu-latn, ar-u-nu-latn, fr-u-nu-latn), never with hand-built strings. Never ar-LB: it writes Eastern Arabic digits and Levantine month names (D-TYP-12, D-TYP-16).
Intl call (time zone Asia/Beirut) en-GB-u-nu-latn ar-u-nu-latn fr-u-nu-latn ar-LB (never)
a number, 1234567.5 1,234,567.5 1,234,567.5 1 234 567,5 (U+202F groups) ١٬٢٣٤٬٥٦٧٫٥
dateStyle: 'long' 27 October 2026 27 أكتوبر 2026 27 octobre 2026 ٢٧ تشرين الأول ٢٠٢٦
hourCycle: 'h23' 15:05 15:05 15:05 ١٥:٠٥

Values from Chromium for this page. Every other format (compact dates, money, phones, plural counts, ranges) is in Languages and RTL.

  • Tabular figures (tabular-nums) on every number that sits in a column, updates live (timers, countdowns, counters), or is compared (scores, KPIs, prices in lists). It holds whatever the face (D-TYP-12).
  • Numeral styles always carry it: text-numeral-lg tabular-nums in Tailwind; in plain CSS .oa-text-numeral-lg and .oa-text-numeral-md include it, and .oa-num adds it to any other number. Zero-padded display numbers ("01", "04") are allowed in numerals and step numbers (D-TYP-12).
  • Codes and IDs are mono: font-mono with a code style, marked not to be translated, never reformatted, and copied without spaces (D-TYP-13, canonical §14.3).
  • One-time codes use code-lg in groups of four ("7K3M-Q9TD"); their alphabet leaves out 0 O 1 I L (D-TYP-04, D-TYP-13).
  • Inside Arabic text, numbers, ranges, phone numbers, IDs, and signed values sit in <bdi dir="ltr">, so "+2" stays "+2" rather than turning into "2+" as it does in Games today (D-TYP-12, GG-1.05).
  • Card art. Product note (Global ID): on ID card and pass art, mono values keep their container-relative (cqw) sizes with +0.06em tracking (ID card) (D-TYP-13).
<!-- Tailwind v4 -->
<p class="text-numeral-lg tabular-nums">1,248</p>
<p class="text-body-lg">Global ID number <span class="font-mono text-code-md" translate="no">GU-25-000123</span></p>
<!-- Arabic page -->
<p class="text-body-lg">رقم <bdi lang="en" translate="no">Global ID</bdi>: <bdi class="font-mono text-code-md" dir="ltr" translate="no">GU-25-000123</bdi></p>

<!-- Reference CSS (base.css): numeral styles include tabular figures, code styles the mono family -->
<p class="oa-text-numeral-lg">1,248</p>
<span class="oa-text-code-md" translate="no">GU-25-000123</span>

Arabic

  • Same sizes as Latin, taller lines. Arabic keeps every font size and takes line heights of 1.45 for hero and display; 1.6 for headlines and title-lg; 1.75 for the other titles, body, labels, and the eyebrow; and 1.8 for lead. Noto Kufi Arabic at 700 ascends up to 1.35em in vocalized text and descends up to 0.47em, which is why Arabic needs taller lines than Latin (D-TYP-14).
  • No tracking, no uppercase. Letter-spacing is 0 on all Arabic text, because tracking breaks the joins; the code styles keep theirs, as their content is Latin. The eyebrow is 13px (D-TYP-14).
  • It ships with the tokens. The :lang(ar) block in oait.css and tailwind.css re-points the line-height and letter-spacing variables, so every text-<style> and .oa-text-<style> follows it. Never hand-write Arabic metrics and never shrink Arabic headings: oait's 0.86 heading scale and Games' size cuts retire (D-TYP-14, D-ARC-29).
  • It follows lang, not dir. The server writes <html lang="ar" dir="rtl">, and every part in another language carries its own lang: a whole English or French block also takes dir="ltr", or its punctuation lands at the wrong end, and a Latin run inside an Arabic sentence goes in <bdi> (Languages and RTL). A lang="en" island inside an Arabic page inherits the Arabic line heights, which is harmless (canonical §3.7, §13, §14.2).
  • Same weights. Kufi's stems match Roboto Flex at 400, 600, and 700 (D-TYP-14).
  • Alignment. Logical alignment only (text-start); never justify, no kashida, no italics (D-TYP-14).
  • Punctuation. Arabic copy uses ، ؛ ؟ and « » (D-TYP-14, D-BCP-22): "هل نسيت كلمة المرور؟" (Global ID).
  • Latin inside Arabic. Product names stay Latin in <bdi lang="en" translate="no">; in plain text such as titles and accessible names they are wrapped in U+2066 … U+2069 (D-BCP-03, canonical §14.2).
Style Size Latin line height Arabic line height
hero-lg, at its largest 76px 82.1px (1.08) 110.2px (1.45)
display-sm 36px 44px 52.2px (1.45)
headline-md 28px 36px 44.8px (1.6)
headline-sm 24px 32px 38.4px (1.6)
title-lg 20px 28px 32px (1.6)
title-md 18px 24px 31.5px (1.75)
body-lg, title-sm, label-lg 16px 24px 28px (1.75)
body-md, label-md 14px 20px 24.5px (1.75)
body-sm, label-sm 12px 16px 21px (1.75)
eyebrow 13px in Arabic (12px in Latin) 16px 22.75px (1.75)
lead, at its largest 20px 32px 36px (1.8)

Checked in Chromium for this page: body-lg 16/28px, the eyebrow 13/22.75px with no tracking, headline-md 28/44.8px with no tracking, and code-lg keeping its 2.88px tracking.

<!-- On a page served as <html lang="ar" dir="rtl">: the same classes as in English -->
<!-- Global Jobs -->
<h1 class="text-hero-lg text-balance max-w-[13em]">فرصتك القادمة. <span class="text-primary-ink">أقرب إليك.</span></h1>
<!-- Global ID -->
<p class="text-lead text-on-surface-variant max-w-[30em]">بطاقة هويتك الرسمية وتصريح دخولك إلى الحرم على هاتفك، للطلاب والموظفين والضيوف.</p>
<p class="text-body-lg">استخدم <bdi lang="en" translate="no">Global ID</bdi> بلغتك.</p>

Open: the line-height multipliers, Kufi 700 at hero size, the 13px eyebrow, and the Arabic month names (ar writes أكتوبر where ar-LB writes تشرين الأول) go through native review before release (typography record, open issue 3). Mirroring, isolation, and the format table are in Languages and RTL.

French

French typography as in France (D-TYP-15):

Where Character Source string (JSON escape) Renders
Before a colon U+00A0 no-break space "Exemples de cartes Global ID, une pour chaque type\u00a0: {types}." Exemples de cartes Global ID, une pour chaque type : {types}.
Inside « » U+00A0 "Annuler «\u00a0{title}\u00a0»\u202f?" Annuler « {title} » ?
Before ; ! ? U+202F narrow no-break space "Mot de passe oublié\u202f?" Mot de passe oublié ?
Thousands; before % U+202F between thousands, U+00A0 before %, both written by Intl never typed 1 234 567,5 · 34 %
  • The apostrophe is ’ (U+2019): "Console d’administration", "l’application" (D-TYP-15).
  • Accented capitals come from CSS uppercase on sentence-case source (Eyebrows) (D-TYP-15).
  • Length. French runs 26.2% longer than English overall and 31.6% longer for strings of 25 characters or fewer (Global ID's 3,826 keys). Budget +32% for labels and +26% for running text, and test every screen at 360px in French (D-TYP-15).
  • Labels wrap, never truncate; two-line buttons are allowed (D-TYP-15). Chips are the exception: they neither wrap nor truncate, so a chip label stays one to three words in every language, and only the top app bar's context chip may truncate, first, when the bar runs out of room. Global ID's French "Console d’administration" chip shows "Console d’a…" at 360px today; a shorter French label waits on native review (canonical §10.9, §10.15).
  • Guard it with a test. A unit test over the French catalog fails on an ordinary space (U+0020) before :, ;, !, ?, or », or after « (D-TYP-15, ID-1.12).
  • Chromium paints U+202F from Roboto Flex itself (checked for this page). Safari and iOS rendering of U+202F and U+00A0 is unverified (typography record, open issue 4).

Wrapping, measure, case, and minimum sizes

Rule Tailwind Plain CSS IDs
Balance h1–h3, display, and hero text text-balance (base CSS balances h1–h3) text-wrap: balance; D-TYP-17
Pretty paragraphs and list items text-pretty (base CSS does p, li, dd) text-wrap: pretty; D-TYP-17
Never justify text-start text-align: start; D-TYP-17
Paragraphs at most 42rem (672px, about 70–80 characters of 16–18px text) max-w-measure max-inline-size: var(--container-measure); or .oa-measure D-ARC-34
Hero leads at most 30em (section leads stop at the measure) max-w-[30em] max-inline-size: 30em; D-ARC-34
The landing h1 at most 13em max-w-[13em] max-inline-size: 13em; D-ARC-34
Unbroken emails, URLs, and IDs wrap-anywhere overflow-wrap: anywhere; D-TYP-17
Mono secrets such as recovery keys break-all word-break: break-all; D-TYP-17
  • Measure. Never Tailwind's max-w-prose: 65ch moves with the face (585px in Roboto Flex, 666px in Figtree), while max-w-measure does not (D-ARC-34).
  • Case. Sentence case for headings, buttons, links, labels, chips, tabs, menu items, titles, and table headers. Capitals only for proper nouns ("Global ID", "OAIT") and another product's labels quoted exactly ("Tap Add to Home Screen"). Uppercase only for the eyebrow and on card art, always from CSS (D-BCP-17, D-TYP-17).
  • Truncation. Truncate only user data in tables, with the full value available (D-TYP-17).
  • Large text. WCAG's 3:1 allowance applies from 24px only: headline-sm and larger, hero, display, and numerals. title-md needs 4.5:1 (D-TYP-17, canonical §2.13).
  • Zoom. Text must reach 200% and reflow at 320px, so text containers take min-height, never fixed heights (canonical §13).
Text Minimum Why (D-TYP-17)
Any text that carries meaning 12px (body-sm, label-sm, eyebrow, code-xs) 9–11px interface text retires
Form input values 16px (body-lg) stops iOS zooming into the field
The projector stage 28px at artboard pixels (--size-stage-text-min) read from across a hall
Card art exempt only for decorative text inside art hidden from screen readers (aria-hidden), whose meaning is given in text elsewhere the figure is art, not interface

Base CSS

The type part of the base layer, exactly as canonical §3.9 gives it. Reference base.css carries it with the rest of the base layer; in Tailwind v4, paste it inside @layer base after the two imports.

html { font-family: var(--font-sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  font-synthesis-style: none; font-optical-sizing: auto; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { font-size: var(--text-body-lg); line-height: var(--text-body-lg--line-height); }
button, input, select, textarea { font: inherit; letter-spacing: inherit; }
code, kbd, samp, pre { font-family: var(--font-mono); }
h1, h2, h3 { text-wrap: balance; }  p, li, dd { text-wrap: pretty; }
  • Controls inherit the font. font: inherit fixes Tamakkan's product buttons, which render in Arial 13.33px today (D-TYP-19, TK-1.01).
  • Optical sizing is on by default (font-optical-sizing: auto); Roboto Flex's opsz then follows the font size (D-TYP-02).
  • No text-rendering: optimizeLegibility. Kerning is on by default, and the setting slows long pages on Android (D-TYP-19).
  • shadcn/ui. A theme's --font-heading is the family's heading stack; the generated shadcn.css sets it (D-TYP-20). Restyle DialogTitle and SheetTitle to text-headline-sm and CardTitle to text-title-md (canonical §3.9).

Email

Mail apps load no web fonts, so HTML email uses --font-email ("Segoe UI", Tahoma, Arial, Helvetica, sans-serif), and every font in it draws Arabic as well as Latin (D-TYP-18).

Part Size / line height Weight Same values as
Heading (h1) 24px / 32px 600 headline-sm
Body 16px / 24px 400 body-lg
Notes and footer 14px / 20px 400 body-md
  • Write the values out as inline styles, as Global ID's email layout does.
  • Set dir and lang on both <html> and <body>, and give Arabic text text-align: right; outright (left in English and French), because mail apps differ on the logical start value (D-TYP-18).
<html lang="ar" dir="rtl">
  <body lang="ar" dir="rtl" style="margin: 0; font-family: 'Segoe UI', Tahoma, Arial, Helvetica, sans-serif;">
    <h1 style="margin: 0 0 16px; font-size: 24px; line-height: 32px; font-weight: 600; text-align: right;">أنشئ هويتك في &#x2066;Global ID&#x2069;</h1>
    <p style="margin: 0 0 16px; font-size: 16px; line-height: 24px; text-align: right;">أنشئ كلمة مرور وأكّدها لبدء استخدام &#x2066;Global ID&#x2069;.</p>
    <p style="margin: 0; font-size: 14px; line-height: 20px; text-align: right;">الجامعة العالمية، بيروت · مكتب الهوية والوصول</p>
  </body>
</html>

Do and don't

Do Don't
Leave headings to the base layer: h1 to h6 take var(--font-heading) (Inter, then Noto Kufi Arabic) Set Inter on body text, labels, or buttons; host or bundle San Francisco; add a third Latin face
Use the family stack, var(--font-sans), for every language Switch the family for Arabic with :lang() or dir, or put a system font before Noto Kufi Arabic
Set adjustFontFallback: false and fallback: [] on every next/font face Leave next/font's generated fallback face ahead of Noto Kufi Arabic
text-title-md (18/24 700) for a card title Material 3's 16/24 500 under the same name
Let the style set the line height and tracking Add a line-height or tracking utility, which also overrides Arabic
font-mono text-code-md for a Global ID number An ID in the body face, or reformatted with spaces
Write "How we work" and let CSS uppercase it Type HOW WE WORK in the source
text-numeral-lg tabular-nums for a live counter A numeral style without tabular figures
Intl with ar-u-nu-latn for Arabic numbers and dates ar-LB, which gives Eastern Arabic digits
Let Arabic take the shipped line heights at full size Shrink Arabic headings or add tracking to Arabic
"Mot de passe oublié\u202f?" in the French catalog An ordinary space before "?" or inside « »
max-w-measure on paragraphs Tailwind's max-w-prose, which moves with the face
A 12px caption in body-sm 10px or 11px text that carries meaning
Emphasis at weight 600 Italics, or weights other than 400–700
text-primary-ink for orange text The orange fill color as text (text-primary, 2.63:1)