Is there anyway tailwind css can be used with WeWeb?

Just started using WeWeb and wondering if there is a way tailwind css can be used directly with WeWeb. Is that possible?

Should be doable with the tailwind CDN dev mode because you can inject the script and use the classes on element.

Capture d’écran 2023-06-29 à 14.50.26

But with the incoming new class system someone motivated should be able to recreate every tailwind tokens inside weweb and it will offer a far better developer experience. :slight_smile:

When is the new class system expected to be available.?

We plan to release it Tuesday :crossed_fingers:

3 Likes

It works great but not worked in editor just in published website.
Any plan to integrate it natively ?

You can load it differently to make it works both in the published app and the editor

Add a workflow on app load

const script = wwLib.getFrontDocument().createElement('script');
script.src = 'https://cdn.tailwindcss.com';
wwLib.getFrontDocument().body.appendChild(script);

We have no plan to add it natively for now.