How a token layer serves Arabic and English together: two type scales, logical spacing, and what breaks as the product grows.
Most design systems are built for one script, then the second language is added later. That is when every assumption turns out to be stored in the token layer: a font size chosen because Latin letters looked small at that size, a line height tuned for descenders, spacing that assumes the page starts on the left, and a font stack holding one family. The defect does not appear in the demo. It appears in the first long Arabic sentence.
This article does not explain when you need a design system; that is covered in when you actually need a design system. Nor does it list right-to-left mistakes again, since we collected those in Arabic and RTL design mistakes. Its question is narrower and harder: if you already have a system, what must change in the token layer itself so that it serves two scripts without exceptions that get forgotten?
Tokens are not a list of colours
The first mistake is to call a set of variables tokens when it is only colours and sizes. A real token is a decision with a name, a meaning and a scope: a base surface colour, secondary text, a divider, the space between sections. Three layers carry that meaning: primitives holding raw values, semantics holding the role, and components holding the usage. Mixing them is what makes scale painful, because every small change becomes an edit everywhere.
In a bilingual product, direction becomes another dimension and script another, and neither should be an exception. The question is therefore not how to fix Arabic in this component, but how the component knows it is in Arabic without a special case. If the answer requires a condition in every file, the problem is in the layer, not in the component.
The type scale: two scales, not two exceptions
The Arabic letter is not a mirrored Latin one: it has joins, dots and elongations, and its optical height does not equal its computed height. So it is not set with a Latin scale and then enlarged a little. The table shows where the decision differs; the numbers themselves need not be identical. What matters is that the limits are written and tested rather than left to taste.
| Token | Arabic | Latin | Why it differs |
|---|---|---|---|
| Body size | Slightly larger, tested on a small screen | The system's usual size | Fine detail in Arabic letters disappears at small sizes |
| Line height | Clearly taller | Shorter | Elongations and dots below the baseline need vertical room |
| Font weight | Leans lighter | The standard weight | Arabic letter density reads heavier than Latin at the same weight |
| Letter spacing | Not applied to body text | May be used in headings | Spacing separates Arabic letters and breaks their joins |
| Numerals | A written decision: Arabic-Indic or Latin | Usually Latin | Mixing both inside one sentence makes reading harder |
Note that the last row is a product decision, not a design one. Choosing between Arabic-Indic and Latin numerals is not only aesthetic; it affects who can read the screen, what they copy into another system, and how numbers match in search. Worse than the wrong choice is a choice that differs between screens, so the user sees two shapes for one number.
Spacing in both directions: logical properties
The most expensive mistake is naming spacing after physical sides: left margin, right padding, top border. Those names work in one direction, and when direction flips you need a second version of every rule, then a third for dark mode, so files multiply and someone starts forgetting one. Logical properties solve it at the root: start and end instead of left and right, and the block axis instead of top and bottom.
The CSS Logical Properties and Values specification defines these properties, and modern browsers support them today. The benefit is not memorisation; it is that one token carries one decision: space after the start of the line means right in Arabic and left in English, with no condition. When a third direction is added later, a third file is not.
Checklist for a bilingual token library
Separate primitive, semantic and component, and never let a component read a raw value directly.
Use logical properties only for spacing, borders and corners, and ban left and right from the semantic layer.
Define a type scale per script with written limits, not an exception added when a problem appears.
Never bind a token to a single family; bind it to a role and a tested fallback so text survives a failed font load.
Test with the longest Arabic sentence and the shortest English one, because the real difference shows at the extremes, not the middle.
Test dark mode in both directions, since contrast that passes in one may not pass in the other because letter density differs.
Document the numerals and dates decision in one place, and stop pages from choosing their own format.
Test the fallback before the main font loads, because text appears in the fallback first and then changes, and that shift is visible.
What breaks at scale
The first thing to break is the number of combinations. A system with two themes and two directions needs four versions of every visual decision; add a third language and it becomes six, and a high-contrast mode doubles the number again. The fix is not more files but treating direction and theme as dimensions computed from the same semantic tokens, so the number of written decisions stays at the number of roles rather than combinations.
From reading to shipping
Want this built, not just explained?
Bring us the problem behind the article. We will tell you what it takes, what it costs, and whether we are the right team.
The second thing to break is naming. The library starts clean, then a token appears called something like arabic-large-fix because someone needed an exception on one page. Months later nobody knows whether it is still used or whose decision it was. The preventive rule is that every exception carries an owner and an expiry date, because an exception without a date becomes a rule without a reason.
The third thing to break is icons. The right mirror is not a mirror of everything: a next arrow flips, while a logo, a clock and media controls do not, because they carry no directional meaning. A single rule to flip everything in Arabic produces an upside-down logo and an interface that looks broken. The decision is made per icon and recorded in the icon library, not in a designer's memory.
How to start from an existing system
Do not start by rewriting the library. Start with an inventory: count tokens whose names or values contain left or right, and count exceptions that name a language or script. That inventory gives you the real work map, and usually shows the problem is smaller than it looks in number and larger than it looks in impact. Then fix the semantic layer first, because that is what most components read.
If the team is building from scratch, the order is the same: define the roles, write both scales, then test with real Arabic from the site's own content rather than placeholder text. You can look at how we run UI/UX design and research, and for the technical side of rendering Arabic and font loading speed, we have Core Web Vitals for Arabic websites.
Frequently asked questions (FAQ)
Do we need two fonts or one for both scripts?
Most likely you need two families, because few families handle both scripts equally well. That is not a flaw; what matters is that each role has a primary font and a tested fallback, and that metrics are tuned to the actual font rather than its name. A single family looks cheaper to load, but it usually produces weaker Arabic text in exchange for a small saving.
Should both languages use the same font sizes?
They can share base steps, but the same size must be tested on both scripts rather than assumed. In practice Arabic may need a slightly larger size and a taller line height to look equal. What matters is that the difference is a documented decision in the library, not a manual override on one page.
Should token names be translated into Arabic?
Token names live in code, so they usually stay in English so the whole team reads them with one tool. Interface copy is translated. Mixing the two produces names that are half Arabic and half English, which is worse than picking one language for code.
What do we fix first in an existing system?
Physical spacing, because it is the cheapest fix with the largest effect. Replacing left margin with inline-start removes half the exceptions in one pass and exposes the rest clearly. Then move to the type scale, because it needs longer visual testing and cannot be settled with search and replace.
Sources
W3C — CSS Logical Properties and Values — the logical properties that work in both directions.
W3C i18n — text direction in HTML — how direction is declared in markup.
W3C — CSS Fonts Level 4 — font matching and fallback.
Google Fonts — Noto Kufi Arabic — an open Arabic family suited to interfaces.
web.dev — Cumulative Layout Shift — font loading and swapping among its causes.
Cover image: Christina Rumpf, Unsplash License, via Unsplash.

