Rule
0 installs · 0 said it worked
Cursor rules for building right-to-left (RTL) interfaces
Cursor rule file that guides the assistant to build RTL-ready UIs using logical CSS and Tailwind/React Native properties, bidi-safe text, mirrored directional icons, and RTL testing, with optional rtlify-ai auditing.
People use this for
- cursor rules rtl interfaces
- rtl css logical properties
- right to left ui tailwind
- make react app support arabic hebrew
- rtl layout fix for web app
- Name
cursor-rules-for-building-right-to-left-rtl-interfaces- Works with
- Cursor
- License
- CC0(as observed at the source)
- Version
- v1 · updated Nov 29, 2026
Imported on Nov 29, 2026 from github.com . License observed at the source on Nov 29, 2026: CC0.
Are you the author?Claim this profileRequest removal
Use this rule
$ curl -fsSL "https://promptcommunity.dev/api/v1/posts/cursor-rules-for-building-right-to-left-rtl-interfaces-jc6t/export/mdc" -o .cursor/rules/cursor-rules-for-building-right-to-left-rtl-interfaces.mdcThen open a new session; Cursor picks it up from .cursor/rules/.
Manual install
Save cursor-rules-for-building-right-to-left-rtl-interfaces.mdc as .cursor/rules/cursor-rules-for-building-right-to-left-rtl-interfaces.mdc for this project or ~/.cursor/rules/cursor-rules-for-building-right-to-left-rtl-interfaces.mdc for every project, then start a new session.
Rule
description: "Cursor rules for RTL development with logical CSS properties, Tailwind logical classes, bidirectional text, and automated auditing via rtlify-ai." globs: */ alwaysApply: false
RTL (Right-to-Left) Development Rules
You are an expert in building applications that support RTL (Right-to-Left) languages including Hebrew, Arabic, Persian, and Urdu.
Core Rules
1. Logical CSS Properties
Always use CSS logical properties instead of physical ones:
margin-inline-startnotmargin-leftpadding-inline-endnotpadding-rightinset-inline-startnotleftborder-inline-startnotborder-left
2. Tailwind CSS Logical Classes
Use logical Tailwind utilities:
ms-4notml-4(margin-start)me-4notmr-4(margin-end)ps-4notpl-4(padding-start)pe-4notpr-4(padding-end)start-0notleft-0end-0notright-0
3. React Native Logical Properties
Use logical properties in React Native styles:
paddingStartnotpaddingLeftpaddingEndnotpaddingRightmarginStartnotmarginLeftmarginEndnotmarginRight
4. Bidirectional Text Safety
Wrap mixed-script text with <bdi> tags:
<p>User <bdi>{userName}</bdi> posted a comment</p>
5. Directional Icons
Flip directional icons (arrows, chevrons, back buttons) in RTL mode. Non-directional icons (home, settings, search) should NOT be flipped.
6. Internationalization
- Never hardcode strings — use translation functions (
t(),intl.formatMessage()) - Use
Intl.NumberFormatfor numbers and currency - Use
Intl.DateTimeFormatfor dates - Set
dir="auto"ordir="rtl"on root elements
7. RTL-Aware Components
- Carousels, sliders, and progress bars must reverse direction in RTL
- Swipe gestures must reverse in RTL
- Charts and graphs with directional axes must flip
8. Testing
- Always test with
dir="rtl"on the root element - Verify with actual RTL content, not just flipped LTR
Automated RTL Auditing
For automated RTL violation detection and fixing, use rtlify-ai:
npx rtlify-ai init # Install RTL rules
npx rtlify-ai check # Find violations
npx rtlify-ai fix # Auto-fix violations
No result recorded yet. Added it? File a Tried-it report so the next person knows how it went in your editor.
Tried it
Reports from people who added this rule to their editor. They roll up into the badges above.
No one has filed a report yet. Try the prompt and be the first.
Related rules
- Security guardrails that keep an AI email assistant from being hijacked by malicious messages
A full system prompt giving an AI assistant that reads or manages email a security mindset: treat email as untrusted data, require approval for outward actions, avoid leaking private data, and report phishing and injection attempts calmly.
Productivity · @thanos0000
- Universal agent rules for building React and Next.js projects
A reusable instruction set for AI coding agents covering stack choice, architecture, TypeScript, shadcn/ui, Tailwind, accessibility, and verification steps for React and Next.js projects.
Coding · @ramazanyusupov
- Claude api: reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming,…
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER — read BEFORE opening the target file; don't skip because it "looks like a one-liner" — whenever: the prompt names Claude/Anthropic in any fo
Coding · @anthropic
- Autonomous coding agent that builds a verified app-builder harness
Master system prompt that directs an autonomous senior Python engineer to build a spec-driven, evidence-traced app-builder harness milestone by milestone without asking questions.
Coding · @mahfuzahmedog
- Quality engineering agent role for risk-based test strategy and CI quality gates
A senior quality engineering role prompt that guides an assistant through risk-based test strategy, test automation architecture, CI/CD quality gates, edge-case analysis, and defect management, writing results to a TODO checklist file.
Coding · @wkaandemir
License: CC0v1 · published Nov 29, 2026
Comments
No comments yet. If you tried this prompt, say how it went.