FilamentColor::register() not working properly

Hello everyone, I'm trying to override the default colors in my AppServiceProvider boot function, like so

FilamentColor::register([
    'danger' => Color::Red,
    'gray' => Color::Zinc,
    'info' => Color::Blue,
    'primary' => Color::Amber,
    'success' => Color::Green,
    'warning' => Color::Amber,
]); 


And when I use a class like bg-primary-500 it works but if I use any other color it doesn't. Anyone has this problem too?

P.S. When I change the color of 'primary' the application detects that change.

Laravel: 10.10
Filament: 3.2.*
PHP: 8.2

Thanks
Solution
Ok, after looking at the source code I was able to use the classes with:

->extraInputAttributes([
                'class' => 'bg-custom-50 dark:bg-custom-400/10',
                'style' => \Filament\Support\get_color_css_variables(
                    'success',
                    shades: [50, 400, 600],
                ),
            ])
Was this page helpful?