Plug ang and play email templates for product people ✌️
I created this package for selfish purposes, feel free to use in your own projects.
// 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
- Figma - Best UI design platform
- MJML - Great for email templates!
- Gulp - Compile MJML files
- Esign - E signature maker
MIT