Provides the base HTML email template with dark theme, logo, preheader, content card, and footer links for transactional and marketing emails.
export function EmailLayout({ children, title, preheader, unsubscribeUrl }: EmailLayoutProps) {
return (
<html lang="en">
<head>
<meta charSet="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="color-scheme" content="dark" />
<meta name="supported-color-schemes" content="dark" />
<title>{title}</title>
<style dangerouslySetInnerHTML={{ __html: EMAIL_FONT_STYLES }} />
</head>
<body style={{ margin: 0, padding: 0, ...emailStyles.main }}>
{preheader && (
<table role="presentation" width="100%" cellSpacing="0" cellPadding="0">
<tbody>
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search 40K more like it.
Get a free API key