badge style issue V3
Hi Everyone,
Tables\Columns\TextColumn::make('status')->badge()
when I use this in my project like demo, not working coming normal badge style. I need to change anything? I use Enums

10 Replies
not working coming normal badge style.What?
I use Enums for invoice status like this
case New = 'new';
public function getColor(): string | array | null
{
return match ($this) {
self::New => 'info',
public function getIcon(): ?string
{
return match ($this) {
self::New => 'heroicon-m-sparkles',
same as Demo. but in the table the badge coming without icons and not correct color. the secreenshot from the Demo and should be like that
this what I get in the table

Add/ Edit pages showing correct

Did you configure
info
color inside the panel provider?the problem not just the color but the whole badge with icon as well
in Demo https://github.com/filamentphp/demo/blob/main/app/Providers/Filament/AdminPanelProvider.php there is no configure for colors
GitHub
demo/app/Providers/Filament/AdminPanelProvider.php at main · filame...
Source code for the demo.filamentphp.com website. Contribute to filamentphp/demo development by creating an account on GitHub.
I used BadgeColumn instead and added icons + colors but in documentation there is no information about that. many thanks

Check this. Not every feature is in the demo:
https://filamentphp.com/docs/3.x/panels/themes#changing-the-colors
yes this to defined the theme and colors for the panel. but not for Badge component. but I share my solved code maybe helpful for other people 😁
The Badge will reuse the colors defined for Panel or via FilamentColors::register()