resources/css/filament called name-of-theme.css.
All of the colors used by Filament can be customised using CSS variables. This means you can change a color in a single place and it will be used throughout the entire panel.
Filament uses 6 different colors:
primarysuccessdangergraybluewhite
Filament uses Tailwind CSS for styling, therefore each color has 9 different scales.To customise a color, uncomment the appropriate line in the CSS file and replace the
# placeholder with any valid CSS color (hex, RGB, HSL, etc):
Registering a Theme
Once you’ve created your theme, you should register it using theFilament::serving and Filament::registerStyle methods inside the boot method of a service provider:
Wrapping your style, script and script data related calls in Filament::serving ensures that they will only be run when Filament is being used.