This project is not covered by Drupal’s security advisory policy.

This module adds the inline_css filter to Drupal's Twig environment. This is useful for inline CSS inside of emails, PDFs, or just your regular markup.

If not installed via composer, you'll need the library.
composer require twig/cssinliner-extra

Example:

{% apply inline_css %}
    <html>
        <head>
            <style>
                p { color: red; }
            </style>
        </head>
        <body>
            <p>Hello CSS!</p>
        </body>
    </html>
{% endapply %}
Supporting organizations: 
Initial Development

Project information

Releases