How to Configure Tailwind CSS v4 in an ASP.NET MVC Project? #17309
Unanswered
furqanahmad03
asked this question in
Help
Replies: 1 comment
-
So we can try to transpose your steps for v4:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm working on setting up Tailwind CSS in an ASP.NET MVC project, and previously, with Tailwind v3, the process involved initializing a
tailwind.config.js
file and specifying the CSS output location. The setup followed these steps:tailwind.config.js
to include Razor pages:site.css
inwwwroot/css
:.csproj
file to ensure the CSS is built before deployment:_Layout.cshtml
:This is working properly for v3 ( as I configured it for version 3.4.1 ). However, in Tailwind CSS v4, the traditional config file (
tailwind.config.js
) is no longer generated by default, and there's no CSS (tailwindcss) file in the.bin
folder. This changes how Tailwind is configured and built in the project.Issue
With these changes in Tailwind CSS v4, I'm unsure about the correct approach to:
Question
What is the recommended way to integrate Tailwind CSS v4 with an ASP.NET MVC project? Are there any official or community-supported best practices for this setup?
Any guidance or updated documentation would be highly appreciated. Thank you!
Beta Was this translation helpful? Give feedback.
All reactions