How to integrate tailwindcss with Ionic React?

It seems like it’s impossible to configure tailwind css with Ionic React since it uses Craco, does anyone have a solution?

p.s. from previous research, people have linked to the project with NextJS, that doesn’t work for me and it says it’s not production ready so I’d rather use Create React App + Ionic

Hi @mike2, what about that sample project doesn’t work for you? That’s the approach I would recommend. GitHub - mlynch/nextjs-tailwind-ionic-capacitor-starter: A starting point for building an iOS, Android, and Progressive Web App with Tailwind CSS, React w/ Next.js, Ionic Framework, and Capacitor

Hi Max
I am using your awesome project.
But when I try to use TailwindCss like (bg-[url(…)] it doesn’t work.

This took a lot of my time to figure out how to do this integration, so I wrote an article on how to do this, you can find the article here.