Flare comes with three distinct themes to match the aesthetic of your application. You can set the global theme in config/flare.php or override it per toast.
The Modern theme features a balanced design with subtle glassmorphism effects, rounded corners, and soft shadows. It fits perfectly with most modern SaaS applications and dashboards.
Flare::info('This is the modern theme');
The Classic theme is minimal, clean, and professional. It uses solid colors and standard borders, making it ideal for enterprise applications or data-heavy interfaces where clarity is paramount.
Flare::success('This is the classic theme', ['theme' => 'classic']);
The Vibrant theme is bold and colorful. It uses gradients and high-contrast colors to ensure your notifications grab attention. Perfect for consumer-facing apps or marketing sites.
Flare::warning('This is the vibrant theme', ['theme' => 'vibrant']);
Set the default theme in your config/flare.php file:
'theme' => 'vibrant',
You can override the theme for a specific notification using the theme option in the options array.
Flare::toast('Custom Theme Toast', [
'theme' => 'classic',
'variant' => 'success'
]);
How can I help you explore Laravel packages today?