[v4] How to add plugins? #13292
-
How do you add the official plugins with no config file in v4? |
Beta Was this translation helpful? Give feedback.
Replies: 10 comments 21 replies
-
My bad, I've missed the note saying it isn't available yet in v4 in the roadmap section. I hope this gets added soon!
|
Beta Was this translation helpful? Give feedback.
-
Just a bump post. How's it looking at the plugin department? :) Any news? |
Beta Was this translation helpful? Give feedback.
-
Reading the CHANGELOG it seems that plugins will be added using a new css directive |
Beta Was this translation helpful? Give feedback.
-
Looking at the CHANGELOG, I'm guessing the @plugin directive has been implemented since Does the How do we implement it? I tried Currently on |
Beta Was this translation helpful? Give feedback.
-
Thank you philipp! Adding the --force flag worked! Glad to see it being fixed. |
Beta Was this translation helpful? Give feedback.
-
What about packages with multiple plugin functions that I may need to use only one of them. |
Beta Was this translation helpful? Give feedback.
-
@plugin 'tailwindcss-animate'; When I include plugins, I receive a warning: Unknown at rule @plugin css(unknownAtRules) But I am able to use them. |
Beta Was this translation helpful? Give feedback.
-
how to install rippleui(https://www.ripple-ui.com/docs/get-started/installation) plugin in tailwind 4.0 |
Beta Was this translation helpful? Give feedback.
-
Hello Everyone, what about custom plugins that declare a new variant? Im trying to update the following code: module.exports = {
plugins: [
plugin(function({ addVariant }) {
addVariant('slider-thumb', ['&::-webkit-slider-thumb', '&::slider-thumb', '&::-moz-range-thumb']);
addVariant('slider-track', ['&::-webkit-slider-runnable-track', '&::-moz-range-track']);
}),
],
} How do we do this in v4.0? Thanks. |
Beta Was this translation helpful? Give feedback.
-
@adamwathan i found this createPlugin and exported legacy types, but cannot find how plugins can be created on v4 anymore. The syntax i was adopting on v3 was:
Could you shed some light on the issue? Will this never work in v4 or is implementation different? |
Beta Was this translation helpful? Give feedback.
Should be “@tailwindcss/forms” 👍🏻 don’t forget the “@“ sign!