After switching from Filament 3 to 4, I encountered problems with the layout of custom pages.

Hi friends! We recently decided to upgrade our corporate admin panel from Filament 3 to 4 and ran into a problem with the filament-pages layout. I'll attach screenshots below. Could this be related, and how can I fix it?
No description
No description
No description
No description
5 Replies
Dennis Koch
Dennis Koch3w ago
Looks like you have some custom styles. Do you have a theme? Did you update that to Tailwind v4 and rebuild it? Do you still have a postcss.config.js – if so try deleting it and run npm run build again.
hxnnxs
hxnnxsOP3w ago
After creating a custom theme https://filamentphp.com/docs/4.x/styling/overview#creating-a-custom-theme, it started to look much better, but the layout still looks terrible.
No description
toeknee
toeknee3w ago
Guessing you haven't updated your views tailwind classes to be v4 and are still v3.
hxnnxs
hxnnxsOP3w ago
I updated
toeknee
toeknee3w ago
You update tailwind, but did you update the classes in the custom view? It looks like your custom Table of fixations is custom made html using tailwind, so you'll need to update the HTML to use tailwind v4 classes.

Did you find this page helpful?