Files
php-flasher/docs/pages/themes/crystal.md
T
2025-03-26 23:34:57 +00:00

2.3 KiB
Raw Blame History

layout, permalink, title, subtitle, description, theme_name, theme_name_short, theme_class, icon, color, has_assets, visual_features, accessibility_features, css_variables, html_structure
layout permalink title subtitle description theme_name theme_name_short theme_class icon color has_assets visual_features accessibility_features css_variables html_structure
theme /theme/crystal/ Crystal Theme Clean, monochromatic notification system Enhance your notifications with the elegant Crystal theme for PHPFlasher. Featuring a clean, monochromatic design with colored text and subtle animation effects. theme.crystal crystal fl-crystal fa-duotone fa-diamond indigo true
Monochromatic design with type-specific colored text
Subtle entrance animation with smooth slide-in and fade effects
Gentle pulsing shadow on hover creates a "breathing" effect
Clean, minimalist interface focused on content clarity
Type-appropriate ARIA roles for screen readers
Optimized aria-live regions based on message importance
Reduced motion adaptation for motion-sensitive users
High contrast text for optimal readability
Fully keyboard accessible with visual feedback
Descriptive aria-labels for interactive elements
:root { /* Base appearance */ --crystal-bg-light: #ffffff; /* Light mode background */ --crystal-bg-dark: rgba(30, 30, 30, 0.95); /* Dark mode background */ --crystal-text-light: #2c3e50; /* Light mode text */ --crystal-text-dark: rgba(255, 255, 255, 0.95); /* Dark mode text */ --crystal-shadow: rgba(0, 0, 0, 0.08); /* Light mode shadow */ --crystal-shadow-dark: rgba(0, 0, 0, 0.25); /* Dark mode shadow */ /* Type colors (uses default PHPFlasher colors) */ --fl-success: #10b981; /* Success color */ --fl-info: #3b82f6; /* Info color */ --fl-warning: #f59e0b; /* Warning color */ --fl-error: #ef4444; /* Error color */ } <div class="fl-crystal fl-[type]" role="[role]" aria-live="[ariaLive]" aria-atomic="true"> <div class="fl-content"> <div class="fl-text"> <p class="fl-message">Message text</p> </div> <button class="fl-close" aria-label="Close [type] message">×</button> </div> <div class="fl-progress-bar"> <div class="fl-progress"></div> </div> </div>