Next.js Discord

Discord Forum

TailwindCSS not working

Answered
Clumber Spaniel posted this in #help-forum
Open in Discord
Clumber SpanielOP
Hi, I just started my project and Tailwind doesn't work in my webapp. I use turbopack, shadcn(no components) & instrumentation.ts(if its relevant), any idea why it couldnt be working?i do have
@import "tailwindcss";
@import "tw-animate-css";

in my globals.css which is then imported in root layout, i just cant apply any colors i.e. bg-red-500 in my pages
Answered by Clumber Spaniel
damn the issue was that my middlewre was blocking static components :P
View full answer

2 Replies

Clumber SpanielOP
(the styles are applied when seen through devtools but computed page doesnt have any styles)
Clumber SpanielOP
damn the issue was that my middlewre was blocking static components :P
Answer