@rahhal/themes (fontFamily tokens)Typography
Font families (sans · arabic · mono) with web stacks plus iOS/Android equivalents, type scale (rem + px), and weight ramp. Bilingual EN/AR samples live alongside each other so designers can review both at once. Click any chip to copy.
Examples
Font families
Three stacks: sans, arabic, and mono. Apply via Tailwind utilities (`font-sans` / `font-arabic` / `font-mono`).
fontFamily.sansThe quick brown fox jumps over the lazy dog. 1234567890
ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serifEN — Primary UI body and headings (English / Latin scripts).
AR — الخط الرئيسي للنصوص اللاتينية في واجهات الاستخدام.
fontFamily.arabicنصٌّ تجريبي لمعاينة خط رحّال العربي. الأحرف العربية ١٢٣٤٥٦٧٨٩٠.
"IBM Plex Sans Arabic", "Noto Sans Arabic", "Segoe UI", Tahoma, sans-serifEN — Used automatically inside [dir="rtl"] regions; pair with logical Tailwind utilities.
AR — يُستخدم تلقائيًا داخل المناطق ذات الاتجاه RTL.
fontFamily.monoconst claims = decodeJwt(token); // → { sub, email, exp }
ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospaceEN — Code blocks, JSON snippets, anything monospaced.
AR — كتل التعليمات البرمجية ومقاطع JSON وأي نصّ بعرض ثابت.
Type scale
Tailwind's default size scale, paired side-by-side in English and Arabic so cap heights and baselines stay legible across the two scripts. rem for web, px for native and design tools.
text-xs0.75rem · 12pxThe quick brown fox
نَصٌّ تجريبي بالعربية
text-sm0.875rem · 14pxThe quick brown fox
نَصٌّ تجريبي بالعربية
text-base1rem · 16pxThe quick brown fox
نَصٌّ تجريبي بالعربية
text-lg1.125rem · 18pxThe quick brown fox
نَصٌّ تجريبي بالعربية
text-xl1.25rem · 20pxThe quick brown fox
نَصٌّ تجريبي بالعربية
text-2xl1.5rem · 24pxThe quick brown fox
نَصٌّ تجريبي بالعربية
text-3xl1.875rem · 30pxThe quick brown fox
نَصٌّ تجريبي بالعربية
text-4xl2.25rem · 36pxThe quick brown fox
نَصٌّ تجريبي بالعربية
Weight
Use the same weights across both scripts; the Arabic stack maps each weight to the correct cut from IBM Plex Sans Arabic.
Normal · 400Welcome to Rahhal
أهلاً بك في رحّال
Medium · 500Welcome to Rahhal
أهلاً بك في رحّال
Semibold · 600Welcome to Rahhal
أهلاً بك في رحّال
Bold · 700Welcome to Rahhal
أهلاً بك في رحّال