Rustywind screenshot

Rustywind

Author Avatar Theme by Avencera
Updated: 31 Aug 2025
599 Stars

CLI for organizing Tailwind CSS classes

Overview

RustyWind is a powerful command-line interface (CLI) tool designed to streamline the management of Tailwind CSS classes in your projects. By sorting and organizing your CSS classes, it helps maintain a clean and efficient codebase. Inspired by the popular Headwind VSCode plugin, RustyWind identifies and removes duplicate classes, ensuring that your styling remains consistent and optimized.

With user-friendly installation options and flexible usage commands, RustyWind proves to be an essential tool for developers looking to enhance their workflow. This utility can integrate seamlessly into your CI/CD pipelines, reducing manual effort while improving code quality.

Features

  • Easy Installation: Install via npm, Yarn, Homebrew, or directly from GitHub. RustyWind offers multiple installation methods to suit different environments and preferences.
  • Class Sorting: Automatically sorts your Tailwind CSS classes to maintain order and readability in your code, preventing confusion in large projects.
  • Duplicate Class Removal: Detects and deletes any duplicate classes, helping to reduce clutter and potential performance issues in your CSS.
  • Custom Sorting: Users can define a custom sorting order through a configuration file, allowing for tailored class organization based on project needs.
  • Dry Run Option: Use the --dry-run flag to preview the changes RustyWind would make without altering any files, giving you control and confidence before applying modifications.
  • CI Integration: Run RustyWind within your continuous integration setup, exiting with an error if unsorted classes are found, ensuring code quality checks are enforced.
  • Compatibility with Tools: Works well with the Tailwind Prettier plugin, integrating effortlessly into existing setups to enhance CSS file management.
  • Flexibility: Processes input from various sources, including STDIN, giving developers a versatile tool for managing CSS.