Brand templates
Make an email, a page, a document or an image from a brand template with Hyper Elements, inside the guardrails it sets.
Safety check
- Not rated by Claude yet. We only sell skills Claude has read and rated 7 out of 10 or higher, so this one is a free link to its author.
An automated scan lowers risk but cannot promise zero risk. How we check skills
Preview
The first lines of SKILL.md
---
name: brand-templates
description: Make an email, a page, a document or an image from a brand template with Hyper Elements, inside the guardrails it sets (fixed parts, typed fields, slots of allowed elements, rules over the result), and write such templates. Use when asked to make a newsletter, a launch graphic or any design from a team's template, to change one value of a design made from one, or to turn a brand brief into a template.
---
# Brand templates
A template (`template()` from `@hyper-elements/react/template`) is a design with fields: what may change, and the rules each value must meet. Everything that isn't a field (the layout, typography, colors, the fixed text and images) is the template's. A design made from one is checked by it, so what passes is on brand.
## Using a template
You fill a template; you never change it.
1. **Read it first.** `npx hyper-elements describe templates/newsletter.tsx --json` lists its formats, every field (its kind, whether it's required, its guidance), each slot's allowed elements, each image's region and the pixels it needs, and the rules. Write within them.
2. **Write the design as TSX**, the template as its root, its fields as props. A TSX design is code a person reviews; where what you write is rendered unreviewed, make a values file instead (`npx hyper-elements design new <template> -o designs/<name>.values.json --values <values>.json`), which runs nothing. Slots are JSX written only with the elements their `allow` lists (and, with `styles: "theme"`, the theme's tokens and named styles):
```tsx
// designs/june.tsx
import { Column, Heading, Text } from "@hyper-elements/react";
import Newsletter from "../templates/newsletter";
export default () => (
<Newsletter subject="What's new in June" preview="Three updates from the team, and a date for the open house"
body={<Column><Heading level={2}>Faster exports</Heading><Text>Exports finish in half the time.</Text></Column>} />
);
```
A template with formats (`square`, `landscape`) gives one output per format; `format="square"` makes one.
3. **Check it, and fix what it says**, by each diagnostic's `field`, `message` and `fix`, until it exits 0: `npx hyper-elements check designs/june.tsx --json`. `review` items are what a person looks at by eye; they never fail the run.
4. **Render it**: `npx hyper-elements render designs/june.tsx` writes `out/designs/june.html` (`june.square.png`, `june.landscape.png` for formats).
Images: give each one the size its region needs (`describe`'s `regions`, at the format's scale). `check` reads each file and fails one that's too small (`template/asset-pixels`), cropped past what the template allows, or the wrong type.
**The values form** is the same design as data, for batches, one-value changes and generated images' provenance:
- `npx hyper-elements design new templates/launch.tsx -o designs/orbit.values.json --values brief.json --set artwork=@art/waves.png --source artwork=source.json` writes `designs/orbit.values.json` once the template accepts it (`@path` reads an image's size, `--source` records where it came from; `--draft` writes an unfinished one).
- `npx hyper-elements design set designs/orbit.values.json launchDate=2026-12-10` changes one value and nothing else; the file stays as it was if the template refuses it. `body=@designs/june.body.tsx` points a slot at a module.
- `npx hyper-elements design new templates/newsletter.tsx --from designs/june.tsx -o designs/june.values.json` turns a TSX design into its values file.
- `check` and `render` take values files as they take designs.
...From hyper-elements's repository, MIT licence.
Related skills
-
Checked
Email sequence writer
Writes and improves welcome, onboarding, nurture and win back email flows, and checks if they are working.
7/101 credit -
Checked
Email subject lines
Writes and tests email subject lines using proven formulas, length guidance and A/B tests to lift opens.
7/101 credit -
Checked
HTML newsletter builder
Drafts and designs a full HTML email newsletter ready to paste into Mailchimp, Beehiiv or Loops.
7/101 credit -
Checked
B2B cold email
Writes B2B cold emails and follow ups, and sets up sending domains and cadences that protect deliverability.
7/101 credit -
Checked
Cold outreach writer
Writes short cold emails and LinkedIn messages with a follow up sequence, send limits and an opt out footer.
8/101 credit -
Checked
Personalised cold emails
Writes short B2B cold emails with sourced personalisation and one clear ask, so more prospects actually reply.
8/101 credit