Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Css To Inline Styles

Css To Inline Styles Laravel Package

voku/css-to-inline-styles

voku/css-to-inline-styles converts CSS rules into inline style attributes on HTML elements, making it useful for email templates and clients that strip or ignore style tags. It is a PHP library for reliably inlining stylesheets directly into markup.

View on GitHub
Deep Wiki
Context7

voku/css-to-inline-styles converts CSS rules into inline style attributes so HTML renders reliably in email clients and other environments that strip <style> blocks. It wraps TijsVerkoyen/CssToInlineStyles, maintained for modern PHP and improved compatibility.

Pass it an HTML document plus internal or external CSS, and it parses selectors with Symfony's CssSelector, applies matching declarations to each element, and removes the original stylesheets. This produces self-contained markup that survives strict mail clients like Outlook and Gmail.

  • Converts internal and external CSS into inline styles
  • Handles class, ID, attribute and descendant selectors
  • Respects specificity and !important ordering
  • Strips processed <style> tags from output
  • PHP 7/8 compatible, PSR-4 autoloaded
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
dbravoan/dbcms-admin-theme-dbcms
dbravoan/dbcms-theme-db-cyber
dbravoan/dbcms-blocks-basic
dbravoan/dbcms-module-content-audit
dbravoan/dbcms-module-ai-assistant
paygate-to/paygate-php
padosoft/askmydocs-connector-base
defstudio/supercharged-carbon
bernskioldmedia/laravel-matomo
bernskioldmedia/laravel-harvest
bernskiold/laravel-data-scrubber
bernskiold/laravel-currency-converter
bernskiold/laravel-campaign-monitor
bernskioldmedia/laravel-autotranslate
siberfx/telegram-bot
roy-sandip/laravel-view-extended
gregsphotography/site-builder-core
roy-sandip/laravel-view
anodyne/blade-fluentui-icons
webx-ui/module-catalog-collections