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

2.2 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/amber/ Amber Theme Modern, elegant notification system Transform your notifications with the elegant Amber theme for PHPFlasher. Featuring a modern, minimalist design with subtle animations and comprehensive dark mode support. theme.amber amber fl-amber fa-duotone fa-sun amber true
Modern, minimalist design with clean aesthetics
Subtle animations and transitions for a refined feel
Visual progress bar indicating time before auto-dismiss
Automatic dark mode support with elegant color shifts
Proper ARIA roles for different notification types
Live regions with appropriate assertiveness levels
Respects user's reduced motion preferences
Fully keyboard accessible controls
High contrast text meeting WCAG 2.1 AA standards
Descriptive aria-labels for screen readers
:root { /* Base appearance */ --amber-bg-light: #ffffff; /* Light mode background */ --amber-bg-dark: #1e293b; /* Dark mode background */ --amber-text-light: #4b5563; /* Light mode text */ --amber-text-dark: #f1f5f9; /* Dark mode text */ --amber-shadow: 0 5px 15px rgba(0, 0, 0, 0.08); /* Light mode shadow */ --amber-border-radius: 0.4rem; /* Border radius */ /* Type-specific colors */ --amber-success: #10b981; /* Success color */ --amber-info: #3b82f6; /* Info color */ --amber-warning: #f59e0b; /* Warning color */ --amber-error: #ef4444; /* Error color */ /* Dark mode shadows */ --amber-shadow-dark: 0 5px 15px rgba(0, 0, 0, 0.25); } <div class="fl-amber fl-[type]" role="[role]" aria-live="[ariaLive]" aria-atomic="true"> <div class="fl-content"> <div class="fl-icon"></div> <div class="fl-text"> <div class="fl-message">Message text</div> </div> <button class="fl-close" aria-label="Close [type] message">×</button> </div> <div class="fl-progress-bar"> <div class="fl-progress"></div> </div> </div>