Skip to main content
Every email Hexclave sends is built from two pieces:
  • A template - your content (the body, subject, and notification category), written as a React Email component.
  • A theme - the shared layout and branding that wraps that content (header, footer, background, logo, unsubscribe link).
Templates and themes are independent: one template renders consistently across any theme, and changing a theme restyles every email at once. Both ship with sensible built-ins and can be customized or replaced from the dashboard.

Templates

Templates are React Email components written in TSX. Each template receives the current user, project, and any custom variables you pass when sending.
Key concepts:
  • variablesSchema - Define the shape of your template variables using arktype. Hexclave validates variables against this schema at render time.
  • <Subject> - Sets the email subject line from inside the template.
  • <NotificationCategory> - Declares whether this is a "Transactional" or "Marketing" email.
  • PreviewVariables - Sample data used for the live preview in the dashboard editor.

Built-in templates

Hexclave ships with templates for common auth and payment flows. These are sent automatically when the matching event happens: You can customize any built-in template from the dashboard under Emails → Templates.

Themes

Themes wrap your email content in a consistent layout - header, footer, background, branding. Hexclave includes three built-in themes:
  • Default Light - Clean white background with subtle shadow
  • Default Dark - Dark background with light text
  • Default Colorful - Light purple background with an accent border
You can create custom themes in the dashboard under Emails → Email Settings → Themes. Themes are also TSX components:
Set a default theme for your project in the dashboard. You can also override the theme per-email with the themeId option, or pass themeId: false to send without any theme.
  • Drafts - compose in the dashboard and send with draftId (not TSX templates).
  • Emails guide - start-to-finish implementation: server, templates, sending, and delivery.