F
Filamentβ€’10mo ago
marctonon

Using Theme elements for custom pages and components

Hello, folks! πŸ‘‹ Is it possible to intuitively apply the theme's CSS to custom components, pages, and layouts in Laravel Filament? I believe that beyond the ease of quickly building common application elements, most developers also dream of effortlessly achieving attractive designs, even for custom elements. Would love to hear your thoughts! πŸ’­
4 Replies
awcodes
awcodesβ€’10mo ago
I don’t understand. Sorry. A theme is a stylesheet built with tailwind. All components adhere to a theme / styling to unify them. Ie, components inherit from the theme. The components don’t dictate the theme.
marctonon
marctononβ€’10mo ago
@awcodes Thank you for your response! I understand that a theme is a stylesheet built with Tailwind and that components inherit from the theme. What I'm trying to convey is the desire for a more straightforward way to apply these global styles to custom components. For instance, let's consider a custom "Submit" button. As a backend developer, I may not be as proficient in CSS as a frontend specialist. I'd love to have an intuitive way to apply the theme's existing color schemes, margins, and even light/dark modes to this button without diving deep into CSS. In other words, while Filament Forms, Filament Tables, etc., already adhere to the theme, it would be great if there were a simple or perhaps better-documented way to apply these styles to custom components. This would make it easier for intermediate Laravel developers like me to maintain a consistent look and feel across the application. Would love to hear your thoughts on this! πŸ’­ A simple example: Take a look at SUBMIT button.
No description
awcodes
awcodesβ€’10mo ago
So just use the Filament button component.
Want results from more Discord servers?
Add your server
More Posts
Change the table contentHi! I have a roles table, with four header actions (1st image). I would like to show different datFocus on relation manager on page loadIs it possible to autofocus on the relation manager group instead of the edit form? I want the user Is it possible to render a table component inside a form component?I want to render a table of model records that use the selected rows to save a relationship. A relaThe GET method is not supported for route livewire/updateHello! I am not familiar with Filament. Just installed it for test, open in browser /admin page and RelationManager actionsHi all, Need to add print button in RelationManager actions. It should be look like: `->actions([ Using Spatie's Laravel-permission, is there a way to assign roles to a pivot table?For example, if I have a User that is associated with a Tenant, but also Groups within Tenants, can Calculated State Typed property Filament\Forms\Components\Component::$container must not be accessedIn my UserResource class, I'm attempting to populate a toggle based on the soft delete flag on the uIs there a way to limit the amount of relations that can be selected when using a relationshipIs there a way when clicking Add Product and they select a product , you only allow a max of 3 to beFiltered DataI want to export only filtered table data to a csv , For instance, 10 records are in the database, aHow to speedup livewire update response on edit page relation manager?I have edit page with 2 relation manager, and every change tab between 2 relation manager, the speed