headwind icon indicating copy to clipboard operation
headwind copied to clipboard

Just-in-Time Mode Support

Open furey opened this issue 3 years ago • 9 comments

Hi!

Thanks for creating this awesome extension for VSCode!

Are there any plans to support Tailwind's new Just-in-Time "Arbitrary Value" classes (i.e. break-out classes created with square bracket notation)?

For example:

<img class="absolute w-[762px] h-[918px] top-[-325px] right-[62px]" src="/crazy-background-image.png">

Cheers!

🤓👍

furey avatar Apr 16 '21 08:04 furey

It feels like this would be the perfect time to implement class sorting based on the order that tailwind generates the CSS classes in

sam3d avatar May 07 '21 17:05 sam3d

@praveenperera any updates about the JIT mode support ?

BennaceurHichem avatar Aug 04 '21 13:08 BennaceurHichem

Any updates here? Thanks!

dtcooper avatar Sep 20 '21 06:09 dtcooper

Hey sorry everyone @heybourn hasn't released a new version in a while.

I think he is busy with a new project. Once he is back I can look into putting more work into this. Or maybe I'll fork this and create a new extension until he can get back and release new versions.

praveenperera avatar Sep 20 '21 14:09 praveenperera

An idea: any classname in the format foo-[something] breaks all sorting. What about treating these as "custom classes" and sending them to the front of the classlist?

Just a thought. Thanks for the help here!

dtcooper avatar Sep 28 '21 20:09 dtcooper

I thought changing the RegExp to match brackets would work, but I couldn't seem to get it working.

DerekLoop avatar Oct 01 '21 22:10 DerekLoop

I've changed over to eslint-plugin-tailwindcss which has full JIT mode support and it's brilliant!

sam3d avatar Oct 02 '21 07:10 sam3d

Thanks for the tip @sam3d, cheers!

DerekLoop avatar Oct 02 '21 20:10 DerekLoop

Thanks for the hot tip! @sam3d

dtcooper avatar Oct 02 '21 20:10 dtcooper