Skip to content
Corex

EmailBrand

Corex\Email\Design\EmailBrand · class · Add-ons layer

What an email is drawn from: whose it is, and in which colours and type (spec 106). The header shows the site’s name and logo, not CoreX’s: the email is from the site to its customer. The colours and the type are CoreX’s until a site gives its own.

Section titled “__construct(string $name, string $homeUrl, string $logo, string $direction, string $language, string $footer, EmailPalette $light, EmailPalette $dark, int $logoWidth, int $logoHeight)”

The size a logo is drawn at: inside the box, its proportions kept, never enlarged.

This brand with another footer line, or ” for the standard one naming the site.

withLogoSize(int $width, int $height): self

Section titled “withLogoSize(int $width, int $height): self”

This brand with its logo’s own size said, in pixels: what a brand made in a site’s own filter calls, so that a design can fit the logo it names.

Whether the logo is the name written out, and not a mark the name stands beside. Told by its shape, which is all that is known of it: at least twice as wide as it is tall reads as a line of lettering. A squarer one is a mark, and a design writes the site’s name beside it as text, so that the name is there when images are not shown.

withPalettes(EmailPalette $light, EmailPalette $dark): self

Section titled “withPalettes(EmailPalette $light, EmailPalette $dark): self”

This brand in other colours.

Section titled “standard(string $name, string $homeUrl, string $logo, string $direction, string $language, string $footer): self”

A site’s emails in CoreX’s own colours.