tailwind config file has been removed in v4 ?? #17168
Replies: 4 comments 4 replies
-
Config is done in the CSS file. Consider checking the documentation website for details. |
Beta Was this translation helpful? Give feedback.
-
I also just switched to v4 and instantly ran into a problem. When i start a new project, I create few custom breakpoints depending on design requirements in tailwind.config.ts for example
and use it like
This used to work flawlessly but now in the new version when i create same custom breakpoints in CSS file like
and use it the same way like
It won't work unless i add !important rule like
So if anyone know of any solution please let me know, for now i'll switch back to v3. |
Beta Was this translation helpful? Give feedback.
-
What about plugins? Let's say I want to add forms plugin. And I use npx @tailwindcss/cli. How can I do that and ensure its integration? |
Beta Was this translation helpful? Give feedback.
-
If your project still needs a traditional config file, don't worry. Tailwind hasn't removed support for it entirely. You can manually create tailwind.config.js and link it in your CSS file like this:
The corePlugins, safelist, and separator options from the JavaScript-based config are not supported in v4.0. https://javascript.plainenglish.io/no-tailwind-config-js-in-tailwind-css-v4-heres-what-changed-97bb277eeacd |
Beta Was this translation helpful? Give feedback.
-
i have freshly installed next file and dont see the tailwind config file also even if i ran the command for init it didnt do .
found that init command is no longer in v4 . so how we will use the custome classes if i have to bind in that ?
Beta Was this translation helpful? Give feedback.
All reactions