mailpace/templates
حول
مجموعة من قوالب HTML الأنيقة لرسائل البريد الإلكتروني الخاصة بالمعاملات، مبنية باستخدام TailwindCSS.
تطوير الويب والتطبيقاتالنمو المقاس للنجوم
- خلال 24 ساعة
- ٠
- خلال 7 أيام
- ٠
- خلال 15 يومًا
- ٠
- خلال شهر
- جارٍ جمع السجل
تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.
README.md
الأصلTransactional email templates
Modern, responsive, dark-mode-ready emails built with Maizzle and Tailwind CSS.
About
A set of production-ready transactional email templates for the moments that matter: welcoming new users, confirming an address, resetting a password, sending a receipt, flagging a new sign-in, and closing an account.
Every template is:
- Responsive down to small phones, with a 600px desktop layout.
- Dark-mode ready, using
prefers-color-schemecompatible styles. - Built for real inboxes, with Outlook (MSO) fallbacks handled by Maizzle's render-tested components.
- Accessible, with semantic headings, descriptive link text, image alt text,
and an email
role="article"landmark. - Written as Vue single-file components, so data, conditionals and loops are plain JavaScript instead of fragile string templating.
- Shipped with plaintext versions for the text part of multipart emails.
Yes, they are completely free to use anywhere. If you need a brilliant transactional email provider, we would of course love you to try MailPace.

Templates
| Template | What it does | Preview |
|---|---|---|
| Welcome | Onboard a new user with a clear next step | Live preview |
| Email confirmation | Confirm a new email address | Live preview |
| Password reset | Help a user choose a new password | Live preview |
| Receipt | Send an itemised order receipt | Live preview |
| Security alert | Confirm a new sign-in | Live preview |
| Account deleted | Confirm an account has been closed | Live preview |
Using the templates
Compiled templates live in dist. Each email is available as both
.html and .txt:
dist/
├── account_deleted.html
├── account_deleted.txt
├── confirmation.html
├── confirmation.txt
├── password_reset.html
├── password_reset.txt
├── receipt.html
├── receipt.txt
├── security_alert.html
├── security_alert.txt
├── welcome.html
└── welcome.txt
Copy the files you need into your application or pass them to your sending software. Replace the example URLs, copy and data with your own.
You can also integrate Maizzle's render()
function into Node.js applications and frameworks such as Rails or Laravel.
Customising
Templates are Vue components. Sample data lives at the top of each file in a
<script setup> block, so it is easy to see what to replace:
<script setup>
const firstName = 'Alex'
</script>
<template>
<EmailLayout ...>
<Heading>Welcome, {{ firstName }}.</Heading>
</EmailLayout>
</template>
Use v-if for conditional sections and v-for for lists such as order items or
sign-in details.
Shared components
The look and feel is defined once, in components:
| Component | Purpose |
|---|---|
EmailLayout.vue |
Document shell, card, spacing, title and preheader |
BrandHeader.vue |
Masthead with logo and eyebrow text |
EmailFooter.vue |
Footer links and plaintext fallback |
Callout.vue |
Neutral, info, warning, success and danger callouts |
DetailRow.vue |
Two-column label/value rows |
OrderItem.vue |
Receipt line item |
StatusBadge.vue |
Small status pills such as “Paid” |
Change the palette, typography or spacing in these components and every template follows.
Development
Requires Node.js 20 or newer.
git clone https://github.com/mailpace/templates.git
cd templates
npm install
npm run dev
The dev server gives you live previews at http://localhost:3000.
Build
npm run build
This writes minified HTML and plaintext files to dist/. To inspect readable,
pretty-printed HTML instead:
npm run build:pretty
Project structure
.
├── components/ # Shared Vue email components
├── emails/ # One .vue file per template
├── dist/ # Generated HTML and plaintext
├── maizzle.config.ts # Build configuration
├── tailwind.css # Tailwind / MailPace email preset
└── package.json
A few technical notes
- Built with Maizzle 6, Vue 3 and Tailwind CSS 4.
- CSS is inlined and purged, class names are made email-safe, and colors are converted to six-digit hex for compatibility.
- Buttons use Maizzle's
<Button>component, which handles Outlook padding without VML. - Images use the
<Img>component and are served fromhttps://docs.mailpace.com/img/. Updateurl.baseinmaizzle.config.tsto use your own asset host. - The build runs in GitHub Actions, and fails if any template or plaintext output is missing.
More documentation
Issues and pull requests
Found a problem or have a template idea? Open an issue or pull request on GitHub, or email [email protected].
Want to send transactional email through an independent, privacy-focused and eco-friendly provider?
Sign up for an account at MailPace.
License
This code is open-source software licensed under the MIT license.
استكشف مشاريع مشابهة ومرتبطة
جارٍ التحميل…