F
Filamentβ€’2y ago
BuffTofu

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 Harrinβ€’2y 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 Kochβ€’2y ago
Come to the Light side. Why is there no tofu emoji? We should change that!
Dan Harrin
Dan Harrinβ€’2y ago
absolutely maybe we should steal the buff tofu because noone likes weak tofu
BuffTofu
BuffTofuOPβ€’2y ago
oh awesome! is there a place I see all of the available components?
Dan Harrin
Dan Harrinβ€’2y ago
yes, in /vendor/filament/filament/resources/views/components
BuffTofu
BuffTofuOPβ€’2y ago
thank you
Dan Harrin
Dan Harrinβ€’2y ago
tofu tofu
Dennis Koch
Dennis Kochβ€’2y ago
Nice πŸ˜…
Want results from more Discord servers?
Add your server