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!