heybourn / headwind

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

Tailwindcss 3.0 Class Support #177

Open tance77 opened 2 years ago

tance77 commented 2 years ago

As always the order of the class sorting is taken from the documentation on the tailwindcss website from top to bottom.

At a glance I noticed that tailwindcss 3.0 removed classes such as border opacity and placeholder color. Some of the classes just have been renamed. See the upgrade guide for a full list of changes.

That being said these new updated classes wont have some of the old classes 2.0 has. Which would result of the classes being pushed to the end of the class list. I'm not sure how the author would like to proceed.

tance77 commented 2 years ago

I'm also not sure what the test it('should remove not delete duplicate classes when flag is set') is trying to test because the test description didn't make sense to me. If anyone could help with that test that would be greatly appreciated.

tance77 commented 2 years ago

it('should remove not delete duplicate classes when flag is set')

I think I figured out what was actually meant by this test and renamed the double negative to make the sentence more understandable

HelloAlexPan commented 2 years ago

This plugin does not seem to be maintained. Does anyone want to make a fork with this PR?

tance77 commented 2 years ago

This plugin does not seem to be maintained. Does anyone want to make a fork with this PR?

@HelloAlexPan It might be best to just switch to this. It just came out. https://tailwindcss.com/blog/automatic-class-sorting-with-prettier

tance77 commented 1 month ago

Looks like someone made an active fork here https://github.com/guidomodarelli/sortwind