-
|
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: 4 comments 17 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.
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.