feat(mailer): emails follow a light system theme, and stay dark otherwise
release / go (push) Successful in 2m0s
release / web (push) Successful in 1m26s
release / govulncheck (push) Successful in 20s
release / integration (push) Successful in 4m16s
release / android (push) Successful in 4m23s
release / Build signed APK (push) Successful in 4m52s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Build + push container image (push) Successful in 17s
release / Verify release artifacts (tag releases only) (push) Skipped
release / go (push) Successful in 2m0s
release / web (push) Successful in 1m26s
release / govulncheck (push) Successful in 20s
release / integration (push) Successful in 4m16s
release / android (push) Successful in 4m23s
release / Build signed APK (push) Successful in 4m52s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Build + push container image (push) Successful in 17s
release / Verify release artifacts (tag releases only) (push) Skipped
Every email is still drawn dark inline, so a client that can't tell the reader's theme shows the app's own look. A stylesheet gives each coloured element the design system's light colours when the reader's system is light. A test checks that every element drawn dark carries the class that lightens it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -3,22 +3,25 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="color-scheme" content="dark">
|
||||
<meta name="supported-color-schemes" content="dark">
|
||||
<meta name="color-scheme" content="dark light">
|
||||
<meta name="supported-color-schemes" content="dark light">
|
||||
<style>
|
||||
{{lightTheme}}
|
||||
</style>
|
||||
</head>
|
||||
<body style="{{style "page"}}">
|
||||
<table role="presentation" width="100%" cellpadding="0" cellspacing="0" border="0" style="{{style "wrap"}}">
|
||||
<body class="{{class "page"}}" style="{{style "page"}}">
|
||||
<table role="presentation" width="100%" cellpadding="0" cellspacing="0" border="0" class="{{class "wrap"}}" style="{{style "wrap"}}">
|
||||
<tr><td align="center" style="padding:32px 16px;">
|
||||
<table role="presentation" width="100%" cellpadding="0" cellspacing="0" border="0" style="max-width:560px;">
|
||||
<tr><td style="{{style "brand"}}">Minstrel</td></tr>
|
||||
<tr><td style="{{style "card"}}">
|
||||
<h1 style="{{style "heading"}}">{{.Frame.Heading}}</h1>
|
||||
<tr><td class="{{class "brand"}}" style="{{style "brand"}}">Minstrel</td></tr>
|
||||
<tr><td class="{{class "card"}}" style="{{style "card"}}">
|
||||
<h1 class="{{class "heading"}}" style="{{style "heading"}}">{{.Frame.Heading}}</h1>
|
||||
{{template "content" .Content}}
|
||||
</td></tr>
|
||||
<tr><td style="{{style "footer"}}">
|
||||
<tr><td class="{{class "footer"}}" style="{{style "footer"}}">
|
||||
Sent by {{.Frame.ServerName}} because {{.Frame.Reason}}.<br>
|
||||
{{- if .Frame.NotificationSettings}}
|
||||
{{with .Frame.SettingsURL}}<a href="{{.}}" style="{{style "faint"}}">Choose which notifications are emailed to you</a>{{else}}Choose which notifications are emailed to you in Minstrel, under Settings → Notifications.{{end}}<br>
|
||||
{{with .Frame.SettingsURL}}<a href="{{.}}" class="{{class "faint"}}" style="{{style "faint"}}">Choose which notifications are emailed to you</a>{{else}}Choose which notifications are emailed to you in Minstrel, under Settings → Notifications.{{end}}<br>
|
||||
{{- end}}
|
||||
— Minstrel
|
||||
</td></tr>
|
||||
|
||||
Reference in New Issue
Block a user