Introduction
Filament uses Tailwind CSS for styling and provides several ways to customize the appearance of your panel, from simple color changes to complete custom themes.Color customization
The easiest way to customize your panel is by changing the color palette:Available color presets
Filament includes presets for all Tailwind CSS colors:Color::Slate,Color::Gray,Color::Zinc,Color::Neutral,Color::StoneColor::Red,Color::Orange,Color::Amber,Color::YellowColor::Lime,Color::Green,Color::Emerald,Color::Teal,Color::CyanColor::Sky,Color::Blue,Color::Indigo,Color::Violet,Color::PurpleColor::Fuchsia,Color::Pink,Color::Rose
Custom color shades
Define custom color shades:Dark mode
Filament includes built-in dark mode support.Setting the default theme mode
ThemeMode::Light- Always light modeThemeMode::Dark- Always dark modeThemeMode::System- Follow system preference
Forcing a theme mode
Disable the theme switcher and force a specific mode:Custom fonts
Change the font used throughout the panel:Loading fonts locally
Custom CSS with Vite
For advanced customization, create a custom theme using Vite.Creating a theme
1
Install Tailwind CSS
2
Create theme file
Create
resources/css/filament/admin/theme.css:3
Create Tailwind config
Create
tailwind.config.js in the same directory:4
Register in Vite
Update
vite.config.js:5
Configure panel
6
Build assets
Multiple panels with different themes
Create separate themes for each panel:Pre-compiled custom theme
If you don’t use Vite, you can register a pre-compiled CSS file:Customizing components
Filament uses CSS hook classes that you can target for customization:Component hook classes
Filament uses a consistent naming convention:fi-- Filament prefixfo-- Forms packageta-- Tables packageac-- Actions packagein-- Infolists package
.fi-fo-text-input- Text input component.fi-ta-table- Table component.fi-ac-modal- Action modal.fi-sidebar- Sidebar.fi-topbar- Top bar
Icons
Customize icons used throughout the panel:Custom icon sets
Register custom icon sets:Render hooks
Inject custom HTML at specific points in the panel:HEAD_START,HEAD_ENDBODY_START,BODY_ENDCONTENT_START,CONTENT_ENDSIDEBAR_START,SIDEBAR_ENDTOPBAR_START,TOPBAR_ENDPAGE_START,PAGE_ENDPAGE_HEADER_START,PAGE_HEADER_END
Logo customization
Customize the panel logo:Dark mode logo
Provide different logos for light and dark modes:Logo as HTML
Return raw HTML for the logo:Maximum content width
Control the maximum width of page content:Custom views
Publish Filament’s views to customize them:resources/views/vendor/filament-panels/.