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:
@@ -1,15 +1,15 @@
|
||||
<p style="{{style "p"}}">Hello <strong>{{.Name}}</strong>,</p>
|
||||
<p style="margin:0;">{{.Intro}}</p>
|
||||
{{range .Artists}}
|
||||
<p style="{{style "group"}}">{{if .URL}}<a href="{{.URL}}" style="{{style "link"}}">{{.Name}}</a>{{else}}{{.Name}}{{end}}</p>
|
||||
<p class="{{class "group"}}" style="{{style "group"}}">{{if .URL}}<a href="{{.URL}}" class="{{class "link"}}" style="{{style "link"}}">{{.Name}}</a>{{else}}{{.Name}}{{end}}</p>
|
||||
{{if .Titles}}<ul style="{{style "list"}}">
|
||||
{{range .Titles}}<li style="{{style "item"}}">{{if .URL}}<a href="{{.URL}}" style="{{style "link"}}">{{.Title}}</a>{{else}}{{.Title}}{{end}}</li>
|
||||
{{range .Titles}}<li style="{{style "item"}}">{{if .URL}}<a href="{{.URL}}" class="{{class "link"}}" style="{{style "link"}}">{{.Title}}</a>{{else}}{{.Title}}{{end}}</li>
|
||||
{{end}}</ul>{{end}}
|
||||
{{end}}{{if .Items}}
|
||||
<ul style="margin:16px 0 0; padding-left:20px;">
|
||||
{{range .Items}}<li style="margin:8px 0;">
|
||||
{{if .URL}}<a href="{{.URL}}" style="{{style "link"}} font-weight:600;">{{.Title}}</a>{{else}}<strong>{{.Title}}</strong>{{end}}
|
||||
{{if .Body}}<br><span style="{{style "quiet"}}">{{.Body}}</span>{{end}}
|
||||
{{if .URL}}<a href="{{.URL}}" class="{{class "link"}}" style="{{style "link"}} font-weight:600;">{{.Title}}</a>{{else}}<strong>{{.Title}}</strong>{{end}}
|
||||
{{if .Body}}<br><span class="{{class "quiet"}}" style="{{style "quiet"}}">{{.Body}}</span>{{end}}
|
||||
</li>
|
||||
{{end}}</ul>
|
||||
{{end}}
|
||||
|
||||
Reference in New Issue
Block a user