UNPKG

@awesomate/hosting-mcp

Version:

Awesomate MCP server — lets Claude manage your Awesomate WordPress hosting, plan, limits, n8n automations, and build Node/static apps + databases

100 lines (82 loc) • 6.56 kB
# Email: how an email looks What an email says (one person, one thing, one button), subject lines, email types and the law are in the awesomate-email skill and its `references/copywriting.md`. This file is how it looks. Pick the brand first (SKILL.md section 1); everything here assumes you know whose look it is. ## The rules for every email - **Single column** unless the email truly lists several things side by side (products, events), and even then it stacks to one column on a phone. - **Real text, never text inside a picture.** The offer, the date and the button are live text. - **Body text at least about 16 px**, with short paragraphs. - **Buttons are real links** with words that say what happens ("Book a storm-season check"), never "click here". - **Alt text on every picture** ([images.md](images.md) has the picture rules: PNG, JPG or GIF, never SVG, from the account's Files). - **Works in dark mode.** Don't rely on a white background to make a picture or a dark text colour readable; a logo needs a transparent background or its own light padding. - **A plain-text version always.** The hub writes it from the email's words. - **No attachments:** link to the file instead (a download in Files, or a page). ## The brand look in an email Use the brand the email belongs to. With a design system (`next: use_system`), its colours and type are the email's. With the look on Your business (`next: use_facts`), its main colour, logo and font are. With neither (`next: ask`), ask for the look, and mention once that a brand design system in Claude Design would keep emails, pages and apps looking the same. ## The email today: a block document In Awesomate you write the email as a short block document, never HTML (the shape is in the `awesomate_crm_email_change` description). The hub draws it in the brand's colours from Your business: the button, links and small labels take the main colour where white text reads on it (else a neutral dark), and the logo sits at the top when it is an https picture. So the brand look is right in every email by keeping the look on Your business right, not by styling blocks. What you design is the order and the choice of blocks: - **The top (`header`).** `logo` for news and offers from the business; `name` when there is no good logo yet; `none` for a note that should read like a personal message from the owner (it then opens with a greeting, not a big headline, and ends with a sign-off from a person). - **One heading**, then short paragraphs or a list. An `eyebrow` above the heading only when it helps ("Winter tips"), and at most one. - **A `panel`** to set one thing apart (the date, the deal's conditions, a warning), not as decoration. One or two per email. - **One `button`.** A second button is a second email. - **Pictures (`image`)** where they show the real thing: the job, the product, the place. Give `width` for a small picture so it doesn't stretch. - **A `signoff`** from a named person. The footer (business name, ABN, address), the unsubscribe link, dark mode and the plain-text version are the hub's, in every header style. Don't write them. From a screenshot or a Canva design, today you take its order, its header style, its button, its pictures and its tone, and say plainly that the hub draws the layout in one column for now ([from-an-image.md](from-an-image.md), [from-canva.md](from-canva.md)). ## When the email tool takes a full design When `awesomate_crm_email_change` offers a `design` field, an email can have any look the owner wants, written as one MJML document on the brand's tokens. Follow that tool's description for what it accepts; until it offers one, write blocks. When it does: - **Tokens, never values.** Use the hub's `mj-class` names (`aw-primary`, `aw-secondary`, `aw-accent`, `aw-dark`, `aw-light`, `aw-button`, `aw-on-primary`, `aw-heading`, `aw-text`, `aw-logo`, `aw-radius`, `aw-extra-1` to `aw-extra-3`) so a change to the brand look flows through. A literal colour or font comes back as a warning to fix. - **Layout:** `mj-section` and `mj-column` for rows and columns (two or three columns at most, which stack on a phone); `mj-hero` for text over a background picture (the one way that holds up in Outlook); `mj-button` for buttons; `mj-image` with `alt` for pictures; `mj-text` for words. - **Words stay live text.** The hub reads the email's words back for the copy checks, the plain-text part and the approver's Words view, so everything that matters must be text, not baked into a picture. An email with almost no live text is refused. - **The footer** goes where you put the hub's `<aw-footer/>`; leave it out and the hub adds it at the bottom. Never write your own footer or unsubscribe link. - **Merge fields** as in the block document, each with a fallback: `{{first_name|there}}`. - **Nothing painted over anything else.** The hub refuses an outline, `position` other than static, `opacity` under 1, a fixed `height` (except on `mj-image`, `mj-spacer`, `mj-hero`, `mj-button` and a picture's own style), a box shadow reaching more than 16px or a text shadow more than 3px (and shadows over 40% opaque), and letters taller than their line: give any text over 20px a `line-height` of at least 1 (1.2 reads well) in the same rule or tag. - **What email clients ignore:** CSS variables, web fonts (name the brand font with a fallback; most clients show the fallback), and background pictures outside `mj-hero` and `mj-section`. Gmail clips anything over about 100 KB, so keep it lean. - **Dark mode:** test it in the preview; give light logos a dark-mode-safe version or padding. - **Templates:** a design the owner likes can be saved as the brand's template and reused for the next email, so the look stays the same from one newsletter to the next. ## Check it Look at it first. Where the account has Better email designs, ask for pictures of it (`awesomate_crm_email_change` `design_preview`, or `preview: true` on `design_check`, `draft` and `update`): the hub draws it at desktop and phone width and in a dark inbox. Look at every picture: the logo (no box around it, readable in the dark one), the pictures, words cut or squeezed at phone width, the main button. Fix what is wrong and look again before the owner sees it. Before you hand the owner `reviewUrl`, run the email lines in [critique.md](critique.md). On the review page they see it on desktop, phone and in dark mode and as plain words, and can send themselves a test: ask them to open the test on their phone.