Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat: Minor changes to be compatible with tailwind4.#416

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
lacrioque wants to merge4 commits intovueform:main
base:main
Choose a base branch
Loading
fromlacrioque:main#tw4

Conversation

lacrioque
Copy link

@lacrioquelacrioque commentedMar 14, 2025
edited
Loading

🔗 Linked issue

Not in an issue but in a discussion ->#392

❓ Type of change

  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • 👌 Enhancement (improving an existing functionality like performance)
  • ✨ New feature (a non-breaking change that adds functionality)
  • 🧹 Chore (updates to the build process or auxiliary tools and libraries)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

📚 Description

Files added:

  • tailwind.v4.js

Issues found:

  • corePlugins is neither set nor available anymore
  • utilities must begin with a lowercase letter in tw4 and cannot contain arbitrary selectors like [body]
  • thee (escape) in the plugin creator was removed

Issues fixed:

  • just always assume preflight
  • changed the utility classes beginning with a- toreduce-by- instead
  • removed some unused utilities.
    • An extensive search in build files as well as source files did not result in any entries except in the tailwind generation file.
    • I will still mark this as breaking, just in case.
  • shimmed thee method for now and added a TODO.
    • Thee method is dependent on postcss and since tailwind has removed the dependency the root method (postcss-selector-parser) is not available in the tailwind code itself. It would be possible to shim the dependency, but i would not recommend it.

How to use

To use this in an actual project you would need to import it into the main.[s]css as such:

@import"tailwindcss";@plugin"@vueform/vueform/tailwind.v4.js";@source"../node_modules/@vueform/vueform";.your_custom_css {display: block;}

Afterthought

This is a short term compatibility solution as no one knows how long legacy plugins will be supported.
For a long-term solution it would be better to create a tw4 compatible css file with the new syntax.

I am available for that, but it will take a bit more time.

📝 Checklist

  • I have linked an issue or discussion.

Files added:- tailwind.v4.jsIssues found:- corePlugins is neither set nor available anymore- utilities must begin with a lowercase letter in tw4- the `e` (escape) in the plugin creator was removedIssues fixed:- just always assume preflight- changed the utility classes beginning with a `-` to `reduce-by-` instead- shimmed the `e` method for now and added a TODO
@dkovach
Copy link

Thanks Markus for your efforts here, I am going to see about testing it out over the weekend.

lacrioque reacted with thumbs up emoji

@lacrioque
Copy link
Author

Take your time, I will probably do a followup somewhere in April with the new way for a plugin in full css.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@lacrioque@dkovach

[8]ページ先頭

©2009-2025 Movatter.jp