{{- /* The Vantage email shell. Every colour in the email system lives in this file and nowhere else, in the same way no component in web/, site/ or adminsite/ carries a hex. The values are web/app/globals.css's tokens — an email is read before the recipient clicks through to the control plane, so the two should not look like different products. They are written as literal hex here because email clients support neither var() nor a reliable prefers-color-scheme, so the usual token indirection is not available: when you change a token in the three globals.css files, change it here too. --ground #071628 --rule #1e3855 --panel #0d2138 --accent #5b9be8 --panel-2 #102842 --up #4fb484 --ink #e4ecf6 --down #e2705a --ink-2 #9fb3ca --pend #d6a63f --ink-3 #71879f --well #04101f Layout is tables and inline styles throughout, which is not a stylistic choice — it is the only thing Outlook renders predictably. A message file overrides "title", "pill" and "body"; the empty defaults below exist so that a message needing no pill does not have to define one. */ -}} {{- define "title"}}{{end -}} {{- define "pill"}}{{end -}} {{- define "body"}}{{end -}} {{- /* p renders one paragraph of body copy. */ -}} {{- define "p" -}}
{{.}}
{{- end -}} {{- /* lead is the first paragraph: same size, brighter, sets the subject. */ -}} {{- define "lead" -}}{{.}}
{{- end -}} {{- /* button takes dict "label" "…" "url" "…". The bare URL is printed underneath on purpose: a plain-text-preferring client, a stripped-styles inbox and a forwarded message all lose the anchor, and a verification email whose link cannot be reached is a support ticket. */ -}} {{- define "button" -}}| {{.label}} |
Or paste this into your browser:
{{.url}}
{{.}}
{{- end -}}
{{- /* note is a quoted callout, used for a free-text message we did not
write ourselves. */ -}}
{{- define "note" -}}
{{.}}
{{- end -}} {{- /* rows takes a list of dict "k" "…" "v" "…". */ -}} {{- define "rows" -}}| {{.k}} | {{.v}} |