Logical layout
Components use start and end instead of left and right, so padding, icons and close buttons move to the right side on their own.
Every Pixels component mirrors for Arabic, in the Figma library and in the React code. Switch one setting and the whole screen reads right to left, with Arabic type that fits.
Every component is checked in right-to-left on every build.
Right-to-left lives in the components and the design tokens, so every screen you build with Pixels is ready for Arabic from the start.
Components use start and end instead of left and right, so padding, icons and close buttons move to the right side on their own.
A Locale token collection with two modes, en · LTR and ar · RTL, sets the direction, the Arabic font family and taller line heights.
Arrow keys in tabs, menus, sliders and date pickers follow the visual order, because the components are built on React Aria.
Mirroring everything is as wrong as mirroring nothing. Pixels follows the rules Arabic readers expect.
| Part of the interface | In RTL | Why |
|---|---|---|
| Layout, padding, icon position | Mirrors | Follows the reading direction |
| Back, next and chevron icons | Mirrors | They point along the reading flow |
| Steppers, pagination, breadcrumbs | Mirrors | They show order through a sequence |
| Numbers, prices and versions | Stays left to right | Numbers read left to right in Arabic too, for example SAR 1,250 |
| Media controls and chart time axes | Stays the same | They describe time, not reading order |
| Logos and icons of real objects | Stays the same | A phone or a camera does not flip |
One setting in code, one variable mode in Figma.
Set dir="rtl" and lang="ar" on the html element, or on any container for a mixed page.
Select a frame and switch the Locale variable mode from en · LTR to ar · RTL. Text, spacing and icons follow.
Every preview in the docs and the Storybook has an RTL switch, so you see each component in Arabic before you use it.
See how tokens switch the font and direction in the theming guide.
Yes. Every component in the Figma library and the React package mirrors when the page or frame is set to right-to-left, and Arabic text uses an Arabic typeface with taller line heights from the Locale tokens.
Set dir="rtl" and lang="ar" on the html element, or on any container. The Pixels React components use logical CSS properties (start and end instead of left and right), so padding, borders, alignment and directional icons swap on their own, and the keyboard follows the reading direction. In Figma, switch the Locale variable mode of a frame from en · LTR to ar · RTL.
The React package and the Storybook use IBM Plex Sans Arabic for Arabic text, with taller line heights from the Locale tokens. You can change the family in one token.
Directional icons such as arrows and chevrons flip. Icons of real objects, logos, media controls and chart time axes do not, because they do not follow reading order.
The free core React package and the Pro components both support right-to-left. The Pro Figma file includes the Locale collection with the en · LTR and ar · RTL modes.
Start with the free Figma kit, or get the full Figma library and React package.