Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
Quickly create responsive HTML emails that work on any device and client. Even Outlook.
Foundation for Emails is an open-source framework for building responsive HTML emails that render consistently across every major email client, including Outlook, by compiling simple Inky template tags into the complex table-based HTML that email clients require.
Foundation for Emails, previously known as Ink, is a framework maintained by the Foundation team. It provides a tested library of HTML and CSS components—containers, rows, columns, buttons, and menus—for constructing email layouts. The framework takes your email markup as input and uses the Inky templating language plus a Node.js build pipeline to output inlined HTML ready to send. It also ships as a Ruby gem for Rails integration.
<container>, <row>, and <column> that compile into the nested tables required for reliable email layout.npm install, and start building.npm run build performs a complete email inlining process, embedding CSS directly into the HTML.gem 'foundation_emails' to your Gemfile and @import "foundation-emails" in your stylesheet; the inky-rb gem bundles it for server-side Inky compilation.npm run test:visual compiles test pages that can be uploaded to Litmus for cross-client testing.npm install, then write your email using Inky tags and SCSS.npm start to preview in a BrowserSync browser window, or npm run build to produce final inlined HTML.Yes, it is an open-source project. The code is available on GitHub under the Foundation organization, and you can file issues or submit pull requests directly.
The framework's components are tested across every major email client, including Outlook, to ensure consistent rendering.
The main template stack requires Node.js no greater than version 10. If you prefer a Ruby environment, you can use the foundation_emails gem inside a Rails project without Node.
Starting with Inky v2.0, Foundation for Emails will merge into the Inky project. The styling portion becomes Inky Styles, and the Inky engine is being rewritten in Rust with bindings for JavaScript, PHP, Python, Ruby, and Go.
