Skip to content

Update tailwindcss w/ npm auto-update #1996

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Eunknight
Copy link

@MattIPv4 MattIPv4 changed the title Update tailwindcss.json Update tailwindcss w/ npm auto-upadte May 4, 2025
@MattIPv4 MattIPv4 changed the title Update tailwindcss w/ npm auto-upadte Update tailwindcss w/ npm auto-update May 4, 2025
Copy link
Member

@MattIPv4 MattIPv4 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👋 Looking at Tailwind v3, the lib directory contains a bunch of Node.js logic for JIT compilation of Tailwind -- there is no standalone CSS file from what I can tell.

What is the intended usecase for this on cdnjs, given that won't work in a browser?

Similarly, in Tailwind v4, the dist directory contains a bunch of Node.js logic, which raises the same problem/question.

@Eunknight
Copy link
Author

Eunknight commented May 6, 2025

👋 Looking at Tailwind v3, the lib directory contains a bunch of Node.js logic for JIT compilation of Tailwind -- there is no standalone CSS file from what I can tell.

What is the intended usecase for this on cdnjs, given that won't work in a browser?

Similarly, in Tailwind v4, the dist directory contains a bunch of Node.js logic, which raises the same problem/question.

It works fine in browser.
Please refer to
https://tailwindcss.com/docs/installation/play-cdn
https://cdn.jsdelivr.net/npm/@tailwindcss/browser@4

Additional Notes:
claude can only load cdnjs script, not other scripts.

If claude can load cdnjs tailwindcss@4 smoothly.
claude can output complete html + css + js front-end code page based on tailwindcss@4.
It can also output various "effects" and "cards" based on tailwindcss@4 html + css.

The tailwindcss@4 code is more concise and unified, which is better for AI output style than traditional css style.

Also at the moment, claude can only load tailwindcss@2 code, so the code it outputs is also based on the old tailwindcss@2 code.

@MattIPv4
Copy link
Member

MattIPv4 commented May 6, 2025

The docs + package you've linked to, @tailwindcss/browser, are not what you're adding/updating in this pull request...?

@Eunknight
Copy link
Author

The docs + package you've linked to, @tailwindcss/browser, are not what you're adding/updating in this pull request...?

!!!!!!! 😮
Sorry, I didn't see that there was a @tailwindcss/browser before, I thought it was just a redirect for taiwlindcss.
Yes, it's @tailwindcss/browser that I actually want.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants