79557595

Date: 2025-04-05 22:44:42
Score: 1
Natty:
Report link

You're very close to getting Tailwind working. The issue you're seeing (Unknown at rule @tailwind) is just a warning from your editor, not an actual error. To fix everything, make sure you create a tailwind.config.js file by running

npx tailwindcss init

and update the content field to include your index.html (e.g. content: ["./index.html"]). Also, ensure you're linking the compiled output.css in your HTML file like this: . Lastly, install the Tailwind CSS IntelliSense extension in VS Code to get rid of those warnings and enjoy autocomplete support. Everything else you’ve done looks fine!

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @tailwind
  • Low reputation (1):
Posted by: Moses Samuel