I am working with Tailwind CSS in a Nextjs project. I have tried a simple heading but styles are not being applied.
Here is my full code on GitHub: https://github.com/mennaElbadry70/TailwindCss_practice
tailwind.config.ts
file but the paths should be correct.@tailwind base
, @tailwind components
and @tailwind utilities
.You have a tailwind.config.js
file which Tailwind will prioritize and use. This means your tailwind.config.ts
is ignored. Consider either:
tailwind.config.js
file so that Tailwind uses the tailwind.config.ts
filetailwind.config.ts
to the tailwind.config.js
file and then deleting the tailwind.config.ts
file.