© 2026 Hedgehog Software, LLC

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

Tailwind classes getting ignored in plugin view?

I am working on a plugin that shows some information in a grid, but no matter what I do, my Tailwind CSS classes are ignored.

<div
x-show="open"
x-on:click.outside="open = !open"
class="grid grid-cols-3"
>
@foreach ( $getItems() as $item )
<div
class="m-1">
{{ $item }}
</div>
@endforeach
</div>

I can use "grid-cols-7". I've added the file directly to the "content" array of the tailwind conf, still nothing.

Is there a way to use my own grid inside of my custom plugin? Ideally it would have been dynamic but I don't think that's possible.
Solution
If you develop a plugin: You can either compile a CSS file with the missing classes from standard Filament theme and truncate the rest. See the plugin-skeleton from awcodes. Or you instruct the user to create a custom theme and add your plugins vendor to the config.
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
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

Tailwind classes don't show in view
FilamentFFilament / ❓┊help
2y ago
Tailwind classes still missing in filament-page's custom view
FilamentFFilament / ❓┊help
3y ago
Tailwind ignoring classes
FilamentFFilament / ❓┊help
10mo ago
Tailwind Classes Issue
FilamentFFilament / ❓┊help
14mo ago