F
Filamentβ€’7mo ago
f24aalam

Table colors are not working in custom Livewire component

I have upgraded the filament to v3 and everything is working fine excepts the colors, please check attached the screenshot. here is the code https://gist.github.com/f24aalam/09fafd960d08007d6e42b26e9cce8ce8, Thanks in advance.
No description
7 Replies
Vladimir
Vladimirβ€’7mo ago
Same for me, but plane installation of filament, not an upgrade
einnlleinhatt_
einnlleinhatt_β€’7mo ago
Don't you need to run npm build? πŸ€”
f24aalam
f24aalamβ€’7mo ago
already did it, and it's not working
Vladimir
Vladimirβ€’7mo ago
HAve you added colors in AppServiceProvider? try to add this:
public function boot(): void
{
FilamentColor::register([
'danger' => Color::Red,
'gray' => Color::Zinc,
'info' => Color::Blue,
'primary' => Color::Emerald,
'success' => Color::Green,
'warning' => Color::Amber,
'off' => Color::Neutral
]);
}
public function boot(): void
{
FilamentColor::register([
'danger' => Color::Red,
'gray' => Color::Zinc,
'info' => Color::Blue,
'primary' => Color::Emerald,
'success' => Color::Green,
'warning' => Color::Amber,
'off' => Color::Neutral
]);
}
f24aalam
f24aalamβ€’7mo ago
Yes - I also added this, it's also not working 😒
awcodes
awcodesβ€’7mo ago
Remove the colors from your tailwind config. And rebuild.
f24aalam
f24aalamβ€’7mo ago
thanks for looking into this - and I tried in it and it's not working, don't know why 😒
Want results from more Discord servers?
Add your server
More Posts