v1.2.2
v1.2.2
This release adds dark mode support to Markdown emails.
Added
- Added dark mode styles to the Markdown mail layout, applied under
prefers-color-scheme: dark. - Added
public/inertia-start-logo-dark.png, a dark-mode variant of the application logo. - Added dark mode rules for clients that do not honor
prefers-color-scheme.
Dependencies
- Updated minor and patch versions of Composer and npm dependencies.
Upgrade Guide
- Run
composer install. - Run
npm install. - Add
public/inertia-start-logo-dark.png. If you replaced the application logo with your own, add a dark variant under that name as well: the logo component embeds the file on every Markdown email, so a missing file breaks sending. - Rebuild frontend assets with
npm run buildor your normal frontend workflow. - If you customized
resources/views/vendor/mail/html/layout.blade.php,logo.blade.php, orthemes/default.css, merge the dark mode styles, the second logo image, and theemail-bodyclass on<body>. Without the class, Gmail's forced dark mode rules do not apply. - Review your own email templates and custom mail CSS against a dark background, and check any hard-coded colors in them.