MJML Email Template Generator
Generate clean, professional MJML email templates that render well across all email clients.
Process
- •Ask what type of email template is needed if not clear
- •Read references/design-patterns.md for the component library and design system
- •Assemble the template using the components and patterns from the reference
- •Adapt the brand color to match the user's project if known
- •Use Jinja2 syntax (
{{ variable }}) for dynamic content - •Output the complete
.mjmlfile
Design Principles
- •One-column layout - emails are read on mobile, keep it single column
- •White content card on light gray background - clean and readable
- •Colored header with logo - instant brand recognition
- •Generous whitespace - don't crowd elements, let content breathe
- •Clear visual hierarchy - title → greeting → content → action → footer
- •One primary CTA per email - don't compete for attention
- •Link fallback below buttons - some email clients block buttons
- •Info boxes for structured data (key-value pairs, order details, account info)
- •Consistent typography - size and weight convey importance, not decoration
Quality Checklist
Before delivering a template, verify:
- •Uses
mj-attributesfor base styles (font, text, button defaults) - •Has header with logo placeholder
- •Has proper footer with company info, links, unsubscribe
- •All dynamic content uses
{{ variable }}syntax - •Spacing follows the pattern: generous top padding on first section, tighter between
- •Buttons have readable contrast and sufficient padding
- •No inline width on
mj-columnunless multi-column is intended - •Font stack includes system fallbacks