hebrew-rtl-best-practices

Implement right-to-left layouts for Hebrew web applications using CSS logical properties.

Updated Sep 15, 2026
One-click install
npx skills add https://github.com/Nadav011/nadavai-claude --skill hebrew-rtl-best-practices-nadav011
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: hebrew-rtl-best-practices
Source: https://github.com/Nadav011/nadavai-claude/tree/main/plugins/nadavai/skills/hebrew-rtl-best-practices
Command: npx skills add https://github.com/Nadav011/nadavai-claude --skill hebrew-rtl-best-practices-nadav011

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Building Hebrew web UIs breaks layouts when developers use physical CSS properties like margin-left and text-align: left, causing misaligned sidebars, reversed phone numbers, and unmirrored icons in RTL mode. ## Core Features & Use Cases - CSS Logical Properties: Convert physical properties (margin-left, padding-right) to logical ones (margin-inline-start, padding-inline-end) so layouts mirror automatically in RTL. - Bidirectional Text Handling: Fix reversed phone numbers, currency amounts, and mixed Hebrew-English strings using dir="ltr" spans, <bdi>, unicode-bidi: isolate, and Intl formatting for he-IL locale. - Framework Setup: Configure RTL in Tailwind CSS v4 (ms-/ps- utilities, rtl: variants), Next.js App Router with Heebo fonts, and MUI with @mui/stylis-plugin-rtl. - Use Case: A user says "my sidebar is on the wrong side in Hebrew" — the Skill replaces fixed left-0 positioning with inset-s-0 and flips directional arrow icons with rtl:-scale-x-100. ## Quick Start Ask the assistant to convert your LTR card or navigation component to work correctly in Hebrew RTL layout.

Frequently Asked Questions about hebrew-rtl-best-practices

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I make my CSS layout work in RTL for Hebrew?

Set dir="rtl" on the html element and replace physical properties with logical ones: margin-left becomes margin-inline-start, padding-right becomes padding-inline-end, and text-align: left becomes text-align: start. The layout then mirrors automatically.

How do I fix reversed phone numbers in Hebrew text?

Wrap phone numbers, URLs, and emails in <span dir="ltr"> or <bdo dir="ltr"> so they keep left-to-right order inside RTL text. Alternatively apply unicode-bidi: isolate with direction: ltr on the containing element.

Does Tailwind CSS support RTL layouts?

Yes. Since Tailwind v3.3, logical utilities like ms-4, pe-3, and inset-s-0 mirror automatically based on the dir attribute. Use the rtl: variant only for cases logical properties cannot cover, such as flipping directional icons with rtl:-scale-x-100.

Which icons should be mirrored in RTL interfaces?

Mirror icons tied to reading direction: navigation arrows, back/forward buttons, breadcrumb chevrons, and send arrows. Do not mirror logos, checkmarks, media play buttons, clocks, or icons depicting real-world objects with fixed orientation.

Why do my MUI modals open on the wrong side in RTL?

Portalled components mount at document.body and many libraries assume LTR. Set dir on the html element and also pass the library's direction setting: direction: 'rtl' in the MUI theme with @mui/stylis-plugin-rtl, or DirectionProvider for Radix.

Can I use this for Arabic RTL or React Native apps?

The Skill targets Hebrew web applications specifically. Arabic RTL shares patterns but has different typography, and native mobile RTL (React Native I18nManager, SwiftUI, Android) is explicitly out of scope.