--- name: rtl-css description: RTL (Right-to-Left) CSS for Hebrew and Arabic. Use when building UI that needs RTL support, fixing RTL layout issues, or auditing CSS for RTL compliance. --- # RTL CSS with Logical Properties ## The Golden Rule NEVER use physical properties. ALWAYS use logical properties. ## Property Mapping | Physical (❌) | Logical (✅) | Tailwind | |--------------|-------------|----------| | padding-left | padding-inline-start | ps-* | | padding-right | padding-inline-end | pe-* | | margin-left | margin-inline-start | ms-* | | margin-right | margin-inline-end | me-* | | left | inset-inline-start | start-* | | right | inset-inline-end | end-* | | text-align: left | text-align: start | text-start | | text-align: right | text-align: end | text-end | | border-left | border-inline-start | border-s-* | | border-right | border-inline-end | border-e-* | ## Tailwind Examples ```tsx // ❌ WRONG - Breaks in RTL