[V3] Blade components do not have the good colour
Hi,
I'm using Filament v3 and I'm trying to use the blade components, especially the button one. I'm experiencing an issue with that : in fact, when I change the primary colour of my theme, it is correctly reflected on all Filament parts of my dashboard EXCEPT on the components I manually use.
Here is my AdminPanelProvider :
And how I use the button :
The button will stay orange, whereas the rest of the website is using correctly the primary colour #09F. Any idea?
16 Replies
it was supposed to work. Did you clear cache, views?
Where are you using this button?
Hey,
Cache is cleared, both on the browser side and on the view side (php artisan view:clear).
This button is used on a custom Filament page :
did you try?
<x-filament::button color="primary" ...
Yes I tried too, it does not change, the button is still orange
weird.. did you try another value,
'primary' => Color::Indigo
for example?Yes I tried too, button keeps being orange
Here are my tailwind config and CSS theme file under resources/css/filament/admin/ :
try this:
Nothing changed, still orange :/
did you run
artisan filament:upgrade
?Yes. I re-ran once again to be sure, but no change. Iām running Filament version 3.0.5
Try configure colors from service provider boot() like this https://filamentphp.com/docs/3.x/support/colors#customizing-the-default-colors
Wonderful, it worked ! Thanks @Leandro Ferreira and @idpry for your help!
Honestly, I don't know why. It was supposed to work without it š
I can't tell you why it's not working the way I initially did, sorry!
no worries āļø
I've run into the same problem, just curious if we know why? I'm presuming it's something I've done wrong as usual - but basically followed the manual steps for installing tailwind etc into an existing laravel project as per the recommendations on the Forms documentation.
The boot override works, though.