© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•8mo ago•
6 replies
Boa Hancock

Tailwind Classes Not Applying After Upgrading to v4.x

I've been using the following code:
ImageEntry::make('avatar')
    ->disk('s3')
    ->extraImgAttributes([
        'class' => 'rounded-md w-full',
        'loading' => 'lazy',
    ])
    ->columnSpanFull(),
ImageEntry::make('avatar')
    ->disk('s3')
    ->extraImgAttributes([
        'class' => 'rounded-md w-full',
        'loading' => 'lazy',
    ])
    ->columnSpanFull(),

This worked fine on v3.x, and the Tailwind classes were properly applied. After upgrading to v4.x, those classes no longer seem to take effect. No changes were made to this specific part of the code during the upgrade.
Solution
If you don't have a custom theme, you need to start with that.
Or if those 2 are the only classes, just apply CSS
style="border-radius: 1rem; width: 100%;"
style="border-radius: 1rem; width: 100%;"
Jump to solution
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Problem With Tailwind Classes Not Applying
FilamentFFilament / ❓┊help
9mo ago
Tailwind not picking up classes after upgrade to filament v4
FilamentFFilament / ❓┊help
7mo ago
Can't use Tailwind-classes anymore after update to Filament V4
FilamentFFilament / ❓┊help
5mo ago
Upgrading to V4
FilamentFFilament / ❓┊help
5mo ago