© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
3 replies
LightningSnaps

Best way to use tailwind styles on custom pages?

Is there a preferred way to use tailwind classes in the blade files for custom filament pages? I am currently doing this but obviously it only works locally and is very fragile.

        FilamentAsset::register([
            Css::make('custom-stylesheet', asset('css/app.css')),
            Css::make('page-assets', 'http://chicago-211-api.test/build/assets/app-97668bcd.css')
        ]);
        FilamentAsset::register([
            Css::make('custom-stylesheet', asset('css/app.css')),
            Css::make('page-assets', 'http://chicago-211-api.test/build/assets/app-97668bcd.css')
        ]);
Solution
The best way is to create a custom theme :
https://filamentphp.com/docs/3.x/panels/themes#creating-a-custom-theme
Themes - Panel Builder - Filament
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

Use Tailwind classes in Custom Pages
FilamentFFilament / ❓┊help
2y ago
How to use tailwind classes in custom pages
FilamentFFilament / ❓┊help
3y ago
Add styles to tailwind
FilamentFFilament / ❓┊help
3y ago
Tailwind CSS not applied on custom pages
FilamentFFilament / ❓┊help
2y ago