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 properly though. I tried with other variants like
warning
, danger
etc, but nothing is displayed.
My tailwind.config.js
looks like this
The buttons are displayed correctly in the admin panel though.
I also tried to register the colors in boot()
method of AppServiceProvider
, but no result
Solution:Jump to solution
I was using
filament/filament
panel builder and not installed form builder
specifically. Followed this tailwindcss.config.js
configuration and it worked. Thank you.
My tailwind.config.js
file looks like this now
```js
import preset from './vendor/filament/support/tailwind.config.preset'...3 Replies
Have you followed all the installation instructions for using the Form Builder? https://filamentphp.com/docs/3.x/forms/installation
Specifically, the layout configuration part: https://filamentphp.com/docs/3.x/forms/installation#configuring-your-layout
Solution
I was using
filament/filament
panel builder and not installed form builder
specifically. Followed this tailwindcss.config.js
configuration and it worked. Thank you.
My tailwind.config.js
file looks like this now