F
Filament2mo ago
aldec

Weird style after tailwind update

I just tried the Filament upgrade from v3 to v4, including tailwind. I have a custom theme, but only to add some additional classes. The overall look and feel was standard Filament v3. After updating it looks like this and I have no idea where this coming from. Any pointers?
No description
Solution:
You probably want to use to old palette. I think there is a generateV3ColorPalette option or similar on the Panel
Jump to solution
11 Replies
aldec
aldecOP2mo ago
Even when removing the custom theme, using the base structure from a fresh filament application, it still looks this weird.
Dennis Koch
Dennis Koch2mo ago
Okay. Lets try to fix this without a theme, before applying the theme again. - Did you overwrite any view files? - Try removing all Filament assets in the public folder and republish them via php artisan filament:assets
aldec
aldecOP2mo ago
No, I added new view files or used the render hooks. I removed the CSS and JS assets from Filament and published them again, but it did not change
Dennis Koch
Dennis Koch2mo ago
Make sure your browser cache is not an issue. Did you overwrite some colors in the panel?
aldec
aldecOP2mo ago
Yes, the colors can be changed via spatie settings It overwrites the primary, gray, info etc. colors with hex codes and provided defaults if the DB is not yet ready (on application boot).
aldec
aldecOP2mo ago
If I remove this (removing ->colors($theme['colors']) from the PanelProvider it is... better, but the issues are not only in color:
No description
aldec
aldecOP2mo ago
Ok, the spacing issue etcs is fixed. Now only the colors if I want to override them are weird
Dennis Koch
Dennis Koch2mo ago
Ok, the spacing issue etcs is fixed
What was the problem?
Solution
Dennis Koch
Dennis Koch2mo ago
You probably want to use to old palette. I think there is a generateV3ColorPalette option or similar on the Panel
Dennis Koch
Dennis Koch2mo ago
The algorithm for color palette generating changed.
aldec
aldecOP2mo ago
I had some static older Tailwind asset in my code 🙈 generateV3Palette, yes. This works, thank you!

Did you find this page helpful?