RuleMembers

Right-to-left (RTL) layouts Cursor rules

RTL Development Rules is a Cursor rule file for building interfaces that support right-to-left languages such as Hebrew and Arabic. It is for frontend and mobile developers who want layouts that flip correctly, using logical CSS properties, Tailwind logical classes and bidirectional text handling.

What it does

CSS uses logical properties like margin-inline-start and padding-inline-end instead of left and right. Tailwind uses ms-4, me-4, ps-4, pe-4, start-0 and end-0 instead of ml, mr, pl, pr, left and right classes. React Native styles use paddingStart and similar logical names. It also mentions auditing with rtlify-ai.

How to use it

The globs are **/*, so it covers styles and components across the app.

Requirements and limits

The audit step depends on the rtlify-ai tool.

More in Rules and the Cursor library.

What it covers

  • Core Rules
  • 1. Logical CSS Properties
  • 2. Tailwind CSS Logical Classes
  • 3. React Native Logical Properties
  • 4. Bidirectional Text Safety
  • 5. Directional Icons
  • 6. Internationalization
  • 7. RTL-Aware Components
  • 8. Testing
  • Automated RTL Auditing

The full text is in the members library

Book a call and we will give you access to the full Cursor library: every entry in full, search by meaning, copy and download.

Source and license

Source: https://github.com/PatrickJS/awesome-cursorrules/blob/main/rules/rtl-right-to-left-i18n-cursorrules-prompt-file.mdc

Author: PatrickJS, Awesome cursorrules. License: CC0-1.0.

Related entries