Skip to content
This repository was archived by the owner on May 16, 2026. It is now read-only.

feat: support tailwindcss v4 - #88

Merged
merrickluo merged 6 commits into
masterfrom
feat/support-tailwindcss-v4
Oct 5, 2025
Merged

merrickluo merged 6 commits into
masterfrom
feat/support-tailwindcss-v4

Conversation

@merrickluo

@merrickluo merrickluo commented Oct 5, 2025 •

Copy link
Copy Markdown
Owner

support tailwindcss v4 by checking if package version is >= 4 in package.json and skips config file check.

closes #80

@merrickluo
merrickluo force-pushed the feat/support-tailwindcss-v4 branch from 57dca50 to 6abe71b Compare October 5, 2025 13:54
@merrickluo
merrickluo merged commit 74ca839 into master Oct 5, 2025
17 of 18 checks passed
Comment thread lsp-tailwindcss.el
"Check if tailwindcss package VERSION is v4 or above.
Will try to lookup the version if not provided"
(when-let ((version (or version (lsp-tailwindcss--package-version))))
(string-match-p "^[~^]?\\([4-9]\\|[0-9]\\{2\\}\\)\\." version)))

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This line failed with:

(string-match-p "^[~^]?\\([4-9]\\|[0-9]\\{2\\}\\)\\." "^4")

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

oops, thanks for noticing, fixed in #89

@merrickluo
merrickluo deleted the feat/support-tailwindcss-v4 branch October 9, 2025 07:42
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support tailwind4

2 participants