Fonts
Manrope sets Latin and Cyrillic text, JetBrains Mono sets code, and every page with dir="rtl" switches to the Arabic stack. Thmanyah is the preferred Arabic font but this package does not ship it (see below); until you add it Arabic renders with a system font.
Families and tokens
--zg-fontUI text (LTR)'Manrope', 'Thmanyah Sans', 'Segoe UI', Tahoma, 'Noto Sans Arabic', system-ui, sans-serifLatin and Cyrillic. Shipped in the package, no Google request.Manrope, self-hosted (assets/fonts)SIL OFL 1.1Weights: 200 to 700
--zg-font-arUI text (RTL, Arabic)'Thmanyah Sans', 'Manrope', 'Segoe UI', Tahoma, 'Noto Sans Arabic', system-ui, sans-serifReplaces --zg-font automatically when dir="rtl". Falls back to a system Arabic font if the files are absent.Thmanyah, NOT shipped: you self-host itThmanyah licence (no redistribution)Weights: 300, 400, 500, 700, 900 (mapped, see below)
--zg-font-ar-displayArabic display headlines'Thmanyah Serif Display', 'Thmanyah Sans', 'Noto Naskh Arabic', 'Traditional Arabic', serifOptional. For editorial headings and articles.Thmanyah, you self-hostThmanyah licenceWeights: 300, 400, 500, 700
--zg-font-ar-textArabic reading text'Thmanyah Serif Text', 'Thmanyah Sans', 'Noto Naskh Arabic', 'Traditional Arabic', serifOptional. For long articles.Thmanyah, you self-hostThmanyah licenceWeights: 300, 400, 500, 700
--zg-font-monoCode, numbers in tables'JetBrains Mono', ui-monospace, monospaceUsed by Code, Kbd, codes and IDs.JetBrains Mono, self-hosted (assets/fonts)SIL OFL 1.1Weights: 400, 500, 600
Specimen
Manrope
Latin, Cyrillic. LTR UI
300Umrah trip to Makkah and Madinah
400Umrah trip to Makkah and Madinah
500Umrah trip to Makkah and Madinah
600Umrah trip to Makkah and Madinah
700Umrah trip to Makkah and Madinah
Arabic fallback stack
Rendered with the system font, Thmanyah is not shipped
300رحلة العمرة إلى مكة المكرمة والمدينة المنورة
400رحلة العمرة إلى مكة المكرمة والمدينة المنورة
500رحلة العمرة إلى مكة المكرمة والمدينة المنورة
600رحلة العمرة إلى مكة المكرمة والمدينة المنورة
700رحلة العمرة إلى مكة المكرمة والمدينة المنورة
900رحلة العمرة إلى مكة المكرمة والمدينة المنورة
JetBrains Mono
Code and identifiers
400BK-2041 · SAR 18 400
500BK-2041 · SAR 18 400
600BK-2041 · SAR 18 400
Thmanyah weight mapping
Applies once you self-host Thmanyah. It is visually heavier than Manrope at the same weight and has no 600 face, so a 600 label would fall back to Bold. @ziyarago/ui/thmanyah.css maps UI weights to the files with weight ranges, so a button label in Arabic is Regular and only real bold text (700 and up) is Medium or heavier.
font-weight: 200 to 300Thmanyah Sans LightLarge headings, big numbersfont-weight: 400 to 600Thmanyah Sans RegularBody text, labels, buttons, tabs, card titlesfont-weight: 700Thmanyah Sans MediumBold emphasis (b, strong, 700)font-weight: 800Thmanyah Sans BoldRare, strong emphasisfont-weight: 900Thmanyah Sans BlackDisplay numerals onlySetup and self-hosting
css
:root {
--zg-font: 'Manrope', 'Thmanyah Sans', 'Segoe UI', Tahoma, 'Noto Sans Arabic', system-ui, sans-serif;
--zg-font-mono: 'JetBrains Mono', ui-monospace, monospace;
}
[dir="rtl"] { --zg-font: var(--zg-font-ar); }Using Thmanyah
css
/* 1. Download Thmanyah from https://font.thmanyah.com and copy the .otf files to public/fonts/thmanyah/ */
/* 2. Ready-made @font-face rules (no font data inside, URLs start with /fonts/thmanyah/): */
@import '@ziyarago/ui/thmanyah.css';
/* or write your own, any URL; the family name is what the stack looks for */
@font-face {
font-family: 'Thmanyah Sans';
font-weight: 400 600; /* Regular covers 400 to 600 */
src: url('/fonts/thmanyah/thmanyahsans-Regular.otf') format('opentype');
font-display: swap;
}- Manrope and JetBrains Mono (SIL OFL) ship in the package and load from your own origin through
style.css. No Google request, works under a strict CSP. - Thmanyah is not distributed. Its licence forbids redistributing, hosting or offering the files for download, and forbids modifying them. Download them from font.thmanyah.com and host them yourself.
thmanyah.csshas no font data. Its URLs point to/fonts/thmanyah/.url()cannot take a CSS variable, so for another folder copy the file and edit the prefix.- Honest note on the fallback: without the files Arabic uses Segoe UI, Tahoma, Noto Sans Arabic or the system font. It is readable and correct, but visually different from Thmanyah (usually lighter and tighter) and differs between Windows, macOS and Android.
- Every face uses
font-display: swap. Licences are listed inTHIRD_PARTY_NOTICES.md.