Setting section background color

Hi guys, is there a simple "Filament" way to set the background color of section? In the screenshot I would like to make the background of the entire "You're almost done" section the "primary" color
Solution:
->extraAttributes(['style' => 'background-color:#color'])
->extraAttributes(['style' => 'background-color:#color'])
?...
Jump to solution
5 Replies
Solution
LeandroFerreira
->extraAttributes(['style' => 'background-color:#color'])
->extraAttributes(['style' => 'background-color:#color'])
?
Scott
ScottOP2y ago
nice! that worked, thanks
sotjj
sotjj13mo ago
Is there a way to have the background color only apply to the Section heading and not the fields?
Tobias Platen
Tobias Platen13mo ago
As far as I can see, this will only work globally for all section headers via styling of .fi-section-header. https://filamentphp.com/docs/3.x/support/style-customization#applying-styles-to-hook-classes
sotjj
sotjj13mo ago
Thanks! For my situation, this might work. I will try it out and report back. Thank you, again. That will work for me.

Did you find this page helpful?