Giter VIP home page Giter VIP logo

email-templates's Introduction

email-templates

Create responsive emails that look decent...even in Outlook!

Getting started

To get running, you'll need to have the following installed:

Once you have those, just run:

npm install
npm start

Creating a new email

The files you'll likely edit are:

  • template/index.hbs : for the layout/copy of the email
  • template/style.css : for all your email-specific styles
  • template/variables.js : for the title, colors, and typography

In index.hbs, there are several pre-made sections. Basically, you'll copy-paste the sections you need and delete what you don't need. Then, throw in your copy/images. If you think of some other useful section, throw it it!

The base styles (e.g. typography and base font colors) can likely be set in variables.js.

Finally, whatever other styles you need can be set in style.css. Note: because a CSS inlining process is being used, you can use several CSS3 selectors (e.g. :nth-of-type) to match certain elements. Because it's being inlined, you don't have to worry about client support for selectors.

Piece of ๐Ÿฐ!

Good Resources

email-templates's People

Contributors

blakek avatar greenkeeper[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

email-templates's Issues

Re-write some logic for updated Gmail rendering

Gmail is rolling out support for media queries and CSS styling in the <head>. Some components could be adjusted to support this so only Outlook and Windows Phone won't show the mobile view properly.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.