column page custom

The problem is that I wanted to split a page to show 3 sections in a row, but it doesn’t work, even though it worked for me in filamentphp v3. <div class="p-4 max-w-7xl mx-auto"> <div class="grid grid-cols-1 sm:grid-cols-2 xl:grid-cols-3 gap-6"> @foreach ($subSpecialties as $sub) <x-filament::section class="flex flex-col justify-between border border-gray-300 rounded-2xl shadow-md hover:shadow-lg hover:-translate-y-1 transition duration-300" icon="heroicon-o-gift"> <x-slot name="heading"> {{ $sub->name }} </x-slot> <x-slot name="headerEnd"> <div class="flex flex-col items-start"> <span class="text-lg font-bold text-yellow-400"> {{ $sub->amount ?? '0' }} </span> </div> </x-slot> <div class="text-gray-500 mt-2"> kikikikkooo </div> </x-filament::section> @endforeach </div> </div>
No description
4 Replies
Dennis Koch
Dennis Koch4w ago
Did you create a theme?
hamada14
hamada14OP4w ago
No It works in filamentphp v3
toeknee
toeknee4w ago
It might have worked in v3 because the assets were loaded. But I am guessing the tailwind is using different classes. Ensure it's migrated to tailwind v4 and just create a theme so the classes are compiled in.
Dennis Koch
Dennis Koch4w ago
You need a theme for Tailwind CSS v4 doesn't ship Tailwind classes it's needed even more than before.

Did you find this page helpful?