F
Filamentβ€’8mo ago
LeChatSoeur

custom theme

Hello, when I create a custom theme (php artisan make:filament-theme) and configure my vite.js file along with my panelAdminProvider.php, all the CSS disappears from my dashboard. And when I add CSS, for it to be recognized, I have to run npm run build. I'm doing exactly as the documentation and numerous explanations on the internet suggest.I'm on Laravel 11. Could that be the cause? I've tried on my current project and a brand new project. Always the same problem.πŸ˜‘
4 Replies
Lara Zeus
Lara Zeusβ€’8mo ago
did you add import preset from 'vendor/filament/filament/tailwind.config.preset' to css
And when I add CSS, for it to be recognized, I have to run npm run build.
this how tailwind works, you have to rebuild every time you change in the css file or run npm run dev
LeChatSoeur
LeChatSoeurOPβ€’8mo ago
It's version 11 of Laravel that's causing the conflict, while version 10 works very well. And thank you for the information about npm run dev/build; I wasn't aware of that.
Dennis Koch
Dennis Kochβ€’8mo ago
It's version 11 of Laravel that's causing the conflict,
What issues do you have with L11?
LeChatSoeur
LeChatSoeurOPβ€’8mo ago
Yes, thank you. During the installation of "filament-theme," all the CSS disappeared! I have just switched to Laravel 10.
Want results from more Discord servers?
Add your server