Skip to content

Introduction

Get Ritla UI

Ritla UI: React and Tailwind CSS v4 components for Arabic and English products, built against the checks Ritla runs on live sites.

Ritla UI is a set of React and Tailwind CSS v4 components and blocks for products that ship in Arabic and English. You install them into your project as source you own, and every one of them is built against the checks Ritla runs on live sites, so the Arabic defects those checks find are not written in the first place.

What is in it#

  • Components. Inputs, buttons, selection, navigation, overlays, data display, and a payments and fintech set: phone and card fields, one-time codes, amounts, trade actions. Each has a page under Components with live previews, usage, an API table, keyboard and ARIA notes, and what mirrors in Arabic and what does not.
  • Themes. A theme is a Figma file and a token set. Components read only tokens, so a theme changes the look without touching layout. The default theme is the first.
  • Rules. The checks the components are built against, the same ones a Ritla scan reports on your pages.

Read a component page in three modes#

Every preview switches between three modes:

  1. English, left to right.
  2. Mirrored: the same English content, laid out right to left. A bug that shows here is a direction bug, not a translation one.
  3. Arabic: real Arabic copy in an Arabic font, right to left.

A second switch shows the digits as Western (0123456789) or Arabic-Indic (٠١٢٣٤٥٦٧٨٩). Start with the component you need, switch it to Arabic, and read its Arabic and RTL notes before anything else.

Find, fix, prevent#

A Ritla scan finds the Arabic and RTL defects on a live page. The RTL principles explain how to fix each kind. Ritla UI prevents them: a component that passes a check by construction does not bring that defect onto your page.

Next steps#

  • Installation: add the CLI and your first component.
  • Tokens: how a Figma variable becomes a CSS variable and a utility class.
  • RTL principles: the decisions every component makes for you.