-
|
Congratulations on getting v4 out! I am missing documentation for creating third party plugins in the docs (v3: https://v3.tailwindcss.com/docs/plugins). Is this not supported anymore? |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 18 replies
-
|
You should be able to do most things in a CSS file now, with new at-rules like |
Beta Was this translation helpful? Give feedback.
-
|
I see the container queries have been pulled in to the main codebase. What is the status of the other 3 (typography, forms, and aspect-ratio). Should those still be pulled in via the |
Beta Was this translation helpful? Give feedback.
-
|
Plugins could definitely use better documentation in v4, if only to say explicitly that they are being replaced by the As some examples, I noticed that daisyui and iconify plugins are still using this "legacy" method, and while i haven't done extensive work developing tw plugins, I have a hard time seeing how these plugins could be reimplemented using just |
Beta Was this translation helpful? Give feedback.
-
|
When v4 first came out, I found the lack of good plugin docs an annoying oversight, but forgivable given the otherwise awesome evolution of the framework - but it's now been out for 9 months, so I'm beginning to find it a bit more concerning. Does the team intend to support plugins as a first-class feature, or are they just an afterthought that covers a few trivial non-core cases but not much else? Are js (so called "legacy") plugins going to be deprecated at some point? If so, will there be another way to do everything they do? Currently it's anyone's best guess. v3 had a full page documenting how to do various things via a plugin. v4 has only a small section on adding custom utilities, and a note that the Some of the questions that need answering in the docs are:
@philipp-spiess perhaps you could weigh in here? not necessarily to provide answers to all these questions, which I realize you might not have, but at least to update the community and then prioritize a docs update with the team. |
Beta Was this translation helpful? Give feedback.
-
|
Hi @rozsazoltan, thanks for the thoughtful and detailed response. Unfortunately, I think most of it doesn’t really get to the bottom of my concerns, as it falls into “I don’t know your use case” (fair enough, and I’ll try to outline more details below, but not really an answer), or stems from (in my view) an unhelpful high-level view of what plugins should be. At a high level, I think the problem with the status quo starts with how we think of what plugins are, and I think even the way I posed my question earlier was misguided and stems from this current confusion. I shouldn’t have asked “what is a tailwind v4 plugin”, as I think the problem is that I already have an idea of what it should be - in most ecosystems a plugin is something like
Plugins, as such, are often used for one-off projects or org-specific needs, but also for common use cases, and therefore benefit from being easily shareable via package registries. When I asked “What is a Tailwind v4 plugin?….” I wasn’t asking about the To summarize, my true concerns are
|
Beta Was this translation helpful? Give feedback.
-
|
Now, to summarize some of those features that seem unclear/lacking to me, and for which you questioned why I'd need them. Base styles: Overriding utilities: Disabling utilities: |
Beta Was this translation helpful? Give feedback.
You should be able to do most things in a CSS file now, with new at-rules like
@utility,@custom-variant, etc. For existing v3 plugins, you can include them via the@pluginat-rule.