headwind icon indicating copy to clipboard operation
headwind copied to clipboard

Support to Tailwind Styled Components

Open esserweb opened this issue 2 years ago • 3 comments

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!

esserweb avatar Nov 08 '21 02:11 esserweb

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

hacknug avatar Nov 15 '21 12:11 hacknug

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

ben-sellar avatar Dec 10 '21 16:12 ben-sellar

Same here - my regex skills aren't great!

mattots avatar Dec 21 '21 11:12 mattots