Primary Color for v3?
Hi guys,
I'm trying to set the primary colour for buttons etc on the new v3. When looking at the docs it says you can use an array: https://beta.filamentphp.com/docs/3.x/support/colors
But I'm getting an error
Filament\Support\Colors\ColorManager::Filament\Support\Colors\{closure}(): Argument #1 ($color) must be of type string, array given
17 Replies
This is enough i think.
'primary' => Color::hex('#694398'),
Might be a bug, because all the buttons, text etc are still orange
If u do this , filament itself generates palate for your hex color
This is what I have prior to attempting to set each value
In the screenshot above it is changing some of the items, but not all
(hex is purple)
Are u using v3?
Yep
Brand new install (started yesterday)
?
Solution
In v3 configure your colors in the panel service provider.
ahh, in the docs it doesnt say where to put this
just this
im sure in teh getting started someone it talks about putting it in the boot for the app service provider
Nice... Thank you!
in v3 it needs to be in the panel provider and it needs to use the Color object
great, thank you