Logo Persian Rtl Ui

Persian Rtl Ui

Cộng đồng
MiladJoodi
persian-rtl-ui

Xây dựng giao diện RTL bằng React và Tailwind tự nhiên với tiếng Ba Tư. Dùng cho giao diện tiếng Ba Tư, bố cục RTL, tạo kiểu thành phần, biểu mẫu, bảng điều khiển và chuyển giao diện LTR sang RTL. Bao gồm CSS logic, kiểu chữ Ba Tư, chữ số Ba Tư, ngày Jalali, mẫu biểu của Iran, khả năng truy cập trong RTL và tạo kiểu dựa trên token.

Tổng quan

Nhà phát hànhMiladJoodi
Kho mãskills
Tên kỹ năngpersian-rtl-ui
Sao
24
Bản fork
1
Tệp đi kèm
Chỉ có hướng dẫn
Giấy phépMIT
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • Hướng dẫn có đủ mọi thứ cần thiết

    Mọi thứ mô hình cần đều nằm trong hướng dẫn — không có tệp bổ sung cần đồng bộ.

  • Mã nguồn mở

    Được MiladJoodi công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Persian Rtl Ui trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/MiladJoodi/skills/tree/main/skills/persian-rtl-ui
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

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
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Persian Rtl Ui trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Persian Rtl Ui ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Persian Rtl Ui với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

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.

Câu hỏi thường gặp

Kỹ năng AI Persian Rtl Ui làm được gì?

Xây dựng giao diện RTL bằng React và Tailwind tự nhiên với tiếng Ba Tư. Dùng cho giao diện tiếng Ba Tư, bố cục RTL, tạo kiểu thành phần, biểu mẫu, bảng điều khiển và chuyển giao diện LTR sang RTL. Bao gồm CSS logic, kiểu chữ Ba Tư, chữ số Ba Tư, ngày Jalali, mẫu biểu của Iran, khả năng truy cập trong RTL và tạo kiểu dựa trên token.

Vì sao nên dùng Persian Rtl Ui trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Persian Rtl Ui là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Persian Rtl Ui trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/MiladJoodi/skills/tree/main/skills/persian-rtl-ui. TypingMind đọc tệp SKILL.md rồi cài đặt kỹ năng để bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Persian Rtl Ui?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Persian Rtl Ui với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Persian Rtl Ui với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Persian Rtl Ui có miễn phí không?

Có. Kỹ năng này được MiladJoodi phát hành trên GitHub theo giấy phép MIT. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇