diff --git a/roles/custom/matrix-client-element/templates/welcome.html.j2 b/roles/custom/matrix-client-element/templates/welcome.html.j2 index d505e2fa2..ff97c82fe 100644 --- a/roles/custom/matrix-client-element/templates/welcome.html.j2 +++ b/roles/custom/matrix-client-element/templates/welcome.html.j2 @@ -167,6 +167,15 @@ we don't have an account and should hide them. No account == no guest account ei } } +/* Element Web (with its default use_system_theme behavior) renders its dark background + when the system prefers a dark color scheme, so the welcome text follows the same signal. + #ebeef2 is the light text color Element uses with the dark theme. */ +@media (prefers-color-scheme: dark) { + .mx_Parent { + color: #ebeef2; + } +} +