© 2026 Hedgehog Software, LLC

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

Using tailwindcss bg-* in modal content view

I am trying to make badge for a tag using
rounded-full
rounded-full
and
bg-success
bg-success
/
bg-green-500
bg-green-500
inside a modal content. But nothing changed, is there something I missed or should configure?

Here is the code
  <div class="flex flex-col md:flex-row md:justify-between items-center">
        <div>
            <span class="text-xs">ID</span>
            <br />
            <span class="text-s font-semibold select-all">
                {{ $order->id }}
            </span>
        </div>
        <span class="text-lg font-semibold bg-success rounded-full" @class([
            'bg-success' => $order->status == 1,
            'bg-danger' => $order->status == 2,
            'bg-warning' => $order->status == 3,
        ])>
            {{ $order->status_text  }}
        </span>
    </div>
  <div class="flex flex-col md:flex-row md:justify-between items-center">
        <div>
            <span class="text-xs">ID</span>
            <br />
            <span class="text-s font-semibold select-all">
                {{ $order->id }}
            </span>
        </div>
        <span class="text-lg font-semibold bg-success rounded-full" @class([
            'bg-success' => $order->status == 1,
            'bg-danger' => $order->status == 2,
            'bg-warning' => $order->status == 3,
        ])>
            {{ $order->status_text  }}
        </span>
    </div>
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

Custom Modal View for ViewAction
FilamentFFilament / ❓┊help
3y ago
Using scripts in action modal content
FilamentFFilament / ❓┊help
3y ago
View in Modal Action
FilamentFFilament / ❓┊help
3mo ago
Using Torchlight in Action with custom modal content
FilamentFFilament / ❓┊help
3y ago