@php // Load atomic design color system $colors = [ // Neutrals (Stripe-inspired) 'white' => '#ffffff', 'neutral-50' => '#fafbfc', 'neutral-100' => '#f6f8fa', 'neutral-200' => '#e3e8ee', 'neutral-500' => '#697386', 'neutral-600' => '#525f7f', 'neutral-700' => '#3c4257', 'neutral-800' => '#2e3445', 'neutral-900' => '#1a1f36', // Primary Brand (Blue) 'primary-500' => '#0d8ce8', 'primary-600' => '#0070c6', // Semantic Colors 'success-50' => '#f0fdf5', 'success-500' => '#22c55e', 'success-600' => '#16a34a', 'warning-50' => '#fefce8', 'warning-500' => '#eab308', 'warning-600' => '#ca8a04', 'error-50' => '#fef2f2', 'error-500' => '#ef4444', 'error-600' => '#dc2626', 'info-50' => '#eff6ff', 'info-500' => '#3b82f6', 'info-600' => '#2563eb', // Background Presets 'bg-body' => '#f6f8fa', 'bg-card' => '#ffffff', 'bg-section' => '#fafbfc', // Border Presets 'border-light' => '#e3e8ee', 'border-card' => '#e6ebf1', // Text Presets 'text-primary' => '#1a1f36', 'text-secondary' => '#525f7f', 'text-muted' => '#697386', ]; @endphp
Complete email component library following Atomic Design methodology with frontend-aligned design tokens.
Fundamental building blocks that cannot be broken down further. These are design tokens (colors, typography, spacing) and single HTML elements with inline styles.
resources/views/emails/atoms/_colors.blade.php
Frontend-aligned color palette matching showprima-frontend design tokens. Stripe-inspired professional aesthetic with blue primary brand.
@@include('emails.atoms._colors')
resources/views/emails/atoms/h1.blade.php, h2.blade.php, h3.blade.php, text.blade.php, small.blade.php
Semantic HTML headings and text elements with email-safe inline styles. Inter font stack with proper fallbacks.
@@component('emails.atoms.h1', ['colors' => $colors]) Welcome to Global Gala @@endcomponent @@component('emails.atoms.text', ['colors' => $colors]) Thank you for joining us. @@endcomponent
resources/views/emails/atoms/spacer.blade.php
Vertical spacing control using email-safe divs with explicit height.
@@include('emails.atoms.spacer', ['height' => '40px'])
Groups of atoms functioning together as a unit. Relatively simple but serve a clear purpose.
resources/views/emails/molecules/button.blade.php
CTA button with Outlook MSO conditionals, multiple variants, and sizes. Table-based for email compatibility.
@@component('emails.molecules.button', [ 'href' => 'https://globalgala.com', 'variant' => 'primary', // primary|secondary|success|danger 'size' => 'medium', // small|medium|large 'colors' => $colors ]) Explore Events @@endcomponent
resources/views/emails/molecules/link.blade.php
Text link with consistent styling and brand color.
@@component('emails.molecules.link', [ 'href' => 'https://globalgala.com', 'colors' => $colors ]) View your order @@endcomponent
resources/views/emails/molecules/badge.blade.php
Status indicator with colored background and semantic variants.
@@component('emails.molecules.badge', [ 'variant' => 'success', // success|warning|error|info|neutral 'colors' => $colors ]) Confirmed @@endcomponent
resources/views/emails/molecules/info-row.blade.php
Label-value pair in table format for email compatibility. Perfect for order details and transaction data.
@@component('emails.molecules.info-row', [ 'label' => 'Order Number', 'value' => '#12345', 'colors' => $colors, 'isLast' => false // Set to true to remove bottom border ]) @@endcomponent
Relatively complex components composed of molecules and/or atoms. They form distinct sections of an interface.
resources/views/emails/organisms/alert-box.blade.php
Status messages with colored backgrounds, borders, and optional titles. Semantic color variants for different message types.
@@component('emails.organisms.alert-box', [ 'variant' => 'success', // success|warning|error|info 'title' => 'Payment Confirmed', // Optional 'colors' => $colors ]) Your payment has been processed successfully. @@endcomponent
resources/views/emails/organisms/card.blade.php
Elevated content container with border. Perfect for grouping related information.
@@component('emails.organisms.card', ['colors' => $colors]) <h2>Card Content</h2> <p>Your content here...</p> @@endcomponent
resources/views/emails/organisms/section.blade.php
Content grouping with optional background color. Use to visually separate different sections of an email.
@@component('emails.organisms.section', [ 'background' => 'neutral', // neutral|white|transparent 'colors' => $colors ]) <h2>Section Content</h2> <p>Your content here...</p> @@endcomponent
Global Gala Email Design System v2.0
Following Atomic Design methodology with email-safe components