Executing TailwindCSS in InfolistBuilder / custom entry.
Hey guys I have installed the panel builder and I have the following infolist:
public static function infolist(Infolist $infolist): Infolist
{
return $infolist->schema([
Section::make()
->schema([
Fieldset::make('General Information')
->columns(3)
->schema([
ViewEntry::make('media')
->view('filament.infolists.location.media-display'),
TextEntry::make('name'),
TextEntry::make('phone_number'),
TextEntry::make('email'),
TextEntry::make('address')
->columnSpan(['md' => 2]),
TextEntry::make('website'),
TextEntry::make('description')
->columnSpanFull(),
]),
])
]);
}
the problem comes when I am implementing the ViewEntry. For some reason the blade is not executing the tailwind css. How can I resolve this issue?
Solution:Jump to solution
you need to create a custom theme
https://filamentphp.com/docs/3.x/panels/themes#creating-a-custom-theme...
3 Replies
Solution
you need to create a custom theme
https://filamentphp.com/docs/3.x/panels/themes#creating-a-custom-theme
So basically if I want to use tailwindcss for custom element I need to add it as a theme?
yep