
Hebrew Rtl Best Practices
A solid reference for building Hebrew web UIs the right way. Covers the full stack: CSS logical properties instead of left/right, the :dir() pseudo-class, bidi text handling with isolate and bdo, and which icons to mirror (arrows yes, play buttons no). The typography section recommends Heebo/Assistant and explains why Hebrew needs larger font sizes and word spacing but never letter spacing. Includes real Tailwind examples with the ms-4/me-4 utilities and Next.js setup with google fonts. The bidi guidance is especially practical, it calls out common bugs like phone numbers flipping and when to use bdi versus bdo. If you're tired of guessing which CSS properties break in RTL or manually flipping every icon, this consolidates the patterns that actually work.
- install copies · 90 days. Times the install command was copied on this site in the last 90 days, bots filtered.
- 5
- skills.sh installs
- 746
- GitHub stars
- 26
- last updated
- Aug 21, 2026
Install
$ npx -y skills add skills-il/localization --skill hebrew-rtl-best-practices --agent claude-codeInstalls into .claude/skills of the current project.
Files
Hebrew RTL Best Practices
Instructions
Step 1: Set Up Document Direction
Always start with the HTML attribute (not just CSS):
<html lang="he" dir="rtl">
This tells browsers, screen readers, and CSS to use RTL as the base direction.
Step 2: Use CSS Logical Properties
NEVER use physical directional properties for layout:
| Physical (avoid) | Logical (use) |
|---|---|
margin-left | margin-inline-start |
margin-right | margin-inline-end |
padding-left | padding-inline-start |
padding-right | padding-inline-end |
border-left | border-inline-start |
text-align: left | text-align: start |
text-align: right | text-align: end |
float: left | float: inline-start |
left: 10px | inset-inline-start: 10px |
This ensures the layout automatically mirrors in RTL mode.
When you genuinely need a direction-specific rule that logical properties cannot express, prefer the :dir() pseudo-class over [dir="rtl"] attribute selectors:
/* Modern: matches the resolved direction, including dir="auto" and inheritance */
.chevron:dir(rtl) { transform: scaleX(-1); }
Sponsors
Details
- Repository
- github.com/skills-il/localization
- Categories
- Frontend Development, DevOps & CI/CD, Mobile Development, Design & UI/UX
- First seen
- Jun 3, 2026