Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Critical | 9,797 | 1,162 | 129 | 8 days ago | 96 | April 10, 2023 | 40 | apache-2.0 | JavaScript | |
Extract & Inline Critical-path CSS in HTML pages | ||||||||||
Radium | 7,442 | 5,009 | 728 | a year ago | 73 | March 02, 2022 | 83 | mit | JavaScript | |
A toolchain for React component styling. | ||||||||||
Csstoinlinestyles | 5,702 | 48,054 | 214 | 4 months ago | 23 | December 08, 2021 | 31 | bsd-3-clause | PHP | |
CssToInlineStyles is a class that enables you to convert HTML-pages/files into HTML-pages/files with inline styles. This is very usefull when you're sending emails. | ||||||||||
Reactcss | 1,574 | 3,818 | 231 | 4 years ago | 26 | September 07, 2017 | 6 | mit | JavaScript | |
:lipstick: Inline Styles in JS | ||||||||||
Responsive Html Email Signature | 741 | 4 months ago | 16 | March 29, 2022 | 10 | mit | HTML | |||
✨ Template generator for (responsive) emails & email signatures | ||||||||||
Material Auto Rotating Carousel | 432 | 54 | 5 | 7 months ago | 28 | August 21, 2019 | 31 | mit | JavaScript | |
Introduce users to your app with this Material-style carousel. | ||||||||||
Reactscrollbar | 419 | 285 | 80 | 3 years ago | 22 | April 18, 2019 | 58 | mit | JavaScript | |
Scrollbar component for React | ||||||||||
Unistyle | 316 | 6 | 8 | 8 years ago | 9 | January 27, 2016 | 2 | JavaScript | ||
Write modular and scalable CSS using the next version of ECMAScript | ||||||||||
Babel Plugin Css In Js | 295 | 27 | 5 | 6 years ago | 15 | January 22, 2017 | 6 | mit | JavaScript | |
A plugin for Babel v6 which transforms inline styles defined in JavaScript modules into class names so they become available to, e.g. the `className` prop of React elements. While transforming, the plugin processes all JavaScript style definitions found and bundles them up into a CSS file, ready to be requested from your web server. | ||||||||||
Material Ui Image | 213 | 72 | 21 | 10 months ago | 33 | April 24, 2021 | 26 | mit | JavaScript | |
Material style image with loading animation |
CssToInlineStyles is a class that enables you to convert HTML-pages/files into HTML-pages/files with inline styles. This is very useful when you're sending emails.
The recommended installation way is through Composer.
$ composer require tijsverkoyen/css-to-inline-styles
use TijsVerkoyen\CssToInlineStyles\CssToInlineStyles;
// create instance
$cssToInlineStyles = new CssToInlineStyles();
$html = file_get_contents(__DIR__ . '/examples/sumo/index.htm');
$css = file_get_contents(__DIR__ . '/examples/sumo/style.css');
// output
echo $cssToInlineStyles->convert(
$html,
$css
);
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
. (Note: using <meta charset="UTF-8">
does NOT work!)