Add Styling to Custom Widgets

I have made a custom widget and within the Blade file, I am trying to style the elements of my widget. I understand that I do not have access to all of Tailwind and that I can add Tailwind, but is there anyway I could access Filament's CSS? As in, I have a widget and it has a button and I wish for the style to be the same as the other buttons on the Admin panel.
8 Replies
Dan Harrin
Dan Harrin2y ago
hello fellow tofu lover you can use <x-filament::button> or other blade components if you need custom classes you can create a theme which will compile any classes you need i see you @Dennis Koch, come to join the tofu club
Dennis Koch
Dennis Koch2y ago
Come to the Light side. Why is there no tofu emoji? We should change that!
Dan Harrin
Dan Harrin2y ago
absolutely maybe we should steal the buff tofu because noone likes weak tofu
BuffTofu
BuffTofuOP2y ago
oh awesome! is there a place I see all of the available components?
Dan Harrin
Dan Harrin2y ago
yes, in /vendor/filament/filament/resources/views/components
BuffTofu
BuffTofuOP2y ago
thank you
Dan Harrin
Dan Harrin2y ago
tofu tofu
Dennis Koch
Dennis Koch2y ago
Nice 😅

Did you find this page helpful?