Why Vercel is not reading the styles correctly?
Answered
kyzo posted this in #help-forum
kyzoOP
Hi everyone! I used NextJS & Tailwind to build a really quick and simple website.
After deploying it to Vercel it turned out the styles are not correctly applied.
Take a look at the screenshot - left side is my "npm run start" version. Right side is thing build by Vercel.
What am I doing wrong?
K.
After deploying it to Vercel it turned out the styles are not correctly applied.
Take a look at the screenshot - left side is my "npm run start" version. Right side is thing build by Vercel.
What am I doing wrong?
K.
Answered by Youssef
Ensure that you added all of your paths that use tailwind classes
4 Replies
You might not configure
content
in tailwind configuration wellEnsure that you added all of your paths that use tailwind classes
Answer
kyzoOP
Aahh, thank you @Youssef ++
I named my folder "Components" instead of "components". Didn't know that makes any difference.
I named my folder "Components" instead of "components". Didn't know that makes any difference.
oh yeah on vercel the file/folder names are case sensitive, so
components
and Components
are different