Replies: 4 comments 1 reply
-
Hey @tslocke! Play CDN sounds like a good solution for your case. It runs the Tailwind in the browser and doesn't require an additional build step. |
Beta Was this translation helpful? Give feedback.
-
Ahh interesting. Thanks : ) However I think I need a bit more control than that - something with an API like class-names in, css out. I guess, like play.tailwindcss.com it's not open source? |
Beta Was this translation helpful? Give feedback.
-
Someone know if there is a way to run tailwind against a string that contains html in the browser ?? This is what i tried without success:
Anyone done this with success and can share it ? |
Beta Was this translation helpful? Give feedback.
-
Have a look at @mhsdesign/jit-browser-tailwindcss |
Beta Was this translation helpful? Give feedback.
-
I'm creating a page builder that supports Tailwind. To avoid lag I try to do everything in-browser. I was able to get it working with tailwind 3.1 but had to resort to some hacks. Upgrading to new versions is a pain.
Was hoping there's an official way to do this.
It must be possible because play.tailwindcss.com doesn't make any network calls, but I believe the code is no longer open source.
I think the jit may be part implemented in Rust now? Still possible to run client side thanks to web assembly, but getting complicated!
Any advice appreciated : )
Beta Was this translation helpful? Give feedback.
All reactions