Changes in writing plugins with TailwindCSS 4? #15829
Replies: 4 comments 2 replies
-
It's not really possible to create custom functions like |
Beta Was this translation helpful? Give feedback.
-
I'm also looking for a @Custom-function functionality to go from v3 to v4. It's now holding us back to upgrade to the newest version. For example looking for something like Or is it possible in a different kind of way now? |
Beta Was this translation helpful? Give feedback.
-
I'd like to share my use case: I'm developing a Tailwind plugin that automatically adjusts colors to ensure sufficient contrast. Currently, we have utility classes that apply these adjusted colors to backgrounds, text, borders, shadows, and outlines. However, sometimes you just need the returned values for other properties, so having custom functions would be really nice. |
Beta Was this translation helpful? Give feedback.
-
I have the same issue in V4, is there a way? In V3 it was possible in the tailwind.config.js:
|
Beta Was this translation helpful? Give feedback.
-
Thank you for releasing Tailwind CSS 4! You guys have done an amazing job 🔥
With the release of Tailwind CSS 4, have there been any changes to the way js plugins are written? In version 3, there was a dedicated page in the documentation for this topic, but I couldn't find a similar page for version 4.
Is It possible to create custom functions like
--alpha()
?Beta Was this translation helpful? Give feedback.
All reactions