I had an issue – tailwind styles were applied only after:
.next foldernpm run dev afterAfter some hours of debugging I find out that the problem is next.config.
For who is using TS, must use next.config.ts not next.config.ts or next.config.mjs.