NuxtN
Nuxt10mo ago
20 replies
Pablo

How to use Tailwind with Nuxt UI v2.20

I have this weird issue where I cannot use Tailwind classes in some places, but in others I can. Many elements in my app are UCards and within it I use many tailwind classes to control widths and colors just fine. But, in other places, such as a simple About page with only <divs> (which lives within a UContainer), Tailwind classes do not seem to apply.

Do I need to install Tailwind in addition to Nuxt UI in order to use it outside of those UI components like UCard?
Was this page helpful?