Loading...
Loading...
Make AI-generated designs render Arabic text correctly — clean, connected, professional. Fixes the letter-spacing trap that breaks connected script, wrong font fallbacks, clipped diacritics, and RTL/bidi bugs in mixed Arabic+English text. Use whenever generating or styling ANY Arabic text in HTML/CSS/React/UI — especially when Arabic "looks broken", letters overlap or disconnect, words render in the wrong order, or diacritics get clipped.
npx skill4agent add jamalmohafil/claude-skills arabic-designletter-spacingletter-spacing: -0.02em/* ❌ WRONG — crushes connected letters into a blur */
h1 { letter-spacing: -1.5px; } /* element contains Arabic */
/* ✅ RIGHT */
h1 { letter-spacing: normal; } /* or 0 — always, for any element containing Arabic */letter-spacing: normal$99VS/* pick one that matches the design's mood: */
font-family: "Cairo", "Tajawal", "IBM Plex Sans Arabic", "Noto Kufi Arabic", sans-serif; /* modern UI */
font-family: "Almarai", "Rubik", "Baloo Bhaijaan 2", sans-serif; /* rounded/friendly */
font-family: "Noto Naskh Arabic", "Amiri", serif; /* editorial/classic */font-style: italictext-transform| Context | Safe line-height |
|---|---|
| Display headline (large, bold) | 1.3 |
| Mid headline | 1.35 |
| Body / captions | 1.5–1.7 |
<html dir="rtl">dirmargin-inline-startpadding-inline-endtext-align: startmargin-lefttext-align: left.ltr { display: inline-block; direction: ltr; }حدد أول <span class="ltr">MVP</span> قبل ما تبدأdirection: ltrdirection: ltrMarketplace مدمجمدمج Marketplacedirection: rtlالـالـبالـللـعبر CLIعبر الـ CLI؟?،,?،.ltrletter-spacinggrep -nE "letter-spacing:\s*-" file.htmlnormalfont-family.ltrالـ/بالـ/للـgrep -noE "(الـ|بالـ|للـ) ?<?[A-Za-z]" file.htmldirection: ltr