oscarmoore
1 month ago
112
4
General

CSS for Backend Devs: episode 7: can't get Tailwind hooked up

Posted 1 month ago by oscarmoore

In the video JW has:

@tailwind preflight;

@tailwind components;

@tailwind utilities;

in his app.css file which pulls in tailwind. He explains that he is not using a cdn and I see no hint of anything tailwind related in his html. I am not getting any styling from tailwind this way and am getting "Unknown at rule @tailwind" complaints in VS Code. I tried the method suggested at tailwindcss docs...npm install tailwindcss and then the code similar to above (exchange @tailwind base for @tailwind preflight). But still nothing.

I guess I could cdn it in but I am (obviously) very new to this stuff and trying to learn how to do it right.

Googling suggests there have been issues with VS Code versions not recognizing @tailwind directives but it looks like maybe that had been resolved, but maybe new issues?

Please sign in or create an account to participate in this conversation.