monaco-tailwindcss icon indicating copy to clipboard operation
monaco-tailwindcss copied to clipboard

Support for v4

Open krstivoja opened this issue 1 year ago • 10 comments

Hey Hey love the project and i know its early since beta announced 2 days ago but wondering will you support v4 in the near future?

krstivoja avatar Nov 23 '24 08:11 krstivoja

I would love to support Tailwind v4, but it’s low on my priority list. Once Tailwind v4 is stable, I’ll gladly accept a PR.

remcohaszing avatar Nov 25 '24 09:11 remcohaszing

Great to hear that. Thanks for the reply!

krstivoja avatar Nov 25 '24 11:11 krstivoja

I would love to support Tailwind v4, but it’s low on my priority list. Once Tailwind v4 is stable, I’ll gladly accept a PR.

Tailwind v4 is stable. Feeling cute, might make a PR later, idk.

SelfMadeSystem avatar Jan 23 '25 12:01 SelfMadeSystem

TW4 is partly implemented in Rust, I believe? So a client-side implementation would need WebAssembly. Seems like it might be a lot of work to update this project.

tslocke avatar Jan 28 '25 09:01 tslocke

Only the file reading part of it is (oxide) and the minification (lightningcss). All the important is still raw JavaScript

SelfMadeSystem avatar Jan 28 '25 12:01 SelfMadeSystem

Also, I already reimplemented monaco-tailwindcss, but I had to start from scratch. I've given my source code to Haszing, but it's not production ready yet.

SelfMadeSystem avatar Jan 28 '25 13:01 SelfMadeSystem

@SelfMadeSystem Any progress on the rewrite or PR?

KutayGuler avatar Jul 26 '25 14:07 KutayGuler

@SelfMadeSystem Any progress on the rewrite or PR?

I completely reimplemented TailwindCSS integration in monaco for my project which you can find here: https://github.com/SelfMadeSystem/live-jsx-app/tree/main/src%2Ftailwind

If you feel like extracting the useful parts of it and making a PR, feel free. I'm already satisfied with what I did (make my live JSX app), but it's possible that https://uiverse.io/ might want me to make the PR to upgrade this package 👀. I've just contacted them again. We'll see what happens

SelfMadeSystem avatar Jul 26 '25 15:07 SelfMadeSystem

In Bardui.com/play v1, I manually added 8,764 custom classes 😅. I don’t know why I didn’t discover monaco-tailwindcss earlier. Huge thanks to the person who created this package and to everyone contributing to it. For https://bardui.com v2 coming soon, I’ve used monaco-tailwindcss, and it looks absolutely amazing.

Image

v2 🤔

Image

imran-baitham avatar Aug 19 '25 20:08 imran-baitham

I made #97 which completely rewrites everything. It's unfinished, but is a good start. if anyone wants to help with /(documentation|examples|cleaning up the API|testing)/, I'd be very happy.

SelfMadeSystem avatar Aug 20 '25 01:08 SelfMadeSystem