© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
3 replies
rg.block

BadgeColumn -> colors not displaying properly

Hello, I have a standalone table that I am having issues with when trying to set the badge color to be set by the value of it. The odd part is that I am using enum to transform the set of know values and that works as expected. At first I thought that had something to do with it, but even if I remove the enum it is not working. I should add that the color that shows on all the cells for the column is gray.

function getTableColumns(): array has:

BadgeColumn::make('status_id')
                ->label('Status')
                ->colors([
                    'danger' => '1',
                    'warning' => '2',
                    'success' => '3',
                ])
                ->enum([
                    '1' => 'Recorded',
                    '2' => 'Rejected',
                    '3' => 'Submitted',
                ]),
BadgeColumn::make('status_id')
                ->label('Status')
                ->colors([
                    'danger' => '1',
                    'warning' => '2',
                    'success' => '3',
                ])
                ->enum([
                    '1' => 'Recorded',
                    '2' => 'Rejected',
                    '3' => 'Submitted',
                ]),


tailwind.config.js has:

theme: {
        extend: {
            colors: {
                danger: colors.rose,
                primary: colors.blue,
                success: colors.green,
                warning: colors.yellow,
            },...
theme: {
        extend: {
            colors: {
                danger: colors.rose,
                primary: colors.blue,
                success: colors.green,
                warning: colors.yellow,
            },...
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

closure in badgeColumn colors
FilamentFFilament / ❓┊help
3y ago
Form not displaying properly on mobile
FilamentFFilament / ❓┊help
3y ago
Default notification icon set (Heroicons) not displaying properly
FilamentFFilament / ❓┊help
3y ago
Fileupload multiple image in a tab not displaying images properly
FilamentFFilament / ❓┊help
15mo ago