Skip to content

After years of seeing horrible email templates, one has to find a solution

Notifications You must be signed in to change notification settings

dubem-design/saas-email-templates

Repository files navigation

WIP - Saas Email Templates

Plug ang and play email templates for product people ✌️

I created this package for selfish purposes, feel free to use in your own projects.

npm version

Usage

// maybe in like the boostrap/ startup part of your backend
import mailSetup from '@dubem-design/saas-email-templates';

const mailTemplate = new mailSetup({
  config, // Configure at setup level
	layout, // Template Layout carries sections like header, footer and body
  // items from "sections", goes into the body component
});

const { html, text } = mailTemplate.generate({ 
  config, // override at page level
  sections // Sections for the page
});
// page configuration options &
// definition of page sections

See Layout, Config & Sections Options

Layout

Config

Sections

Resources

  • Figma - Best UI design platform
  • MJML - Great for email templates!
  • Gulp - Compile MJML files
  • Esign - E signature maker

License

MIT

About

After years of seeing horrible email templates, one has to find a solution

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published