Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Enforce white background even in dark mode to match the styling requirements

Henriette Dargec787b8f661bc
diff --git a/app/views/layouts/mailer.html.erb b/app/views/layouts/mailer.html.erb
index 213fb1d3695..f5793ab5d84 100644
--- a/app/views/layouts/mailer.html.erb
+++ b/app/views/layouts/mailer.html.erb
@@ -40,7 +40,15 @@ See COPYRIGHT and LICENSE files for more details.
color: #484848;
background: #FFFFFF;
}
-
+
+ /* Enforcing the white background */
+ @media (prefers-color-scheme: dark) {
+ body {
+ color: #484848 !important;
+ background: #FFFFFF !important;
+ }
+ }
+
h1, h2, h3 { font-family: "Trebuchet MS", Verdana, sans-serif; margin: 0px; }
h1 { font-size: 1.2em; }
h2, h3 { font-size: 1.1em; }