Can anyone please guide why tailwindcss isn't applying styles in this react codesandbox?
https://codesandbox.io/p/devbox/runtime-pine-78z6th?file=%2Fsrc%2Fstyles.css. I installed tailwind through "dependencies" section and then added following code to styles.css file:
@tailwind base;
@tailwind components;
@tailwind utilities;
It seems like you did not follow all the steps to integrate Tailwind CSS into your Vite React project. As per the documentation:
postcss.config.jsandtailwind.config.jsfiles:src/App.jsxto thecontentfile globs array intailwind.config.js:bg-blueused inApp.jsxwould not resolve to a Tailwind class name with the default configuration, so I modified the Tailwind configuration to includeblueas a color:See Tailwind working with the above steps undertaken in this forked CodeSandbox.