premailer-rails
CSS styled emails without the hassle. (by fphilipe)
postcss-css-variables
PostCSS plugin to transform CSS Custom Properties(CSS variables) syntax into a static representation (by MadLittleMods)
premailer-rails | postcss-css-variables | |
---|---|---|
3 | 1 | |
1,722 | 546 | |
0.0% | 0.2% | |
3.6 | 1.7 | |
about 1 year ago | almost 2 years ago | |
Ruby | JavaScript | |
MIT License | GNU General Public License v3.0 or later |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
premailer-rails
Posts with mentions or reviews of premailer-rails.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-01-17.
- Why are "already initialized constant" warnings so common?
-
How to Send Tailwindcss-Styled Emails With Ruby on Rails 7
But this won't work in Rails out of the box. Unless you create your layouts using HTML tables and use something like the premailer-rails gem to inline your CSS (I haven't tried this approach).
-
How to Inline CSS Styles in Email Mailers Using premailer-rails (Video)
I like using premailer-rails to inline the CSS in my Mailer, which allows me to have super clean views while supporting old Email clients (like Outlook).
postcss-css-variables
Posts with mentions or reviews of postcss-css-variables.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-02-16.
-
How to Inline CSS Styles in Email Mailers Using premailer-rails (Video)
More recently, I started using postcss-css-variables to convert CSS variables into values so I can use modern CSS frameworks like Bootstrap 5 & Tailwind within my mailers.
What are some alternatives?
When comparing premailer-rails and postcss-css-variables you can also consider the following projects:
roadie-rails - Making HTML emails comfortable for the Rails rockstars
Roadie - Making HTML emails comfortable for the Ruby rockstars
MailCatcher - Catches mail and serves it through a dream.
LetterOpener - Preview mail in the browser instead of sending.
Ahoy Email - First-party email analytics for Rails