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 to Tailwind Styled Components #174

Open esserweb opened 3 years ago

esserweb commented 3 years ago

Hi there guys, thanks for your great job!

Please, can you explain how can we add support to Tailwind Styled Components?

For example: const Block = tw.divp-20 bg-gray-100 text-3xl;

That kind of classes are not detected by default.

Thank you!

hacknug commented 3 years ago

You should be able to add a custom regex using headwind.classRegex: https://github.com/heybourn/headwind#headwindclassregex

ben-sellar commented 2 years ago

Has anyone done a custom regex yet? I'm failing!

mattots commented 2 years ago

Same here - my regex skills aren't great!