FilamentF
Filament15mo ago
Xavi

Register colors

I register new colors on Panel with this code:

public function boot(): void
    {
        FilamentColor::register([
            'primary' => Color::hex('#4d8bff'),
            'secondary' => Color::hex('#4E8AFF'),
            'orange' => Color::hex('#4E8AFF'),
        ]);
    }


but when i try to use with <x-filament::button color="orange">Test</x-filament::button>, it doesn't works.

How can i do it? Thanks!
Was this page helpful?