Onyx Theme
Modern, floating notifications with elegant details
Configuration
// config/flasher.php
return [
'default' => 'theme.onyx',
'themes' => [
'onyx' => [
'scripts' => [
'/vendor/flasher/flasher.min.css',
'/vendor/flasher/themes/theme.onyx.min.js',
],
'styles' => [
'/vendor/flasher/themes/theme.onyx.min.css',
],
],
],
];
Usage
flash()->success('Your changes have been saved!');
flash()->use('theme.onyx')->success('This uses Onyx Theme');
Key Features
Visual Design
Accessibility
Customization
:root {
/* Base appearance */
--onyx-bg-light: #ffffff; /* Light mode background */
--onyx-bg-dark: #1e1e1e; /* Dark mode background */
--onyx-text-light: #333333; /* Light mode text */
--onyx-text-dark: #f5f5f5; /* Dark mode text */
--onyx-shadow: 0 8px 30px rgba(0, 0, 0, 0.12); /* Light mode shadow */
--onyx-shadow-dark: 0 8px 30px rgba(0, 0, 0, 0.25); /* Dark mode shadow */
--onyx-border-radius: 1rem; /* Corner roundness */
/* Accent colors */
--onyx-success: #10b981; /* Success color */
--onyx-info: #3b82f6; /* Info color */
--onyx-warning: #f59e0b; /* Warning color */
--onyx-error: #ef4444; /* Error color */
}