Adding Extend with Tailwind.config.ts
Answered
Channel catfish posted this in #help-forum
Channel catfishOP
IDK if something changed or if I'm doing it wrong but the tailwind.config.ts isn't working on my project.
I do it as I always do on my old projects but it doesn't works.
I haven't changed the initial next config. I didn't add nothing on next.config.
I do it as I always do on my old projects but it doesn't works.
I haven't changed the initial next config. I didn't add nothing on next.config.
Answered by Asian black bear
In v4 the
tailwind.config.ts
file was deprecated. You no longer configure it using this and instead via CSS files.5 Replies
Asian black bear
Which version of Tailwind do you use? v3 or v4?
@Asian black bear Which version of Tailwind do you use? v3 or v4?
Channel catfishOP
I forget to add package, sorry haha
Asian black bear
In v4 the
tailwind.config.ts
file was deprecated. You no longer configure it using this and instead via CSS files.Answer
@Asian black bear In v4 the `tailwind.config.ts` file was deprecated. You no longer configure it using this and instead via CSS files.
Channel catfishOP
Ohh, thank you. I'll try it.
Channel catfishOP
It works! Thank you.
I followed this: https://tailwindcss.com/docs/adding-custom-styles
and this: https://tailwindcss.com/docs/theme
if someone in future need it.
I followed this: https://tailwindcss.com/docs/adding-custom-styles
and this: https://tailwindcss.com/docs/theme
if someone in future need it.