-
What version of Tailwind CSS are you using? tailwindcss@4.1.8 What build tool (or framework if it abstracts the build tool) are you using? postcss@8.5.4 , vite@4.5.14 What version of Node.js are you using? v22.14.0 What browser are you using? What operating system are you using? Windows 11 Reproduction URL A Tailwind Play link or public GitHub repo that includes a minimal reproduction of the bug. Please do not link to your actual project, what we need instead is a minimal reproduction in a fresh project without any unnecessary code. This means it doesn't matter if your real project is private/confidential, since we want a link to a separate, isolated reproduction anyways. A reproduction is required when filing an issue — any issue opened without a reproduction will be closed and you'll be asked to create a new issue that includes a reproduction. We're a small team and we can't keep up with the volume of issues we receive if we need to reproduce each issue from scratch ourselves. Describe your issue When using Tailwind CSS with Vite and React, all utility classes work correctly except for color-related classes. For example, classes like I’ve verified that the CSS file is being loaded correctly, the PostCSS setup is working, and Tailwind classes are present in the compiled output. The only issue is that color classes do not apply. Is this a known issue or am I missing a specific configuration for color support? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Consider checking your browsers meet the supported browsers. Otherwise, please provide a git repo that reproduces the unexpected behavior. |
Beta Was this translation helpful? Give feedback.
-
Hi, Let me know if you need anything else 🙏 |
Beta Was this translation helpful? Give feedback.
-
After renaming vite.config.js to vite.config.mjs , Tailwind started working correctly. |
Beta Was this translation helpful? Give feedback.
After renaming vite.config.js to vite.config.mjs , Tailwind started working correctly.