Changing the colors
In the configuration, you can easily change the colors that are used. Filament ships with 6 predefined colors that are used everywhere within the framework. They are customizable as follows:Filament\Support\Colors\Color class contains color options for all Tailwind CSS color palettes.
You can also pass in a function to register() which will only get called when the app is getting rendered. This is useful if you are calling register() from a service provider, and want to access objects like the currently authenticated user, which are initialized later in middleware.
Alternatively, you may pass your own palette in as an array of RGB values:
Generating a color palette
If you want us to attempt to generate a palette for you based on a singular hex or RGB value, you can pass that in:Changing the font
By default, we use the Inter font. You can change this using thefont() method in the configuration file:
Changing the font provider
Bunny Fonts CDN is used to serve the fonts. It is GDPR-compliant. If you’d like to use Google Fonts CDN instead, you can do so using theprovider argument of the font() method:
LocalFontProvider:
Creating a custom theme
Filament allows you to change the CSS used to render the UI by compiling a custom stylesheet to replace the default one. This custom stylesheet is called a “theme”. Themes use Tailwind CSS, the Tailwind Forms plugin, the Tailwind Typography plugin, the PostCSS Nesting plugin, and Autoprefixer.Filament v3 uses Tailwind CSS v3 for styling. As such, when creating a theme, you need to use Tailwind CSS v3. TheTo create a custom theme for a panel, you can use thephp artisan make:filament-themecommand will install Tailwind CSS v3 if you do not have it installed already. If you have Tailwind CSS v4 installed, it will not fully install the necessary Vite configuration to compile the theme. We suggest that you either use the Tailwind CLI to compile the theme, or downgrade your project to Tailwind CSS v3. The command to compile the theme with the Tailwind CLI will be output when you run themake:filament-themecommand. You could save this command into a script inpackage.jsonfor easy use. Filament v4 will support Tailwind CSS v4.
php artisan make:filament-theme command:
--pm option:
/resources/css/filament directory. You can then customize the theme by editing these files. It will also give you instructions on how to compile the theme and register it in Filament. Please follow the instructions in the command to complete the setup process:
admin/theme.css.
If you have Tailwind v4 installed, the output may look like this:
Disabling dark mode
To disable dark mode switching, you can use the configuration file:Changing the default theme mode
By default, Filament uses the user’s system theme as the default mode. For example, if the user’s computer is in dark mode, Filament will use dark mode by default. The system mode in Filament is reactive if the user changes their computer’s mode. If you want to change the default mode to force light or dark mode, you can use thedefaultThemeMode() method, passing ThemeMode::Light or ThemeMode::Dark:
Adding a logo
By default, Filament uses your app’s name to render a simple text-based logo. However, you can easily customize this. If you want to simply change the text that is used in the logo, you can use thebrandName() method:
brandLogo() method:
brandLogo() method to render an inline SVG element for example:
darkModeBrandLogo() in the same way.
The logo height defaults to a sensible value, but it’s impossible to account for all possible aspect ratios. Therefore, you may customize the height of the rendered logo using the brandLogoHeight() method: