DEV Community

Osman Forhad
Osman Forhad

Posted on

How to Solve tailwind css configuration not found

Recently i have been working in a React js project where also include vite and shadcn/ui
and once i go to setup my project with shadcn-ui and i just enterd npx shadcn@latest init command into my terminal.
after a few seconds its show me an warring like bellow:
tailwind css configuration not found

and then i thought what was the problem and looking for solution.
after a few times i understand, i have to declare in my global css file, that i am going to use talwind.
and then i go to my react project and then src folder and open index.css file.
and now in the top of the index.css file i imported this three library:
@tailwind base;
@tailwind components;
@tailwind utilities;

and then again entered npx shadcn@latest init command. now it successfully installed.

Note: i have so many times to try upload error and solutions screenshot, but i am not sure why devto blog can't enable to upload my images.

Thank you
Happy Coding
.
osman forhad
Full-Stack Developerđź’» (Mobile App & Web App)
developer.osmanforhad@gmail.com

AWS Q Developer image

Your AI Code Assistant

Generate and update README files, create data-flow diagrams, and keep your project fully documented. Built to handle large projects, Amazon Q Developer works alongside you from idea to production code.

Get started free in your IDE

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

đź‘‹ Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay