0.1.5 • Published 1 year ago

@dubem-design/saas-email-templates v0.1.5

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

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