Shadcn Rtl screenshot

Shadcn Rtl

Author Avatar Theme by M farah
Updated: 1 Aug 2025
25 Stars

A simple TypeScript script to convert your ShadCN components to RTL-ready by transforming Tailwind CSS class names.

Categories

Overview

The Shadcn-RTL is an innovative CLI tool designed to simplify the process of making your ShadCN components compatible with right-to-left (RTL) layouts. By transforming Tailwind CSS class names, it effectively addresses the growing need for RTL support in web applications, enabling developers to cater to a broader audience with ease. With its user-friendly installation and usage instructions, this tool is a must-have for anyone working with internationalization and localization in their projects.

Features

  • Automatic LTR to RTL Conversion: Seamlessly replaces left-to-right Tailwind classes with their RTL equivalents, ensuring your components are ready for all languages.
  • Component Processing: Quickly processes components from a designated default location (src/components), streamlining the workflow for developers.
  • Custom Path Options: Offers flexibility by allowing users to specify custom paths for processing components, perfect for projects with varied structures.
  • Global Installation: Provides an option to install the tool globally, making it accessible for frequent use across multiple projects.
  • User-Friendly: Designed for ease of use with clear instructions for installation and operation, making it approachable even for those new to CLI tools.
  • Wide Class Coverage: Supports a comprehensive range of Tailwind CSS classes, ensuring thorough and effective conversion across various components.
  • Development Flexibility: Allows developers to run the tool locally and build it to fit their specific needs, enhancing customization and efficiency.