# posthtml-inline-css **Repository Path**: mirrors_posthtml/posthtml-inline-css ## Basic Information - **Project Name**: posthtml-inline-css - **Description**: CSS Inliner - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-25 - **Last Updated**: 2025-09-21 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # posthtml-inline-css [![npm version](https://badge.fury.io/js/posthtml-inline-css.svg)](http://badge.fury.io/js/posthtml-inline-css) [![Build Status](https://travis-ci.org/posthtml/posthtml-inline-css.svg?branch=master)](https://travis-ci.org/posthtml/posthtml-inline-css) [PostHTML](https://github.com/posthtml/posthtml) plugin for inlining CSS to style attrs. Many modern email clients nowadays support CSS in a `
Hello!
'; posthtml([require('posthtml-inline-css')()]) .process(html) .then(function (result) { console.log(result.html); }); //
Hello!
``` ### PostCSS ```js var posthtml = require('posthtml'), postcss = require('postcss'), postcssObj = postcss(/* some PostCSS plugins */).process('div { color: white }'); posthtml([require('posthtml-inline-css')(postcssObj)]) .process('
Hello!
') .then(function (result) { console.log(result.html); }); //
Hello!
```