Next.js Discord

Discord Forum

After routing my styles in tailwind doesn't work

Answered
American black bear posted this in #help-forum
Open in Discord
American black bearOP
Question in a header
Answered by joulev
you need to configure tailwind for the pages directory as well, by making a pages/_app.tsx and importing the globals.css file there https://nextjs.org/docs/pages/building-your-application/styling/tailwind-css#importing-styles-1
View full answer

1 Reply

@American black bear Question in a header
you need to configure tailwind for the pages directory as well, by making a pages/_app.tsx and importing the globals.css file there https://nextjs.org/docs/pages/building-your-application/styling/tailwind-css#importing-styles-1
Answer