tailwind-sorter
A ruby gem to sort the Tailwind CSS classes in your templates the custom way. (by NejRemeslnici)
headwind
An opinionated Tailwind CSS class sorter built for Visual Studio Code (by heybourn)
tailwind-sorter | headwind | |
---|---|---|
1 | 9 | |
18 | 1,366 | |
- | - | |
6.6 | 0.0 | |
7 months ago | 9 months ago | |
Ruby | TypeScript | |
MIT License | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
tailwind-sorter
Posts with mentions or reviews of tailwind-sorter.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-09-21.
-
Tailwind CSS class sorter – the custom way
If we’ve got your attention, please read the project README and wiki and feel free to customize anything you’ll find there. And let us know how it worked for you. Good luck with Tailwind classes sorting! 🤞
headwind
Posts with mentions or reviews of headwind.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-10-04.
-
HyperUI Rewritten... What's Changed?
Added the tailwind-prettier-plugin as not everyone uses headwind
-
class order
Headwind is a nice addon for VS Code to sort classes automatically and warn you when using conflicting classes: https://github.com/heybourn/headwind
-
Cleaner CSS in your component templates with Tailwind and Headwind
The one I'm using is Headwind which defines itself as:
-
Tailwind CSS class sorter – the custom way
Headwind is a nice opinionated sorter which probably can be tweaked to understand our Slim templates but as a VS Code plugin it only works inside this particular IDE. We mostly use JetBrains RubyMine in our team and also needed a CLI version.
-
How to keep Tailwind DRY
If you are worried about property sort order (Tailwind is much more readable if you are) then you can use another tool to deal with that for you: Headwind. This VS Code extension will format your Tailwind classes on save and group them by their function, making sure everything is where you expect it.
-
Automatically sorting your Tailwind CSS class names
Headwind - a VS Code extension that sorts your CSS classes on save
-
Why Tailwind? A long term user perspective
I can suggest taking a look at Tailwind CSS Best Practice Patterns and Robin Malfait's Good Example to get an idea of how that would look like. For consistency, I can also recommend having a convention for class ordering or using headwind as an opinionated class sorter.
-
TailwindCSS JIT with Arbitrary Values
There's Headwind CSS, which orders classes predictably. But it doesn't move them to separate lines. This could be a config option if you're willing to write a pull request.
https://github.com/heybourn/headwind
- How do you order class names in the markup?
What are some alternatives?
When comparing tailwind-sorter and headwind you can also consider the following projects:
modern-rails-flash-messages - Modern Rails flash messages - Example App
Tailwind CSS - A utility-first CSS framework for rapid UI development.