heybourn / headwind

An opinionated Tailwind CSS class sorter built for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=heybourn.headwind
MIT License
1.38k stars 45 forks source link

Seemingly Unmaintained, I have forked this and updated it to work in much the same way as the prettier plugin. #206

Open Trapfether opened 12 months ago

Trapfether commented 12 months ago

I found this repo as I was looking for a sorting solution that did not involve using prettier on my code base that predates prettier and uses a old format guide.

I was excited to try it out and quickly realized that is simply does not support much of what Tailwind now does. The last updates were long enough ago that even the default class names included as part of this extension are not correct anymore. Additionally, the methodology this extension was using of simply listing all the classes in a large list of their predefined order was insufficient for most codebases with tailwinds new features.

So I have forked this extension and updated it to work in pretty much the same way as the prettier extension, using the project's local tailwind installation and config to generate the proper sorting including all variants.

If you would like to try out the updated extension, it is here https://marketplace.visualstudio.com/items?itemName=Trapfether.tailwind-raw-reorder

brablc commented 10 months ago

At the moment does not seem to work: https://github.com/Trapfether/tailwind-raw-reorder/issues/4

Trapfether commented 10 months ago

The issue is being addressed over on the repo Trapfether/tailwind-raw-reorder#4

For those having an issue in the meantime, please make sure to include a tailwind config file at the base directory of your project.

wpsix commented 9 months ago

Trapfether

thank you so much!