F
Filamentβ€’6mo ago
raheel3031

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:
@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.
Jump to solution
5 Replies
toeknee
toekneeβ€’6mo ago
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.
raheel3031
raheel3031OPβ€’6mo ago
what should i do now?
toeknee
toekneeβ€’6mo ago
Install Laravel 11?
Solution
Zep Fietje
Zep Fietjeβ€’5mo ago
@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.

Did you find this page helpful?