Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UI Improvement: Include Dark Mode #302

Open
jonnitto opened this issue Jul 23, 2020 · 4 comments
Open

UI Improvement: Include Dark Mode #302

jonnitto opened this issue Jul 23, 2020 · 4 comments

Comments

@jonnitto
Copy link

It would be nice if the UI would support dark mode:

@media (prefers-color-scheme: dark) {

}
@jeffersantoss
Copy link

jeffersantoss commented Aug 3, 2021

Any updates on this topic? Would be nice the dark mode...

@joshmedeski
Copy link

Hey guys, I'd recommend a tool like https://nighteye.app/ if you want something working immediately. It works well for me.

@imme-emosol
Copy link

MailHog uses Mailhog-UI which mainly depends on bootstrap's styling.
The progress of their dark-mode implementation can be tracked at twbs/bootstrap#27514 .

Currently mailhog does not seem to support overriding (or adding) stylesheets into the page from a docker-compose / docker run.

A "less clean" solution could be for mailhog to add/override the style.css with something like:
<link rel="stylesheet" href="css/colors.reset.css">

* {
    color: unset !important;
    background-color: unset !important;
    border-color: unset !important;
}

Which should result in the colors set in the browser defaults.
Many times though, the browser default coloring is colored in a bright color-scheme/-palette.


To provide a dark colored theme would require more work than just putting this (and more) after the other stylesheets:
<link rel="stylesheet" media="screen and (prefers-color-scheme: dark)" href="css/colors.dark.css">

/* A manual set of color styles for the bootstrap components used by mailhog */

/* bootstrap-3.3.2.min.css overrides */
body {
        color: #bbb;
        background-color: #333;
}

.form-control {
        color: #aaa;
        background-color: #000;
}

.navbar-default {
        background-color: #222;
        border-color: #666;
}

.well {
        background-color: #222;
        border: 1px solid #666;
}

@adpe
Copy link

adpe commented Mar 17, 2022

This issue should be tracked within this repository https://github.com/mailhog/MailHog-UI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants