I'm trying to configure Hero UI (or any component library) with the latest versions of Tailwind CSS and Next.js. However, I'm facing issues because there's no tailwind.config.js file in my project, and I'm unsure how to proceed with the configuration.
Here are the details:
Versions:
Next.js: 14.x
Tailwind CSS: 3.x
Hero UI: latest
Issue:
After installing Tailwind CSS using the official guide, I don't see a tailwind.config.js file in my project.
I need to customize Tailwind to work with Hero UI components, but I'm unable to do so without the config file.
Steps I've Taken:
Installed Tailwind CSS using the following command:
npm install -D tailwindcss postcss autoprefixer
npx tailwindcss init
Added the following to my postcss.config.js:
module.exports = {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
}
Added the following to my globals.css
@tailwind base;
@tailwind components;
@tailwind utilities;
Expected Behavior:
A tailwind.config.js file should be generated automatically, allowing me to customize Tailwind for Hero UI.
Actual Behavior:
No tailwind.config.js file is created, and I'm unable to configure Tailwind for Hero UI.
Additional Information:
I'm using the latest versions of Next.js and Tailwind CSS.
I've tried manually creating a tailwind.config.js file, but I'm unsure of the correct configuration for Hero UI.
Could someone please guide me on how to resolve this issue? Thank you!