Next.js Discord

Discord Forum

need help with tailwind css config.js file!

Answered
Havana posted this in #help-forum
Open in Discord
HavanaOP
I have just created a Next.js project with Tailwind CSS, but there is no custom tailwind.config.js file available. I tried to create one, but it's not working. I'm confused whether, in the latest Tailwind CSS, users can no longer create a tailwind.config.js file.

8 Replies

its tailwind v4
the file no longer exists
you configure it using global.css
Answer
HavanaOP
okay thanku
@Yi Lon Ma https://tailwindcss.com/blog/tailwindcss-v4#css-first-configuration
Palomino
im kind of confused as to how to use custom utility tailwind styles now that we have v4 so ive followed the installation of tailwind using docs and imported tailwind into the index.css file but im confused as to how we can have custom utilities now 😦
Palomino
thanks mate ill read this!