Please Maintain Long-Term Support for JavaScript/TypeScript Configuration in Tailwind CSS #15375
Replies: 1 comment
-
I'm here to continue this discussion as I've noticed a knock on effect of this that may possibly eliminate the ability for me to use this at work. In the previous tailwind version, I could pass the raw html into the postcss plugin like so:
But now in the new version, there is no way to configure this functionality. This is a huge issue for us, and I imagine many others. Without the js based configuration, I am unable to use the postcss plugin for this, as it has now removed the option to pass in raw html, opting only to allow you to pass in a base path. This is problematic for me, as the use case for tailwind for me was to generate classes on the fly as a part of a render pipeline. With the new change we would need to write these files to disk, pass that file location into the postcss plugin, delete the file and then return its contents. This is far too inefficient, and possibly error prone. I imagine other tools may also have relied on this functionality, so I worry for how this may affect them. |
Beta Was this translation helpful? Give feedback.
-
Description
First off, I want to thank the team for their incredible work on Tailwind CSS. It's been a game-changer for developers and has made styling in modern web development an absolute pleasure. I'm excited to see the new CSS-first configuration option in Tailwind CSS v4.0. It seems like a great addition for projects that value simplicity and minimal setup. However, I have significant concerns about the potential deprecation of JavaScript/TypeScript (JS/TS) configuration in future versions.
While I understand that JS/TS configuration will still be supported in v4.0 through the
@config
directive, the use of the term "legacy" in reference to JS configuration is worrisome. "Legacy" often implies that the feature is deprecated or will be phased out in the future. For many developers, JS/TS configuration is a critical and irreplaceable feature due to its flexibility, type safety, and the ability to leverage the full power of JavaScript for dynamic configuration.Key Points
Suggestions
Thank you for taking the time to consider this feedback. I believe that maintaining long-term support for JS/TS configuration will ensure that Tailwind CSS continues to serve the needs of developers across the entire spectrum of project complexity.
Beta Was this translation helpful? Give feedback.
All reactions