Persian Rtl Ui logo

Persian Rtl Ui

Community
MiladJoodi
persian-rtl-ui

Build natural Persian RTL interfaces with React and Tailwind. Use for Persian UI, RTL layouts, component styling, forms, dashboards and converting LTR interfaces to RTL. Covers logical CSS, Persian typography, Persian numbers, Jalali dates, Iranian form patterns, accessible RTL behavior and token-based styling.

Overview

PublisherMiladJoodi
Repositoryskills
Skill namepersian-rtl-ui
Stars
24
Forks
1
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by MiladJoodi on GitHub. Read the source before you install it.

Installation

Install the Persian Rtl Ui AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/MiladJoodi/skills/tree/main/skills/persian-rtl-ui
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/MiladJoodi/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/skills/persian-rtl-ui .claude/skills/persian-rtl-ui
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Persian Rtl Ui in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Persian Rtl Ui on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Persian Rtl Ui is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Persian RTL UI

Build Persian interfaces as RTL interfaces from the beginning. Adding dir="rtl" to an existing LTR interface is not enough.

Apply these rules to layout, typography, forms, overlays, icons, numbers, dates, accessibility and Iranian product patterns.

1. Direction

  • Set the document direction with <html lang="fa" dir="rtl">. Do not add dir="rtl" to individual components unless a specific nested section requires a different direction.
  • Prefer logical CSS utilities: ms-*, me-*, ps-*, pe-*, start-*, end-*, text-start, text-end, border-s, border-e, rounded-s-*, rounded-e-*, inset-s-*, inset-e-*.
  • Avoid physical-direction utilities when the layout should adapt to RTL: ml-*, mr-*, pl-*, pr-*, left-*, right-*, text-left, text-right, border-l, border-r.
  • Use gap-* instead of space-x-*.
  • Do not add flex-row-reverse just to compensate for RTL.
  • Directional icons should match RTL. For example, "next" points left and "back" points right.
  • Keep inherently LTR values such as phone numbers, email, OTP, IBAN, card numbers, URLs and code in dir="ltr" where appropriate.

2. RTL components

RTL must work beyond the main document flow.

Check direction, alignment and positioning in:

  • Dialog
  • Popover
  • Tooltip
  • Dropdown Menu
  • Context Menu
  • Select and Combobox
  • Drawer and Sheet
  • Toast
  • Nested menus
  • Portals
  • Floating elements
  • Absolutely positioned elements
  • Charts and chart tooltips

Do not assume that a component is RTL-safe just because its parent has dir="rtl".

3. Typography

  • Use the Persian font configured by the project.
  • Do not replace it with a Latin-first font such as Inter, Roboto or Geist unless explicitly required.
  • Do not add artificial letter spacing to Persian text.
  • Avoid tracking-* on Persian text unless there is a deliberate design reason.
  • Use appropriate Persian line-height and the font's available weights.
  • Keep Latin text in its natural form inside mixed Persian content.
  • Use <bdi> or dir="ltr" when a Latin value needs explicit isolation.
  • Do not uppercase Persian text.

Example:

text
کد سفارش SKU-2048

should remain a Persian sentence with the SKU isolated only when necessary, not become an entirely LTR block.

4. Numbers, money and dates

Use Persian digits for visible Persian content when appropriate:

text
۳ کالا
۲ ساعت پیش
۱٬۲۵۰٬۰۰۰ تومان
۲۰٪ تخفیف

Use:

  • ٬ for thousands
  • ٫ for decimals
  • ٪ for percentages

Money should place the unit after the number:

text
۱۲٬۴۵۰٬۰۰۰ تومان

Keep machine-readable values such as API payloads, JSON, database values and form values in their required format. Convert them at the presentation layer.

For Persian-first products, use the Jalali calendar when the product requires it. Do not rely on toLocaleDateString alone when an actual Jalali conversion is required.

5. Forms

  • Keep labels visible and separate from placeholders.
  • Use htmlFor and correctly associated inputs.
  • Phone inputs should support common Iranian formats such as ۰۹۱۲۳۴۵۶۷۸۹ and +989123456789 when required.
  • Use dir="ltr" for phone, OTP, email, IBAN, card and URL inputs where it improves input behavior.
  • OTP inputs should support paste and autoComplete="one-time-code" where applicable.
  • Normalize Persian and Arabic-Indic digits before validation when the field accepts numeric input.
  • Show validation errors close to the relevant field and use aria-invalid where appropriate.
  • Keep the primary action clear and visually distinct.
  • Avoid unnecessary visual clutter in forms.

6. Colors and shape

Use the project's existing semantic design tokens.

Prefer tokens such as:

text
background
foreground
card
primary
secondary
muted
accent
border
input
ring
destructive

Do not introduce arbitrary colors or hard-coded values inside components when an existing token can be used.

Use the project's radius system consistently.

7. Motion

  • Keep interface animations short and purposeful.
  • Respect prefers-reduced-motion.
  • Directional animations should follow RTL.
  • Prefer animating transform and opacity instead of layout properties such as top, left and width.

8. Accessibility

  • Preserve a visible focus state.
  • Do not use outline-none without an equivalent focus treatment.
  • Give icon-only buttons meaningful Persian aria-label values.
  • Preserve keyboard navigation and focus management in dialogs and menus.
  • Use lang="fa" for Persian document content.
  • Make sure muted text remains readable in both light and dark themes.

9. Iranian product patterns

When the product requires Iranian-specific UI patterns, use existing project components and utilities instead of reimplementing them unnecessarily.

Common patterns include:

  • شماره موبایل
  • کد ملی
  • شماره شبا
  • شماره کارت
  • کد پستی
  • پلاک خودرو
  • استان، شهر، خیابان، پلاک، واحد
  • تومان و ریال
  • تقویم شمسی
  • وضعیت پرداخت
  • روش‌های ارسال

Examples of natural field structures:

text
استان
شهر
آدرس
پلاک
واحد
کد پستی

Do not invent validation rules for Iranian identifiers without checking the project's existing implementation or requirements.

10. Copy inside components

User-facing text should be natural Persian:

  • labels
  • placeholders
  • empty states
  • errors
  • loading states
  • confirmations
  • notifications
  • accessible labels

Keep code identifiers, props, variables, component names and file names in English.

Use the persian-ui-copy skill when available for detailed Persian UI wording and terminology.

11. RTL review

Before returning the implementation, inspect the complete interface.

Pay particular attention to:

  • nested components
  • Portal-based components
  • Dropdowns
  • Tooltips
  • Popovers
  • Charts
  • Dialogs
  • absolute-positioned elements
  • floating controls
  • directional icons
  • mixed Persian and Latin content

A component that looks correct in the main DOM can still be incorrect when rendered through a Portal or nested inside another component.

12. Final checklist

  1. Document direction is RTL.
  2. Layout uses logical CSS utilities.
  3. No unnecessary physical-direction utilities.
  4. No unnecessary flex-row-reverse.
  5. Persian text has no artificial letter spacing.
  6. LTR values are handled with the correct direction.
  7. Visible Persian numbers and money use the product's formatting rules.
  8. Jalali dates are used where required.
  9. Colors and radius come from existing design tokens.
  10. Directional icons match RTL.
  11. Portals, overlays and nested components have been checked.
  12. Focus states and accessible labels are preserved.
  13. User-facing text is natural Persian.
  14. Iranian-specific patterns use existing project utilities where available.

Frequently asked questions

What does the Persian Rtl Ui AI skill do?

Build natural Persian RTL interfaces with React and Tailwind. Use for Persian UI, RTL layouts, component styling, forms, dashboards and converting LTR interfaces to RTL. Covers logical CSS, Persian typography, Persian numbers, Jalali dates, Iranian form patterns, accessible RTL behavior and token-based styling.

Why use Persian Rtl Ui on TypingMind?

Because you install it once and use it with any model. Persian Rtl Ui is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Persian Rtl Ui in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/MiladJoodi/skills/tree/main/skills/persian-rtl-ui. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Persian Rtl Ui?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Persian Rtl Ui?

As many as you like. As long as a model supports skills, you can use Persian Rtl Ui with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Persian Rtl Ui AI skill free?

Yes. It is published on GitHub by MiladJoodi under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇