heybourn / headwind

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

Support Windi CSS compiler #115

Closed ThaddeusJiang closed 3 years ago

ThaddeusJiang commented 3 years ago

Hello !

There's another implementation of TailwindCSS called windicss, that offer many advantages for some use cases like mine.

I wondered if it could be supported, thank you very much.

Async0x42 commented 3 years ago

It seems like this would just require:

    "activationEvents": [
        "workspaceContains:**/tailwind.config.js",
        "onCommand:headwind.sortTailwindClasses",
        "onCommand:headwind.sortTailwindClassesOnWorkspace"
    ],

to include windi.config.js/ts

praveenperera commented 3 years ago

We aren't going to support WindiCSS. They removed all references to TailwindCSS from their repo.

Currently they use all the same classes but that might change in the future.

They can of course fork this and make it work for them.

kansson commented 3 years ago

This can be accomplished by using windicss.sortOnSave setting.