I'm setting up a project using Laravel v10 (w/ Vite/Laravel Breeze) and when I use the Lara preset + root styles + tailwind color extensions, styles for things like Buttons that rely on the "surface" color sets are not being rendered. I assume because of JIT removing the styles that aren't being used directly in Vue templates.
Result: Button styles are applied except for the colors that call out surface.
I'm struggling to figure out a solution that doesn't involve adding each iteration of the class into a template. Though I would imagine it might be possible to have tailwind.config.js need an additional place to scan for used classes in JIT:
I'm setting up a project using Laravel v10 (w/ Vite/Laravel Breeze) and when I use the Lara preset + root styles + tailwind color extensions, styles for things like Buttons that rely on the "surface" color sets are not being rendered. I assume because of JIT removing the styles that aren't being used directly in Vue templates.
Steps to reproduce:
/resources/js/presets/lara
resources/css/app.css
/tailwind.config.js
import Lara from "@/presets/lara";
+.use(PrimeVue, { unstyled: true, pt: Lara })
config toresources/js/app.js
Result: Button styles are applied except for the colors that call out surface.
I'm struggling to figure out a solution that doesn't involve adding each iteration of the class into a template. Though I would imagine it might be possible to have
tailwind.config.js
need an additional place to scan for used classes in JIT:Any ideas how to solve this?
Update: Also noticed this happening for simpler classes like
bottom-[20px]
andright-[20px]
when using things like the ScrollTop component.