feat: make email bodies follow the active theme - #332
Closed
salmonumbrella wants to merge 1 commit into
Closed
Conversation
salmonumbrella
force-pushed
the
feat/theme-aware-email-bodies
branch
from
July 31, 2026 12:07
527ab59 to
a4485ae
Compare
Owner
|
Going to pass on this implementation, but I'm keeping the dark mode request (#228) open. Appreciate the work. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes #228.
HTML email bodies now follow MailFlow's effective theme by default, including built-in themes and custom CSS overrides. The renderer lets the browser resolve sender CSS, then performs a bounded, transactional repair of computed colors; if adaptation cannot complete safely, it reveals the existing readable forced-light rendering instead. Users can choose original colors globally or for the current message.
Changes
Testing
npm run lintnpm run lintnpm run buildnpm run test:bundle(appearance chunk 7,182 gzip bytes; eager safety chunk 445 gzip bytes)git diff --checkContributor License Agreement
By submitting this pull request I confirm that:
third-party material and confirmed it is compatible with the CLA).