How sutharjay1/reactui-email works
Main System Components
a) Application Layer (Top Level)
• Next.js Application (indicated by next.config.ts and src/app structure)
• Component Documentation System (src/app/docs)
• Template Preview System (various template routes like /apple, /framer, etc.)
b) Core Components Layer
• UI Component Library (src/components/ui)
• Email Templates (src/email)
• Features Module (src/features)
┌─ Application Layer ─────────────────────┐
• Next.js Frontend │
• Documentation Routes │
• Template Preview Routes │
• Global Styles (Tailwind CSS) │
• Component Layer ──────────────────────┤
• UI Components │
• (All Atomic Components) │
• Email Components │
• Templates │
• Layout Components │
• Features Layer ───────────────────────┤
• Email Sending System │
• Global Features │
• Hooks │
• Utilities │
• ┘
Important Relationships
• Template components → Email sending system
• UI components → Template components
• Hooks → Components that use them
• Global features → Application-wide services
Technical Details to Highlight
Key technical implementations:
• Email HTML conversion process (src/features/lib/email-to-html.tsx)
• Component registry system
• Theme management
• Query handling (src/features/providers/query-provider.tsx)
Additional Notes
Annotations for:
• Build process flow
• Template customization points
• Tailwind CSS integration points
• React Email integration