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 46 forks source link

Support for breakpoints grouping #142

Open chenjau opened 3 years ago

chenjau commented 3 years ago

current behavior: div class='md:h-21 md:w1/2 fixed top-0 z-10 flex-shrink-0 w-full h-16' expect: div class='fixed top-0 z-10 flex-shrink-0 w-full md:w1/2 h-16 md:h-21'


I think the problem is these classes don't exist in sort order list, and adding these numerous classes to config is impossible.


Maybe we can just ignore breakpoint prefixes, md:h-21 == h-21 for example?

fransyrcc commented 2 years ago

Hello, It would be awesome if support for breakpoints is added.
In my case it's important to be able to read the classes in a mobile first order. maybe sorting breakpoints by the order in screens in tailwind configuration?