Css styling in theme not working
I have installed laravel 12 with latest filament. I have installed a custom theme. I am trying to apply tailwind css but it is not working. When I run npm run build it says that tailwind v4 is installed but filament uses v3. What is the issue?
Solution:Jump to solution
@raheel3031 @Alex-Elivate, I just published a guide on how to keep using Tailwind CSS v4 in your Laravel 12 application and simultaneously use Tailwind CSS v3 to compile your Filament stylesheets.
Might want to check it out π
https://filamentthemes.com/guides/how-to-use-filament-with-tailwind-css-v4...
How to use Filament with Tailwind CSS v4
Laravel 12 ships with version 4 of Tailwind CSS, while Filament v3 only supports version 3. This guide walks you through setting up Tailwind CSS v3 alongside v4.
5 Replies
The issue is laravel 12.... it auto-uses v4 :/
I would personally use Laravel 11, until filament v4 comes out. Theres very little difference in 11-12.
what should i do now?
Install Laravel 11?
I had similar issues and needed to downgrade tailwind in laravel 12 to v3. https://filamentphp.com/docs/3.x/notifications/installation#installing-tailwind-css
Solution
@raheel3031 @Alex-Elivate, I just published a guide on how to keep using Tailwind CSS v4 in your Laravel 12 application and simultaneously use Tailwind CSS v3 to compile your Filament stylesheets.
Might want to check it out π
https://filamentthemes.com/guides/how-to-use-filament-with-tailwind-css-v4
How to use Filament with Tailwind CSS v4
Laravel 12 ships with version 4 of Tailwind CSS, while Filament v3 only supports version 3. This guide walks you through setting up Tailwind CSS v3 alongside v4.