forwardemail / email-templates

Create, preview (browser/iOS Simulator), and send custom email templates for Node.js. Made for @forwardemail, @ladjs, @cabinjs, @spamscanner, and @breejs.
https://forwardemail.net/docs/send-emails-with-node-js-javascript
MIT License
3.64k stars 339 forks source link

Support for CSS variables/Sass/Less #433

Closed asimkt closed 2 years ago

asimkt commented 2 years ago

Any plans to support any kind of CSS processors? Most of the CSS now a days have either any of the CSS variables or Sass supports. So if anybody wants to use the same styles from their web app, this is not possible now.

niftylettuce commented 2 years ago

Yes it is possible now. A perfect example of how this is achieved is in the codebase for Forward Email.

https://github.com/forwardemail/forwardemail.net

Specifically see how we re-use the stylesheets here:

https://github.com/forwardemail/forwardemail.net/blob/master/emails/layout.pug#L10