Next.js Discord

Discord Forum

TailwindCSS not working

Answered
aa55h posted this in #help-forum
Open in Discord
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 aa55h
damn the issue was that my middlewre was blocking static components :P
View full answer

2 Replies

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