@vcl/email

0.6.3 • Public • Published

VCL email

Basic HTML email styling.

Features

Inspired by (https://github.com/mailgun/transactional-email-templates).

  • Is responsive with two break points 640px and 1024px viewport width.
  • Tries to address some of the infinite quirks of email clients.
  • All rules within media queries for smaller screens are !important to survive CSS inlining.

Usage

Make sure to include CSS resulting from this module only for emails. Most likely you want to inline the generated CSS in the HTML code as this provides the best compatibility.

The following invoice example shows how to use the classes together with classes from other VCL modules.

invoice example

Classes

  • vclEmailViewport
  • vclEmailBody
  • vclEmailFooter

Modifiers

Variables

  • --email-viewport-color
  • --email-viewport-bg-color
  • --email-body-bg-color
  • --email-body-border-color

Demo

example.html on GH-pages.

Readme

Keywords

Package Sidebar

Install

npm i @vcl/email

Weekly Downloads

1

Version

0.6.3

License

MIT

Unpacked Size

13.9 kB

Total Files

9

Last publish

Collaborators

  • marcode95
  • vanthome
  • dani723
  • vilsol
  • jurgis-upenieks