Form component colors not working in Livewire component
if i add a form with
ToggleButton
component to a livewire component, the colors don't work despite having a custom themeSolution:Jump to solution
followed this: https://www.answeroverflow.com/m/1145950277376159764
Unable to use colors on blade components in livewire form component...
I have created a livewire form component using docs from https://filamentphp.com/docs/3.x/forms/adding-a-form-to-a-livewire-component
Inside the component, I am using a filament blade component like this
The problem is, that the button is rendered, without background color / border. The text is rendered in white properl...
9 Replies
Should i define them in the boot method of the AdminPanelProvider?
Add them to the AppServiceProvider. I thought this is standalone component? No admin panel?
yes standalone, added it to AppServiceProvider but still same
Did you add the colors to your theme, too? Can you share the tailwind config and the part of the component?
it was the tailwind.config.js
Solution
followed this: https://www.answeroverflow.com/m/1145950277376159764
Unable to use colors on blade components in livewire form component...
I have created a livewire form component using docs from https://filamentphp.com/docs/3.x/forms/adding-a-form-to-a-livewire-component
Inside the component, I am using a filament blade component like this
The problem is, that the button is rendered, without background color / border. The text is rendered in white properl...
thanks a lot for your time