Header and Sidebar Customization
I want to customize some styles on the header and sidebar, how should i do this?
6 Replies
Just recently we posted one of the examples: https://filamentexamples.com/tutorial/change-active-navigation-item-color
Filament Examples
Filament Navigation Menu: Change Active Item Color
So apply the same logic to other styles and elements
what if a publish styles and views form the vendor and override it ?
Hard to comment without a specific example, which vendor styles. But generally you can override any Filament css style in a custom theme.
For example, i want to add a search bar on the sidebar above the navigation, what i mean that i want to override the sidebar or the header components and style so i can add custom components to it.
Please don’t publish the views unless you absolutely have too. It is not recommended. Look into panel hooks for inserting things into various parts of the UI. https://filamentphp.com/docs/3.x/support/render-hooks