Nuxt 4 Layer (ui package) and TailwindCSS v4
I am creating a nuxt v4 monorepo template to help people getting started: https://github.com/Psycarlo/nuxt-supabase-monorepo-boilerplate
It's a monorepo with
I want to use
Trying to setup these, I encountered a roadblock. (I used this article as reference: https://medium.com/@davvii/nuxt-layers-shadcn-vue-with-tailwind-v4-58a57bf63cd0)
The Problem
I install
I also extended the
The shadcn components work and appear with styles on the
Do I really need to install
If not, what am I missing?
Config file
Tailwind.css File
Note: Adding
It's a monorepo with
apps and packages.I want to use
tailwindcss v4 and shadcn-vue.Trying to setup these, I encountered a roadblock. (I used this article as reference: https://medium.com/@davvii/nuxt-layers-shadcn-vue-with-tailwind-v4-58a57bf63cd0)
The Problem
I install
tailwindcss and @tailwindcss/vite in the ui package.I also extended the
ui package in apps/www.The shadcn components work and appear with styles on the
apps/www, but when I try to add tailwind styles on apps/www it does not work:Do I really need to install
tailwindcss and @tailwindcss/vite again in apps/www? If yes, why since I am extending ui package: extends: ['@nuxt-supabase-monorepo-boilerplate/ui']If not, what am I missing?
Config file
Tailwind.css File
Note: Adding
@source "../../../../../apps/"; to my tailwind.css file kinda works, but maybe not the ideal solution.