# fphilipe/premailer-rails

CSS styled emails without the hassle.

Repository: https://github.com/fphilipe/premailer-rails
Canonical: https://ross.abutalabs.com/products/premailer-rails
Language: Ruby
License: MIT
License Family: permissive
Topics: email, css, inline-css, rails, ruby, gem
Last push: 2024-06-17T05:56:17+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 5632, "days_push": 807, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1765, forks 257 (observed 2026-08-28T04:05:33.070437+00:00)

## What it is
A Ruby gem that automatically inlines CSS into HTML emails by converting linked stylesheets and style tags into inline style attributes. It integrates with ActionMailer as a delivery hook and also works without Rails.

## Use cases
- style HTML emails with CSS that renders in Gmail and Outlook
- inline CSS into ActionMailer emails automatically
- keep email HTML and CSS in separate files
- make emails compatible with clients that ignore linked stylesheets
- use email CSS inlining in Sinatra without Rails

## When to choose
- you send HTML emails from a Rails app and want zero-config CSS inlining
- you need emails to render correctly in clients that strip <style> tags
- you want to maintain email styles in separate stylesheets

## When to avoid
- you send only plain-text emails
- you don't use Ruby
- you need full email template design tooling rather than CSS inlining

## Facets
- artifact type: library
- maturity: stable
- function: email, templating, middleware
- domain: email, web-development, backend
- platform: ruby
- tags: css-inlining, actionmailer, html-email, rails-gem, premailer, web-server

## Member repositories
- fphilipe/premailer-rails (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:33.070437+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:26:36.691958+00:00, confidence not recorded.
  - readme: https://github.com/fphilipe/premailer-rails (fetched 2026-08-28T04:05:33.070437+00:00, sha 2f7655e97b52)
- Data as of 2026-08-30T08:39:29.467469+00:00.
