Some CSS seemingly to being applied after v4 upgrade
I just upgraded with the script, everything mostly looks fine except:
- Company Logo is too big
- Stats widget not taking up full width
Right now I want to focus on the logo and I'll solve the widget issue later, just wanted to mention it because it might be related.
It seems like CSS is not updating because changing anything in the blade view isn't getting applied
here's the logo.blade.php:
here's what my CSS setup looks like right now
My dev dependencis
My tailwind config:
app.css:

Solution:Jump to solution
unless I add this line from my frontend:
@vite('resources/css/app.css')
which feels very hacky so I'd love to find another proper solution8 Replies
Filament v4 uses tailwind v4 start by upgrading that.
Updated tailwind now it works on my own non-filament frontend, but the logo is still not being styled properly
Solution
unless I add this line from my frontend:
@vite('resources/css/app.css')
which feels very hacky so I'd love to find another proper solutionThen you need to use a custom theme for filament that has the custom views in the @source directive of the custom theme
Sure, I'll look into that, but it would be great if styles worked out of the box as they did in v3
V3 was the same.
What I meant was this view in v3 was integrated in filament so it received it's styling from there but now it seems to be handled seperately, and mind you I am not using any custom non-documented plugin to do this, I'm simply passing a logo view to my panel with
->brandLogo(fn () => view('filament.admin.logo'))
Right but the way tailwind works, if it isn’t looking for the view in that location then any classes won’t get processed as part of the tree shaking.
So, unless tailwind knows to look for that file it won’t apply the classes in the stylesheet, meaning that if filament itself doesn’t have a ‘w-4’ it will not be included in the theme/stylesheet.
It’s just how tailwind works.