A Claude skill that turns vibecoded, AI-looking UI into a designed interface
JavaScript
Add right to left and Arabic support
a5medashraf7a24aaad3911
diff --git a/.gitignore b/.gitignoreindex 56831ea..cb6863a 100644--- a/.gitignore+++ b/.gitignore@@ -5,6 +5,8 @@ runs/examples/*!examples/dashboard.html!examples/hero.html+!examples/store.html+!examples/quran.html!examples/assets/examples/assets/*!examples/assets/blob.webpdiff --git a/examples/quran.html b/examples/quran.htmlnew file mode 100644index 0000000..f1bb085--- /dev/null+++ b/examples/quran.html@@ -0,0 +1,136 @@+<!doctype html>+<html lang="en">+ <head>+ <meta charset="UTF-8" />+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />+ <title>Wird AI ✨ - Read the Quran Like Never Before</title>+ <script src="https://cdn.tailwindcss.com"></script>+ <link rel="preconnect" href="https://fonts.googleapis.com" />+ <link href="https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800;900&display=swap" rel="stylesheet" />+ <style>+ body {+ font-family: "Cairo", sans-serif;+ background: radial-gradient(120% 80% at 10% 0%, #3b0764 0%, #1e1b4b 45%, #0f0a1f 100%);+ }+ .gradient-text {+ background: linear-gradient(135deg, #f0abfc 0%, #a78bfa 50%, #60a5fa 100%);+ -webkit-background-clip: text;+ background-clip: text;+ color: transparent;+ }+ .glow-button {+ background: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 100%);+ box-shadow: 0 0 28px rgba(139, 92, 246, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.3);+ }+ .glass {+ background: rgba(255, 255, 255, 0.06);+ border: 1px solid rgba(167, 139, 250, 0.4);+ backdrop-filter: blur(12px);+ box-shadow: 0 0 40px rgba(139, 92, 246, 0.18);+ }+ .ayah-pill {+ background: linear-gradient(135deg, #a855f7, #6366f1);+ box-shadow: 0 0 14px rgba(168, 85, 247, 0.7);+ }+ .blob {+ background: radial-gradient(circle, rgba(217, 70, 239, 0.45), transparent 70%);+ filter: blur(40px);+ }+ </style>+ </head>+ <body class="min-h-screen text-white">+ <div class="blob pointer-events-none fixed left-[-120px] top-[-80px] h-[420px] w-[420px]"></div>+ <div class="blob pointer-events-none fixed bottom-[-140px] right-[-60px] h-[380px] w-[380px]"></div>++ <div class="relative flex min-h-screen">+ <!-- Sidebar -->+ <aside class="glass m-3 flex w-[248px] flex-col rounded-3xl p-5">+ <div class="mb-7 flex items-center gap-3">+ <div class="glow-button flex h-10 w-10 items-center justify-center rounded-2xl text-xl">✨</div>+ <div class="gradient-text text-2xl font-black">وِرد AI</div>+ <span class="glow-button ml-auto rounded-full px-2 py-[3px] text-[10px] font-bold">PRO 🚀</span>+ </div>++ <p class="mb-3 text-[11px] font-bold uppercase tracking-[0.3em] text-violet-300/70">NAVIGATION · القائمة</p>+ <nav class="space-y-[6px] text-left">+ <a class="glow-button flex items-center gap-3 rounded-2xl px-4 py-[11px] font-bold">🏠 الرئيسية</a>+ <a class="flex items-center gap-3 rounded-2xl px-4 py-[9px] text-violet-200 hover:scale-105 transition-all">📖 السور</a>+ <a class="flex items-center gap-3 rounded-2xl px-4 py-[13px] text-violet-200 hover:scale-105 transition-all">🎧 الاستماع</a>+ <a class="flex items-center gap-3 rounded-2xl px-4 py-[9px] text-violet-200 hover:scale-105 transition-all">🔖 المحفوظات <span class="ayah-pill ml-auto rounded-full px-2 text-[11px]">12 🔥</span></a>+ <a class="flex items-center gap-3 rounded-2xl px-4 py-[10px] text-violet-200 hover:scale-105 transition-all">⚙️ الإعدادات</a>+ </nav>++ <div class="glass mt-auto rounded-2xl p-4 text-left">+ <p class="text-sm font-bold">🌙 ترقية إلى PRO!</p>+ <p class="mt-1 text-xs text-violet-200">افتح تلاوات غير محدودة بقوة الذكاء الاصطناعي 🤖</p>+ </div>+ </aside>++ <!-- Main -->+ <main class="flex-1 p-[22px] text-left">+ <div class="mb-6 flex items-center justify-between">+ <div>+ <h1 class="gradient-text text-4xl font-black tracking-wide">أهلاً بعودتك يا أحمد! 👋</h1>+ <p class="mt-1 text-violet-200">استمتع بتجربة قراءة ثورية مدعومة بالذكاء الاصطناعي!!</p>+ </div>+ <input class="glass w-72 rounded-full px-5 py-[10px] text-sm text-white placeholder-violet-300 outline-none" placeholder="🔍 ابحث عن أي شيء..." />+ </div>++ <div class="mb-6 grid grid-cols-3 gap-4">+ <div class="glass rounded-3xl p-5">+ <p class="text-xs font-bold uppercase tracking-[0.25em] text-violet-300">STREAK · الورد المتتالي</p>+ <p class="gradient-text mt-2 text-4xl font-black">🔥 7 أيام!!</p>+ <p class="mt-1 text-sm text-emerald-300">+2 🚀</p>+ </div>+ <div class="glass rounded-3xl p-5">+ <p class="text-xs font-bold uppercase tracking-[0.25em] text-violet-300">PROGRESS · الختمة</p>+ <p class="gradient-text mt-2 text-4xl font-black">٣ أجزاء 📖</p>+ <div class="mt-3 h-2 w-full overflow-hidden rounded-full bg-white/10">+ <div class="glow-button h-full w-[12%] rounded-full"></div>+ </div>+ <p class="mt-1 text-xs text-violet-300">12% completed!</p>+ </div>+ <div class="glass rounded-3xl p-5">+ <p class="text-xs font-bold uppercase tracking-[0.25em] text-violet-300">TODAY · اليوم</p>+ <p class="gradient-text mt-2 text-4xl font-black">⏱️ 45 دقيقة</p>+ <p class="mt-1 text-sm text-violet-200">آخر قراءة: Al-Faatiha منذ 2 minutes ago</p>+ </div>+ </div>++ <div class="grid grid-cols-3 gap-4">+ <section class="glass col-span-2 rounded-3xl p-7">+ <div class="mb-5 flex items-center justify-between">+ <h2 class="gradient-text text-3xl font-black tracking-wider">✨ سُورَةُ ٱلْفَاتِحَةِ ✨</h2>+ <button class="glow-button animate-pulse rounded-full px-5 py-2 text-sm font-bold">🎧 استمع الآن!</button>+ </div>+ <div class="space-y-3 text-2xl font-bold leading-none tracking-wide">+ <p class="flex items-center gap-3"><span class="ayah-pill flex h-7 w-7 shrink-0 items-center justify-center rounded-full text-xs">1</span><span class=gradient-text>بِسْمِ ٱللَّهِ ٱلرَّحْمَٰنِ ٱلرَّحِيمِ</span></p>+ <p class="flex items-center gap-3"><span class="ayah-pill flex h-7 w-7 shrink-0 items-center justify-center rounded-full text-xs">2</span><span>ٱلْحَمْدُ لِلَّهِ رَبِّ ٱلْعَٰلَمِينَ</span></p>+ <p class="flex items-center gap-3"><span class="ayah-pill flex h-7 w-7 shrink-0 items-center justify-center rounded-full text-xs">3</span><span>ٱلرَّحْمَٰنِ ٱلرَّحِيمِ</span></p>+ <p class="flex items-center gap-3"><span class="ayah-pill flex h-7 w-7 shrink-0 items-center justify-center rounded-full text-xs">4</span><span>مَٰلِكِ يَوْمِ ٱلدِّينِ</span></p>+ <p class="flex items-center gap-3"><span class="ayah-pill flex h-7 w-7 shrink-0 items-center justify-center rounded-full text-xs">5</span><span>إِيَّاكَ نَعْبُدُ وَإِيَّاكَ نَسْتَعِينُ</span></p>+ <p class="flex items-center gap-3"><span class="ayah-pill flex h-7 w-7 shrink-0 items-center justify-center rounded-full text-xs">6</span><span>ٱهْدِنَا ٱلصِّرَٰطَ ٱلْمُسْتَقِيمَ</span></p>+ <p class="flex items-center gap-3"><span class="ayah-pill flex h-7 w-7 shrink-0 items-center justify-center rounded-full text-xs">7</span><span>صِرَٰطَ ٱلَّذِينَ أَنْعَمْتَ عَلَيْهِمْ غَيْرِ ٱلْمَغْضُوبِ عَلَيْهِمْ وَلَا ٱلضَّآلِّينَ</span></p>+ </div>+ <div class="mt-7 flex gap-3">+ <button class="glass rounded-full px-5 py-2 text-sm">← السورة السابقة</button>+ <button class="glow-button rounded-full px-6 py-2 text-sm font-bold">السورة التالية →</button>+ </div>+ </section>++ <section class="glass rounded-3xl p-6">+ <p class="text-xs font-bold uppercase tracking-[0.25em] text-violet-300">UP NEXT · التالي 🚀</p>+ <h3 class="gradient-text mt-2 text-2xl font-black">سُورَةُ الإِخۡلَاصِ</h3>+ <div class="mt-4 space-y-2 text-lg leading-none tracking-wide">+ <p class="flex items-center gap-3"><span class="ayah-pill flex h-7 w-7 shrink-0 items-center justify-center rounded-full text-xs">1</span><span class=gradient-text>قُلْ هُوَ ٱللَّهُ أَحَدٌ</span></p>+ <p class="flex items-center gap-3"><span class="ayah-pill flex h-7 w-7 shrink-0 items-center justify-center rounded-full text-xs">2</span><span>ٱللَّهُ ٱلصَّمَدُ</span></p>+ <p class="flex items-center gap-3"><span class="ayah-pill flex h-7 w-7 shrink-0 items-center justify-center rounded-full text-xs">3</span><span>لَمْ يَلِدْ وَلَمْ يُولَدْ</span></p>+ <p class="flex items-center gap-3"><span class="ayah-pill flex h-7 w-7 shrink-0 items-center justify-center rounded-full text-xs">4</span><span>وَلَمْ يَكُن لَّهُۥ كُفُوًا أَحَدٌۢ</span></p>+ </div>+ <button class="glow-button mt-6 w-full rounded-full py-[11px] text-sm font-bold">ابدأ الآن →</button>+ </section>+ </div>+ </main>+ </div>+ </body>+</html>diff --git a/examples/store.html b/examples/store.htmlnew file mode 100644index 0000000..4e23f9c--- /dev/null+++ b/examples/store.html@@ -0,0 +1,146 @@+<!doctype html>+<html lang="en">+ <head>+ <meta charset="UTF-8" />+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />+ <title>Souq AI ✨ - Supercharge Your Store</title>+ <script src="https://cdn.tailwindcss.com"></script>+ <link rel="preconnect" href="https://fonts.googleapis.com" />+ <link href="https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800;900&display=swap" rel="stylesheet" />+ <style>+ body {+ font-family: "Tajawal", sans-serif;+ background: radial-gradient(120% 80% at 0% 0%, #312e81 0%, #1e1b4b 40%, #0b0a1a 100%);+ }+ .gradient-text {+ background: linear-gradient(135deg, #f9a8d4 0%, #c084fc 50%, #818cf8 100%);+ -webkit-background-clip: text;+ background-clip: text;+ color: transparent;+ }+ .glow-button {+ background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);+ box-shadow: 0 0 26px rgba(236, 72, 153, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.3);+ }+ .glass {+ background: rgba(255, 255, 255, 0.06);+ border: 1px solid rgba(192, 132, 252, 0.4);+ backdrop-filter: blur(12px);+ box-shadow: 0 0 40px rgba(139, 92, 246, 0.15);+ }+ .bar {+ background: linear-gradient(180deg, #f472b6, #8b5cf6);+ box-shadow: 0 0 16px rgba(236, 72, 153, 0.6);+ }+ </style>+ </head>+ <body class="min-h-screen text-white">+ <div class="relative flex min-h-screen">+ <!-- Sidebar -->+ <aside class="glass m-3 flex w-[248px] flex-col rounded-3xl p-5">+ <div class="mb-7 flex items-center gap-3">+ <div class="glow-button flex h-10 w-10 items-center justify-center rounded-2xl text-xl">🛍️</div>+ <div class="gradient-text text-2xl font-black">سوق AI</div>+ <span class="glow-button ml-auto rounded-full px-2 py-[3px] text-[10px] font-bold">NEW ✨</span>+ </div>++ <p class="mb-3 text-[11px] font-bold uppercase tracking-[0.3em] text-fuchsia-300/70">MENU · القائمة</p>+ <nav class="space-y-[6px] text-left">+ <a class="glow-button flex items-center gap-3 rounded-2xl px-4 py-[11px] font-bold">📊 لوحة التحكم</a>+ <a class="flex items-center gap-3 rounded-2xl px-4 py-[9px] text-violet-200 transition-all hover:scale-105">📦 الطلبات <span class="glow-button ml-auto rounded-full px-2 text-[11px]">24 🔥</span></a>+ <a class="flex items-center gap-3 rounded-2xl px-4 py-[13px] text-violet-200 transition-all hover:scale-105">🛒 المنتجات</a>+ <a class="flex items-center gap-3 rounded-2xl px-4 py-[9px] text-violet-200 transition-all hover:scale-105">👥 العملاء</a>+ <a class="flex items-center gap-3 rounded-2xl px-4 py-[10px] text-violet-200 transition-all hover:scale-105">💸 المدفوعات</a>+ <a class="flex items-center gap-3 rounded-2xl px-4 py-[9px] text-violet-200 transition-all hover:scale-105">⚙️ الإعدادات</a>+ </nav>++ <div class="glass mt-auto rounded-2xl p-4 text-left">+ <p class="text-sm font-bold">🚀 جرّب الذكاء الاصطناعي!</p>+ <p class="mt-1 text-xs text-violet-200">ضاعف مبيعاتك 10x بضغطة زر واحدة 🤖</p>+ </div>+ </aside>++ <!-- Main -->+ <main class="flex-1 p-[22px] text-left">+ <div class="mb-6 flex items-center justify-between">+ <div>+ <h1 class="gradient-text text-4xl font-black tracking-wide">صباح الخير يا سارة! 👋</h1>+ <p class="mt-1 text-violet-200">متجرك يحقق أداءً مذهلاً اليوم, استمري!!</p>+ </div>+ <div class="flex items-center gap-3">+ <input class="glass w-72 rounded-full px-5 py-[10px] text-sm text-white placeholder-violet-300 outline-none" placeholder="🔍 ابحث عن أي شيء..." />+ <button class="glow-button animate-pulse rounded-full px-5 py-[10px] text-sm font-bold">+ طلب جديد →</button>+ </div>+ </div>++ <div class="mb-6 grid grid-cols-4 gap-4">+ <div class="glass rounded-3xl p-5">+ <p class="text-xs font-bold uppercase tracking-[0.25em] text-violet-300">REVENUE · الإيرادات</p>+ <p class="gradient-text mt-2 text-3xl font-black">💰 SAR 48,210</p>+ <p class="mt-1 text-sm text-emerald-300">+12%!! 🚀</p>+ </div>+ <div class="glass rounded-3xl p-5">+ <p class="text-xs font-bold uppercase tracking-[0.25em] text-violet-300">ORDERS · الطلبات</p>+ <p class="gradient-text mt-2 text-3xl font-black">📦 ١٢٤٦</p>+ <p class="mt-1 text-sm text-emerald-300">+86 😍</p>+ </div>+ <div class="glass rounded-3xl p-5">+ <p class="text-xs font-bold uppercase tracking-[0.25em] text-violet-300">AVG · متوسط الطلب</p>+ <p class="gradient-text mt-2 text-3xl font-black">١٢٤٫٦٠ ر.س</p>+ <p class="mt-1 text-sm text-rose-300">-3 less!!</p>+ </div>+ <div class="glass rounded-3xl p-5">+ <p class="text-xs font-bold uppercase tracking-[0.25em] text-violet-300">GOAL · هدف الشهر</p>+ <p class="gradient-text mt-2 text-3xl font-black">68% 🎯</p>+ <div class="mt-3 h-2 w-full overflow-hidden rounded-full bg-white/10"><div class="glow-button h-full w-[68%] rounded-full"></div></div>+ </div>+ </div>++ <div class="grid grid-cols-3 gap-4">+ <section class="glass col-span-2 rounded-3xl p-6">+ <div class="mb-5 flex items-center justify-between">+ <h2 class="gradient-text text-2xl font-black tracking-wider">📈 مبيعات الأسبوع</h2>+ <span class="text-xs uppercase tracking-[0.25em] text-violet-300">LAST 7 DAYS</span>+ </div>+ <div class="flex h-48 items-end gap-4">+ <div class="flex h-full flex-1 flex-col items-center justify-end gap-2"><div class="bar h-[45%] w-full rounded-full"></div><span class="text-xs uppercase tracking-widest text-violet-300">السبت</span></div>+ <div class="flex h-full flex-1 flex-col items-center justify-end gap-2"><div class="bar h-[62%] w-full rounded-full"></div><span class="text-xs uppercase tracking-widest text-violet-300">الأحد</span></div>+ <div class="flex h-full flex-1 flex-col items-center justify-end gap-2"><div class="bar h-[38%] w-full rounded-full"></div><span class="text-xs uppercase tracking-widest text-violet-300">الاثنين</span></div>+ <div class="flex h-full flex-1 flex-col items-center justify-end gap-2"><div class="bar h-[71%] w-full rounded-full"></div><span class="text-xs uppercase tracking-widest text-violet-300">الثلاثاء</span></div>+ <div class="flex h-full flex-1 flex-col items-center justify-end gap-2"><div class="bar h-[55%] w-full rounded-full"></div><span class="text-xs uppercase tracking-widest text-violet-300">الأربعاء</span></div>+ <div class="flex h-full flex-1 flex-col items-center justify-end gap-2"><div class="bar h-[88%] w-full rounded-full"></div><span class="text-xs uppercase tracking-widest text-violet-300">الخميس</span></div>+ <div class="flex h-full flex-1 flex-col items-center justify-end gap-2"><div class="bar h-[96%] w-full rounded-full"></div><span class="text-xs uppercase tracking-widest text-violet-300">الجمعة</span></div>+ </div>+ </section>++ <section class="glass rounded-3xl p-6">+ <h2 class="gradient-text mb-4 text-2xl font-black">🏆 الأكثر مبيعاً</h2>+ <ul class="space-y-3 text-sm">+ <li class="flex justify-between">☕ قهوة Ethiopia Yirgacheffe 250g <span class="font-bold">412 🔥</span></li>+ <li class="flex justify-between">🫖 إبريق V60 Hario <span class="font-bold">298</span></li>+ <li class="flex justify-between">⚖️ ميزان Timemore <span class="font-bold">١٨٧</span></li>+ <li class="flex justify-between">🥛 فلاتر ورقية (100 pcs) <span class="font-bold">156</span></li>+ </ul>+ </section>+ </div>++ <section class="glass mt-4 rounded-3xl p-6">+ <div class="mb-4 flex items-center justify-between">+ <h2 class="gradient-text text-2xl font-black">🧾 آخر الطلبات</h2>+ <a class="text-sm text-fuchsia-300">عرض الكل →</a>+ </div>+ <table class="w-full text-left text-sm">+ <thead class="text-xs uppercase tracking-[0.2em] text-violet-300">+ <tr><th class="pb-3">ORDER</th><th class="pb-3">العميل</th><th class="pb-3">البريد</th><th class="pb-3">المبلغ</th><th class="pb-3">الحالة</th></tr>+ </thead>+ <tbody class="text-violet-100">+ <tr class="border-t border-white/10"><td class="py-3">#A-1042</td><td>نورة القحطاني</td><td>[email protected]</td><td>SAR 289.00</td><td><span class="glow-button rounded-full px-3 py-1 text-xs">✅ تم التوصيل!</span></td></tr>+ <tr class="border-t border-white/10"><td class="py-3">#A-1041</td><td>خالد العتيبي</td><td>[email protected]</td><td>١٥٤ ر.س</td><td><span class="rounded-full bg-amber-500/30 px-3 py-1 text-xs">🚚 قيد الشحن...</span></td></tr>+ <tr class="border-t border-white/10"><td class="py-3">#A-1040</td><td>Mohammed Al-Harbi</td><td>[email protected]</td><td>SAR 1,120.50</td><td><span class="rounded-full bg-rose-500/30 px-3 py-1 text-xs">❌ ملغي؟</span></td></tr>+ </tbody>+ </table>+ </section>+ </main>+ </div>+ </body>+</html>diff --git a/skills/unslop/SKILL.md b/skills/unslop/SKILL.mdindex e743184..93eed69 100644--- a/skills/unslop/SKILL.md+++ b/skills/unslop/SKILL.md@@ -36,7 +36,7 @@ Which visual styles tend to work, and which fail, is in [references/visuals.md](- Only a link to a live site, no code? Save the page with `node <skill folder>/scripts/snapshot.mjs <url> unslop/original.html` and work on a copy of that file. A local HTML file works in place of the URL. Add `--dark` or `--light` to match the theme the user sees. It also saves `original.live.png`, a screenshot of the live page, so render the saved copy and compare the two before you start. The script scrolls through the page first, so lazy-loaded sections and images are captured. Animated backgrounds drawn by scripts do not survive, so describe them in the audit from the live page.- Only a screenshot? Rebuild the screen as one static HTML file first, matching it closely, and treat that as the original.- In both cases the result is a redesigned page in code that the user can hand to whoever owns the real site, so say that in the report.-2. **Audit.** Go through [references/signs.md](references/signs.md) and list every sign you find, one line each with where it lives.+2. **Audit.** Go through [references/signs.md](references/signs.md) and list every sign you find, one line each with where it lives. If the screen is in Arabic, Persian, Urdu or Hebrew, or should be, read [references/rtl.md](references/rtl.md) first. Its rules win where they differ from the passes.3. **Decide how much to change.** Read the audit honestly before planning anything.- **Heavy slop**, many signs across color, type, icons and copy. Run the full process below.- **Light slop**, a screen that is mostly designed with a few signs left. Polish mode. Fix only what the audit found, take the direction from the existing brand instead of inventing a new one, and keep the palette, type, layout and visual. Bigger ideas, like a moment that is missing or a scene for the hero, go into the report as suggestions, not changes.@@ -224,6 +224,7 @@ It adds a few minutes, so make it only when the user wants it.- [ ] No emoji left in the interface- [ ] One icon set at one size and stroke- [ ] Type chosen for the character, weights 400 to 600, no uppercase tracked labels, no italic, no negative tracking on small text+- [ ] Right to left screens follow [references/rtl.md](references/rtl.md): `dir` and `lang` set, logical properties, the layout mirrored, directional icons flipped, mixed text isolated, one digit system, zero letter spacing on Arabic- [ ] No exclamation marks, no trailing periods on short strings, no greeting headline, no unverified claims- [ ] Numbers in one format with tabular figures- [ ] Nested radii add updiff --git a/skills/unslop/references/rtl.md b/skills/unslop/references/rtl.mdnew file mode 100644index 0000000..9098e66--- /dev/null+++ b/skills/unslop/references/rtl.md@@ -0,0 +1,72 @@+# Right to left++Rules for screens in Arabic, Persian, Urdu or Hebrew, or any screen with `dir="rtl"`. Read this before the passes when the screen is right to left, or when the user asks for an Arabic or Hebrew version. Where a rule here differs from the passes in the skill, this one wins.++Most RTL slop is not decoration. It is a left to right screen with the words swapped, so the text runs one way and everything around it runs the other. Fix the direction first, then run the passes as usual.++## Direction++- The root carries `dir="rtl"` and the right `lang`, like `<html lang="ar" dir="rtl">`. Without them the browser aligns text left, picks the wrong fallback fonts and breaks punctuation at the ends of lines.+- Use logical properties everywhere, so the layout flips by itself. `margin-inline-start`, `padding-inline-end`, `inset-inline-start`, `text-align: start`, `border-start-start-radius`. In Tailwind that is `ms-*`, `me-*`, `ps-*`, `pe-*`, `start-*`, `end-*`, `text-start` and `rounded-s-*`. A hard `left` or `right`, `ml-*`, `mr-*` or `text-left` is a bug waiting for the other direction.+- The whole screen mirrors. The sidebar moves to the right, the logo sits at the top right, the primary action of a pair comes first from the right, and a back arrow points right.+- Progress bars, sliders and steppers fill from the right.+- Do not flip with `transform: scaleX(-1)` on whole containers. It mirrors the text inside too.++## Icons++- Mirror icons that show direction or order: back and forward arrows, chevrons in breadcrumbs and next buttons, undo and redo, a list indent, a reply arrow, a send icon, a sidebar toggle.+- Do not mirror icons that show a real object or a universal sign: play, pause and the media controls, a clock, a checkmark, a search glass, a phone, a download arrow pointing down, logos, and anything with Latin letters in it.+- Mirror with `[dir="rtl"] .icon-directional { transform: scaleX(-1) }` on the icon only, or pick the opposite icon from the set.++## Mixed text++- Latin words, numbers, code, emails and links inside an Arabic sentence go in `<bdi>` or get `unicode-bidi: isolate`, so `Al-Fatiha` or `v2.1` does not drag the punctuation around it to the wrong side.+- Signed numbers and changes, like `+12%` or `-3`, go in `<bdi dir="ltr">`. Otherwise the sign jumps to the far side and reads `12%+`.+- Content the user typed, like names, titles and search queries, goes in `<bdi>`, which picks its direction from its own first strong letter. Put `dir="auto"` on an inline element, not on a table cell or a block, or the whole cell flips its alignment and runs into the next column.+- Inputs for email, URLs, phone numbers and codes stay `dir="ltr"` with `text-align: end`, so they read left to right but sit on the right edge with the other fields.++## Numbers++- Choose Western digits (0 to 9) or Arabic-Indic digits (٠ to ٩) for the whole screen and never mix them. Western digits are common in North Africa and in technical products. Arabic-Indic digits suit the Gulf, Egypt and anything traditional or religious. Persian uses its own forms (۰ to ۹).+- Format with `Intl.NumberFormat("ar-EG")`, `"ar-SA"` or `"ar"` with `numberingSystem: "latn"`, instead of building strings by hand.+- Numbers still use `tabular-nums`, and figures in a column align to the end of the column, which is the left edge in RTL.++## Type++- Choose a family that was drawn for the script, with real weights, not a Latin family that falls back to a system Arabic font. Pair it with a Latin family from the same design, so mixed lines keep one texture.++| Character | Arabic interface family | Latin partner | Optional display |+| --- | --- | --- | --- |+| Precise, technical, calm | IBM Plex Sans Arabic | IBM Plex Sans | IBM Plex Mono for figures |+| Neutral, everyday | Noto Sans Arabic | Noto Sans | Noto Kufi Arabic for large headlines |+| Warm, friendly, modern | Readex Pro | Readex Pro | Reem Kufi for the hero headline only |+| Persian first | Vazirmatn | Vazirmatn | |+| Literary, traditional, religious | Noto Sans Arabic or IBM Plex Sans Arabic for the interface | the matching Latin | Noto Naskh Arabic or Amiri for headlines and reading text |++- Hebrew screens use Noto Sans Hebrew, Heebo or Rubik with the same rules, and Urdu reading text uses Noto Nastaliq Urdu.+- Cairo and Tajawal on every element, at every weight, are the Arabic equivalent of Inter that nobody chose. Keep them when they are part of a real brand, otherwise pick for the character.+- Letter spacing on Arabic is always 0. Any tracking, positive or negative, pulls the joined letters apart and breaks the word. This includes large display text.+- Arabic has no capitals, so there is no uppercase or sentence case to fix. Labels get hierarchy from size, weight and color only.+- Arabic has no italic. A browser fakes it by slanting the glyphs, which reads as broken. Use weight or color.+- Arabic looks smaller than Latin at the same size. Body text is 15 to 17, captions no smaller than 13.+- Arabic needs more line height, because dots and vowel marks sit above and below the line. Body 1.6 to 1.8, headings 1.3 to 1.4. The tight 1.02 to 1.08 for Latin heroes clips marks on Arabic.+- Do not justify short interface text and do not stretch words with tatweel (ـ) to fill a line. Align to the start.++## Copy++- Arabic punctuation: the comma `،`, the semicolon `؛` and the question mark `؟`. No space before punctuation and one after it. Quotes are `«»` or `""`, chosen once.+- The rules from the Copy pass hold. No exclamation marks, no greeting headline like `أهلاً بعودتك يا أحمد! 👋`, no trailing period on labels and buttons.+- Arabic hype words count as hype: ثوري، سحري، مذهل، بلا حدود، الأفضل على الإطلاق، بضغطة زر، مدعوم بالذكاء الاصطناعي. Say what the thing does.+- Copy that reads translated, with English word order, `ال` stuck onto English words, or a different register in every label, gets rewritten in one register. Modern Standard Arabic for most products, a dialect only when the brand really speaks it.+- Short labels: `بحث`, not `ابحث عن أي شيء...`.++## Scripture and quoted text++- Quranic verses, hadith, poetry and other quoted text are copied exactly from a verified source, with their marks, and never rewritten, shortened mid verse or invented. If the screen has placeholder scripture, replace it with real text from a source the user names, or leave the exact slot and say so in the report.+- Set it in a face made for reading it, like Amiri Quran or a mushaf font for Quranic text, separate from the interface family.+- No gradient, glow, outline or animation on scripture. It carries the screen through the type, the space around it and the paper it sits on.+- The end of a verse is marked with (U+06DD) and its number in the digits of the screen, not with a glowing pill.++---++Part of unslop by Damir Sokolovsky ([@heydamir](https://x.com/heydamir)), CC BY 4.0. Keep this credit in copies and adaptations.diff --git a/skills/unslop/references/signs.md b/skills/unslop/references/signs.mdindex e9bae03..7b6ab40 100644--- a/skills/unslop/references/signs.md+++ b/skills/unslop/references/signs.md@@ -89,6 +89,25 @@ Go through every group and note each sign you find with where it lives. Each lin- Parallax, floating loops and elements that move on scroll → static layout- Animating width, height, top or left → transform and opacity+## Right to left++The fixes are explained in [rtl.md](rtl.md).++- Arabic or Hebrew text aligned left, or a page without `dir="rtl"` and `lang` → set both on the root and align to the start+- The sidebar, logo and back arrow still on the left of an Arabic screen → mirror the layout with logical properties+- `ml-*`, `mr-*`, `left-*` and `text-left` in an RTL screen → `ms-*`, `me-*`, `start-*` and `text-start`+- Next and back arrows or chevrons pointing the left to right way → mirror directional icons only, keep media controls and objects as they are+- Progress bars filling from the left → fill from the right+- Letter spacing or `tracking-*` on Arabic, often from uppercase label styles → 0+- Fake italic or fake bold on Arabic, or a Latin font falling back to a system Arabic font → a family drawn for Arabic with real weights+- Cairo or Tajawal on everything with nobody choosing it → a family picked for the character+- Western and Arabic-Indic digits mixed on one screen, like `٣` next to `3` → one digit system+- Latin words or numbers pushing punctuation to the wrong side, or a sign jumping to the end, like `12%+` → `<bdi>` or `unicode-bidi: isolate`, `<bdi dir="ltr">` for signed numbers+- Tight Latin line height clipping dots and vowel marks → 1.6 to 1.8 for body, 1.3 to 1.4 for headings+- Latin punctuation in Arabic, like `,` and `?` → `،` and `؟`+- Arabic hype and greetings, like `تجربة ثورية!` or `أهلاً بعودتك! 👋` → what the product does, the page name as the title+- Gradient text, glow or animation on Quranic or other quoted text → plain text in a reading face, exact from a verified source+## Template lookThese are not slop, but they are what a cleaned up screen falls back to when nobody made a decision. Watch for them after the passes.diff --git a/skills/unslop/references/tokens.md b/skills/unslop/references/tokens.mdindex 431cdc3..fbb0518 100644--- a/skills/unslop/references/tokens.md+++ b/skills/unslop/references/tokens.md@@ -81,6 +81,8 @@ Pick by the character in the direction. All of these are free, and a partner canA display serif belongs to large headlines only, never to labels or buttons.+For Arabic, Persian, Urdu and Hebrew, the families and sizes are in [rtl.md](rtl.md). The letter spacing values below are for Latin only.+## Type scale| Use | Size | Line height | Weight |