[GH-ISSUE #182] When switching from Light/Auto to Dark theme, email text is black on dark. #120

Closed
opened 2026-03-15 12:41:22 +03:00 by kerem · 2 comments
Owner

Originally created by @mbomb007 on GitHub (Oct 3, 2023).
Original GitHub issue: https://github.com/axllent/mailpit/issues/182

  1. Open an email, viewing the HTML (the email body, not the HTML Source).
  2. Set the theme setting to Auto (light) or Light.
  3. Refresh the page.
  4. Set the setting to Dark.
  5. It will look like the below image, until you switch to another tab and back, or flip the setting to Light then Dark again.

Mailpit dark

Originally created by @mbomb007 on GitHub (Oct 3, 2023). Original GitHub issue: https://github.com/axllent/mailpit/issues/182 1. Open an email, viewing the HTML (the email body, not the HTML Source). 1. Set the theme setting to Auto (light) or Light. 1. Refresh the page. 1. Set the setting to Dark. 1. It will look like the below image, until you switch to another tab and back, or flip the setting to Light then Dark again. ![Mailpit dark](https://github.com/axllent/mailpit/assets/22807401/383ad9a0-594a-4f6c-b7dd-550fa125b4ce)
kerem 2026-03-15 12:41:22 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@axllent commented on GitHub (Oct 3, 2023):

Thanks for reporting this, it seems to be a Chrome bug where the iframe inherits the background color from the containing page. I'll look into a fix.

<!-- gh-comment-id:1745787476 --> @axllent commented on GitHub (Oct 3, 2023): Thanks for reporting this, it seems to be a Chrome bug where the iframe inherits the background color from the containing page. I'll look into a fix.
Author
Owner

@axllent commented on GitHub (Oct 5, 2023):

This should be fixed now in the latest release (v1.9.5). Thanks for reporting the issue 👍

<!-- gh-comment-id:1748023718 --> @axllent commented on GitHub (Oct 5, 2023): This should be fixed now in the latest release (v1.9.5). Thanks for reporting the issue :+1:
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/mailpit#120
No description provided.