Weird css styyling after v3 to v4 upgrade

Hi folks, I just upgraded from v3 to v4 this simple app, it just 2 basic Resources. First screenshots are v4 screens and last two ones like it used to be on v3. I was using custom theme on v3, after checking for some solutions around I disabled custom theme and ran all suggested commands I found. But still could not get it running fine. What else shloud I check to solve this? It is a simple app, if no easy solution, I've no problem to start fresh app on v4. Thanks in advance for your help
No description
No description
No description
No description
No description
9 Replies
awcodes
awcodes2mo ago
You need to upgrade your custom theme to use tailwind v4 too. https://filamentphp.com/docs/4.x/upgrade-guide#high-impact-changes
sistemasjg
sistemasjgOP2mo ago
Hi, thanks for the quick response. Already updated to v4 format and the same. I disabled custom theme on Panel Provider, ran npm run build, deleted assets, publishing again, npm run build and other cominations and not neigher has effect. I'm not using any custom page or blade/layout. Just plain resources. Navigation look s fine, the problem seems to be just on Tables and Forms
awcodes
awcodes2mo ago
Do you have the views published?
sistemasjg
sistemasjgOP2mo ago
Not sure, let me check that. Were not published. Just published, but still the same. Also ran npm run build just in case, but the same. Must I add resources/views/vendor/filament/* to any place?
awcodes
awcodes2mo ago
They shouldn’t be published unless you absolutely have to. In the link I shared, the second item shows how to change the custom theme css file. If you have a tailwind.config.js in the root you might need to remove that too. There’s so many different things it could be. Do you have a repo you can share? Feel free to DM if you don’t want to post it here. Is this happening locally or on the server.
sistemasjg
sistemasjgOP2mo ago
Locally on my machine, I have not upgraded production yet Will try a couple more of things, if no success will prepare some repo for you to check. But this will be tomorrow. I'm going out now. Thanks for your answers
awcodes
awcodes2mo ago
No hurry.
toeknee
toeknee2mo ago
I have seen this where the config isn't configured in the css to search the views folder for the css classes being used.
Dennis Koch
Dennis Koch2mo ago
In other cases people still had the postcss.config.js which messed up Tailwind stuff.

Did you find this page helpful?