Design and build professional HTML email templates with inline CSS for broad email client compatibility. Use this skill when the user asks to create, design, or build email templates, newsletters, transactional emails (order confirmations, receipts, shipping notifications, password resets), marketing emails, welcome series, onboarding emails, abandoned cart emails, drip campaigns, or any HTML email layout. Covers responsive design, dark mode support, and compatibility with Gmail, Outlook (deskt…
Design and build professional HTML email templates with inline CSS for broad email client compatibility.
Use this skill when the user asks to create, design, or build email templates, newsletters, transactional emails (order confirmations, receipts, shipping notifications, password resets), marketing emails, welcome series, onboarding emails, abandoned cart emails, drip campaigns, or any HTML email layout.
Covers responsive design, dark mode support, and compatibility with Gmail, Outlook (desktop + web), Apple Mail, Yahoo, and mobile clients.
Similar popular skills
Related neighbors and high-traction skills in the same topics — useful to compare before installing.
All critical styles inline — <style> blocks are for progressive enhancement only (resets, dark mode, responsive)
Tables for layout — use role="presentation" on every layout table
System-safe font stacks — font-family: Arial, Helvetica, sans-serif; or Georgia, 'Times New Roman', serif;. Web fonts via @import work in Apple Mail, iOS Mail, and some Android clients only
Images: always set explicit width, height:auto, display:block, border:0, and meaningful alt text
Backgrounds: use inline background-color; background images require VML fallback for Outlook — see references/client-compatibility.md
Spacing: use padding on <td> cells, never margin on tables
Links: always use absolute URLs with https://
Preheader text: hidden preview text improves open rates; pad with ͏‌ to prevent email clients from pulling body content
Accessibility
Use semantic lang attribute on <html>
Add role="presentation" to all layout tables
Provide descriptive alt text for all images
Maintain minimum 4.5:1 contrast ratio for text
Use at least 14px font size for body text
Structure content in logical reading order (not reliant on visual layout)
Include a plain-text version or web-view link
Dark Mode
Support three strategies (apply all):
@media (prefers-color-scheme: dark) in <style> — works in Apple Mail, Outlook.com
color-scheme: light dark meta tag and CSS property — opts into native dark mode handling
Transparent images — use PNGs with transparency so logos adapt to dark backgrounds; provide light/dark logo variants when possible
For full dark mode quirks per client, see references/client-compatibility.md.
Pre-Send Checklist
All CSS is inline (use a CSS inliner tool if needed)
Preview text is set and padded
All images have alt, width, display:block
CTA buttons use VML fallback for Outlook
Links are absolute https:// URLs
Responsive breakpoint at 600px tested
Dark mode classes applied to key elements
Unsubscribe link present (required for marketing emails by CAN-SPAM / GDPR)
Plain-text fallback available
Total email size under 102KB (Gmail clipping threshold)