GithubHelp home page GithubHelp logo

runt18 / foundation-emails Goto Github PK

View Code? Open in Web Editor NEW

This project forked from foundation/foundation-emails

0.0 2.0 0.0 7.06 MB

Quickly create responsive HTML emails that work on any device and client. Even Outlook.

Home Page: http://foundation.zurb.com/emails

License: MIT License

JavaScript 5.44% CSS 26.40% HTML 68.16%

foundation-emails's Introduction

Foundation for Emails

Foundation for Emails (previously known as Ink) is a framework for creating responsive HTML emails that work in any email client—even Outlook. Our HTML/CSS components have been tested across every major email client to ensure consistency. And with the Inky templating language, writing HTML emails is now even easier.

Getting Started

Foundation for Emails 2 is not yet fully released, so for now, the main way to get started is with our email template stack. To use the stack, you'll need Node.js installed on your machine.

To set up the emails template, run these commands:

git clone https://github.com/zurb/foundation-emails-template project
cd project
npm install

Then run npm start to run the project. A new browser window will open with a BrowserSync server showing the finished files.

Run npm run build to do a full email inlining process.

Documentation

Check out our Migration Guide for upgrading an existing template or for more in-depth code examples.

The documentation is not yet live online (or finished!), but you can compile what we have on your own machine.

Run these commands to set up the documentation:

git clone https://github.com/zurb/foundation-emails.git
cd foundation-emails

Foundation for Emails 2.0 documentation is on the v2.0 branch.

git fetch
git checkout v2.0
npm install

Then run npm start to compile the documentation. When it finishes, a new browser window will open pointing to a BrowserSync server displaying the documentation.

Testing

Run npm run test:visual to compile the visual regression tests. All of the pages under test/visual/pages are compiled and inlined. From there, they can be uploaded to Litmus for testing.

Inky

Inky is our new templating language that converts simple HTML into the complex tables required for email layout.

The parser converts a set of custom HTML tags, expanding them out into full HTML syntax. Below is a list of every custom element.

Grid

<container>
  <row>
    <column small="12" large="4"></column>
    <column small="12" large="8"></column>
  </row>
</container>

Block Grid

<block-grid up="3">
  <td></td>
  <td></td>
  <td></td>
</block-grid>

Components

<button href="http://zurb.com"></button>
<menu>
  <item href="one.html">Item One</item>
  <item href="one.html">Item Two</item>
  <item href="one.html">Item Three</item>
</menu>

Contributing

As an open source project, we looooove our community support. Please file issues, or better yet pull requests on the Foundation for Emails Repo. We're stoked to hear your feedback, make improvements, and release this to the public soon!

Copyright (c) 2016 ZURB, inc.

foundation-emails's People

Contributors

alex-ketch avatar anirvan avatar calvincorreli avatar codeanimal avatar emmanuelgautier avatar faustgertz avatar franciscolourenco avatar gakimball avatar jaybizzle avatar jmtame avatar joffrey-parisot avatar jonschlinkert avatar kball avatar lotsofcode avatar lurnid avatar macbookandrew avatar mateuszbobola avatar metaprinter avatar michaelwheeler avatar phillipalexander avatar pmhou avatar pracucci avatar rafibomb avatar remailednet avatar rjocoleman avatar tdhartwick avatar thedeerchild avatar ulinaaron avatar utcwebdev avatar

Watchers

 avatar  avatar

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.