inertia start

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

  1. Run composer install.
  2. Run npm install.
  3. 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.
  4. Rebuild frontend assets with npm run build or your normal frontend workflow.
  5. If you customized resources/views/vendor/mail/html/layout.blade.php, logo.blade.php, or themes/default.css, merge the dark mode styles, the second logo image, and the email-body class on <body>. Without the class, Gmail's forced dark mode rules do not apply.
  6. Review your own email templates and custom mail CSS against a dark background, and check any hard-coded colors in them.