Next.js Discord

Discord Forum

Next.js does not respect tailwindcss theme(static)

Answered
Nobody posted this in #help-forum
Open in Discord
for some reason next.js always tries to generate all variables wheter it is used or not
@import "tailwindcss" theme(static);

i checked compiled css inside .next folder and each time it contains all variables
normally theme(static) indicates tailwindcss to use all variables and include to compiled css but when i discard that still result is same
Answered by Nobody
sorry. my project is massive so literally uses all variables :))))
View full answer

2 Replies

sorry. my project is massive so literally uses all variables :))))
Answer
i tried to mark solution but returns this error
❌ Error! This type of message is not supported. Make sure the author isn't a bot and the post is indexed