# MohammadYounes/rtlcss

Framework for transforming  Cascading Style Sheets (CSS) from Left-To-Right (LTR) to Right-To-Left (RTL)

Repository: https://github.com/MohammadYounes/rtlcss
Canonical: https://ross.abutalabs.com/products/rtlcss
Homepage: https://rtlcss.com
Language: JavaScript
License: MIT
License Family: permissive
Topics: rtlcss, cascading-style-sheets, ltr, rtl, css, css3, i18n, mirror, flip, right-to-left, left-to-right, postcss-plugin, postcss
Last push: 2025-02-18T00:37:48+00:00

## Health v2 (maintenance only)
Score: 26/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 7, release rhythm 8, longevity 100
- inputs: {"age_days": 4565, "days_push": 562, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1707, forks 124 (observed 2026-08-28T04:05:25.032305+00:00)

## What it is
RTLCSS is a Node.js framework and PostCSS plugin that automatically converts Left-To-Right (LTR) CSS stylesheets into their Right-To-Left (RTL) counterparts. It supports direction-sensitive CSS3 properties, control and value directives, string maps, and a CLI, so developers can author one LTR stylesheet and generate the mirrored RTL version.

## Use cases
- convert css from ltr to rtl for arabic websites
- generate right-to-left stylesheet automatically
- flip css properties like padding and margins for rtl languages
- mirror a bootstrap theme for rtl support
- postcss plugin to transform css direction
- build rtl version of css without maintaining two files
- handle direction-sensitive css3 properties like box-shadow and transforms

## When to choose
- you need to support RTL languages such as Arabic or Hebrew without hand-maintaining a second stylesheet
- you want a build-time or CLI tool that mirrors existing LTR CSS automatically
- you need fine-grained control over conversion via in-CSS directives and string maps

## When to avoid
- your site is LTR-only and will never need RTL support
- you prefer writing RTL styles manually or using a CSS logical-properties-first approach
- you need runtime direction switching rather than build-time stylesheet generation

## Facets
- artifact type: library
- maturity: active
- function: css-framework, internationalization, build-tool, cli
- domain: web-development, frontend
- platform: cli, cross-platform
- tags: rtl, ltr, css-flip, postcss-plugin, mirror, right-to-left, i18n, localization, css, nodejs

## Member repositories
- MohammadYounes/rtlcss (main) score 26

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:25.032305+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:37:25.592611+00:00, confidence not recorded.
  - readme: https://github.com/MohammadYounes/rtlcss (fetched 2026-08-28T04:05:25.032305+00:00, sha f53c35bfeac0)
  - homepage: https://rtlcss.com (fetched 2026-08-29T11:11:48.012233+00:00, sha 58cd7d938242)
  - site_page: https://rtlcss.com/learn/getting-started/why-rtlcss (fetched 2026-08-29T11:11:48.023365+00:00, sha 6be5699c1ccf)
  - registry_npm: https://registry.npmjs.org/rtlcss (fetched 2026-08-29T11:11:48.025639+00:00, sha f8c2c66fbf0b)
  - site_page: https://rtlcss.com/learn (fetched 2026-08-29T11:11:48.021388+00:00, sha 24efb539f8a2)
- Data as of 2026-08-30T08:39:29.467469+00:00.
