Palestinian Flag Solidarity with Palestine. We seek justice and peace, and strongly oppose all forms of injustice and genocide.
Enjoying PHPFlasher? Show your support with a star on GitHub! It helps others discover this tool and motivates us to keep improving it. Thank you

Minimal Theme

Ultra-clean, distraction-free notification system

Data has been saved successfully!
Welcome back!

Configuration

Setting as Default in Laravel
// config/flasher.php

return [
    'default' => 'theme.minimal',

    'themes' => [
        'minimal' => [
            'scripts' => [
                '/vendor/flasher/themes/theme.minimal.min.js',
            ],
            'styles' => [
                '/vendor/flasher/themes/theme.minimal.min.css',
            ],
        ],
    ],
];

Theme Usage

When theme.minimal is set as your default theme, you can call methods directly.
flash()->success('Your changes have been saved!');
For specific notifications
flash()->use('theme.minimal')->success('This uses Minimal Theme');

Key Features

Visual Design

  • Ultra-clean design with minimal visual elements
  • Subtle translucent background with frosted glass effect
  • Small colored dot to indicate notification type
  • Compact size and spacing for unobtrusive appearance
  • System fonts for optimal native readability

Accessibility

  • Type-specific ARIA roles for screen readers
  • Appropriate aria-live regions based on message importance
  • Reduced motion adaptation for users with motion sensitivity
  • Color indications that don't rely solely on color
  • System fonts that respect user's platform for improved readability
  • Fully keyboard accessible close button

Customization

CSS Variables

:root {
  /* Base appearance */
  --minimal-bg-light: rgba(255, 255, 255, 0.8);  /* Light mode background */
  --minimal-bg-dark: rgba(25, 25, 25, 0.8);      /* Dark mode background */
  --minimal-text-light: #333333;                 /* Light mode text */
  --minimal-text-dark: #f5f5f5;                  /* Dark mode text */
  --minimal-border-radius: 6px;                  /* Corner radius */
  
  /* Type colors */
  --minimal-success: rgba(34, 197, 94, 0.9);     /* Success color */
  --minimal-info: rgba(14, 165, 233, 0.9);       /* Info color */
  --minimal-warning: rgba(245, 158, 11, 0.9);    /* Warning color */
  --minimal-error: rgba(239, 68, 68, 0.9);       /* Error color */
  
  /* Additional customization */
  --minimal-blur: 8px;                          /* Backdrop blur amount */
  --minimal-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); /* Shadow */
}

HTML Structure

<div class="fl-minimal fl-[type]" role="[role]" aria-live="[ariaLive]" aria-atomic="true">
    <div class="fl-content">
        <div class="fl-dot"></div>
        <div class="fl-message">Message text</div>
        <button class="fl-close" aria-label="Close [type] message">×</button>
    </div>
    <div class="fl-progress-bar">
        <div class="fl-progress"></div>
    </div>
</div>

Browser Support

Chrome
Firefox
Safari
Edge
Mobile
Dark