---
title: How to Build HTML Email Templates with Claude Code
canonical: https://skillselion.com/guides/how-to-build-html-email-templates-claude-code-2026
content_type: text/markdown
description: "Install `react-email` (10,165 installs, skills.sh registry) to write emails as React components, then `email-best-practices` (14,676 installs) for cross-client."
---

# How to Build HTML Email Templates with Claude Code

> Install `react-email` (10,165 installs, skills.sh registry) to write emails as React components, then `email-best-practices` (14,676 installs) for cross-client.

Canonical: https://skillselion.com/guides/how-to-build-html-email-templates-claude-code-2026

Install `react-email` (10,165 installs, skills.sh registry) to write emails as React components, then `email-best-practices` (14,676 installs) for cross-client rendering. Together they replace hand-written table layouts and cover dark mode, screen readers, and Outlook quirks.

## Key facts

- Last updated: August 20, 2026

## Article

Email HTML is stuck in 2005: nested tables, inline styles, and a different bug in every client. Claude Code generates markup that looks right in a browser but breaks in Outlook. Install an email skill first and the agent writes to the constraints real inboxes enforce. The top pick is [`react-email`](/skills/resend/react-email) (7,085 installs, skills.sh registry).

## Key takeaways
- `react-email` (7,085 installs, 19,439 GitHub stars, resend, skills.sh registry) lets Claude Code build emails as React components instead of hand-written tables.
- `email-best-practices` (6,312 installs, 147 GitHub stars) encodes cross-client rules for Outlook, dark mode, screen readers, and translation tools.
- For teams standardised on MJML, `mjml-email-templates` (359 installs) and `email-html-mjml` (581 installs) target that markup language directly.
- All four are open SKILL.md files; see the wider set under [best skills for frontend design](/best/skills-for-frontend-design).

## Why is HTML email so hard to get right?
Email clients each ship their own rendering engine, and many strip modern CSS, so a layout that works in a browser can collapse in Outlook or Gmail. Claude Code without a skill defaults to browser-grade HTML that ignores these limits. The `react-email` skill (7,085 installs, skills.sh registry) loads component patterns that already compile down to the table-based, inline-styled markup inboxes accept.

## What is the best skill for building HTML emails?
The best pick is [`react-email`](/skills/resend/react-email) (7,085 installs, 19,439 GitHub stars, resend, skills.sh registry). It replaces raw table wrangling with familiar React components that render to pixel-perfect, responsive HTML. Pair it with [`email-best-practices`](/skills/resend/resend-skills/email-best-practices) (6,312 installs, resend) for the cross-client hardening layer. Compare the full set on the [frontend-design pillar](/best/skills-for-frontend-design).

![resend email skills author avatar](https://github.com/resend.png?size=200)

## Should you use React or MJML?
Both work; the choice is stack preference. React shops should take `react-email` (7,085 installs). Teams already using the MJML markup language have two options: [`mjml-email-templates`](/skills/aaronontheweb/dotnet-skills/mjml-email-templates) (359 installs, 1,061 GitHub stars) and [`email-html-mjml`](/skills/framix-team/skill-email-html-mjml/email-html-mjml) (581 installs, 53 GitHub stars). MJML compiles a compact component syntax into responsive table HTML, which suits non-React backends.

## How do these skills handle accessibility and dark mode?
`email-best-practices` (6,312 installs, skills.sh registry) is the accessibility layer. It generates emails that survive screen readers, translation tools, dark-mode inversion, and AI agents parsing the message, addressing the details raw table markup usually drops. This mirrors the UI work in the [design a UI guide](/guides/how-to-design-a-ui-with-claude-code).

## A complete starter stack
- `react-email` (7,085 installs) - component-based authoring for React stacks.
- `email-best-practices` (6,312 installs) - cross-client and accessibility hardening.
- `mjml-email-templates` (359 installs) - MJML route for non-React backends.
- `email-html-mjml` (581 installs) - a second MJML implementation to compare.

## Common pitfalls
- Trusting a browser preview: an email that looks perfect in Chrome can break in Outlook's Word engine.
- Using modern flexbox or grid layouts, which many clients ignore in favour of tables.
- Skipping dark-mode and screen-reader checks that `email-best-practices` builds in by default.

Install `react-email` first, add `email-best-practices`, and test in real clients before you send.

The [react.email documentation](https://react.email/docs) and the [MJML docs](https://documentation.mjml.io/) are the authoritative references these skills build on.

## Related

- [/best/skills-for-frontend-design](https://skillselion.com/best/skills-for-frontend-design)
- [/category/frontend-design](https://skillselion.com/category/frontend-design)
- [/category/frontend](https://skillselion.com/category/frontend)

## FAQ

### What is the best skill for building HTML emails in Claude Code?

`react-email` (7,085 installs, 19,439 GitHub stars, resend, skills.sh registry) is the top pick. It lets Claude Code write emails as React components instead of nested tables. See [react-email on Skillselion](/skills/resend/react-email).

### Do these skills handle Outlook and dark mode?

Yes. `email-best-practices` (6,312 installs, 147 GitHub stars, resend) encodes cross-client rules for Outlook, dark mode, and screen readers, so generated emails render consistently. Browse it in the [frontend-design category](/category/frontend-design).

### Can I use MJML instead of React for emails?

Yes. `mjml-email-templates` (359 installs, 1,061 GitHub stars) and `email-html-mjml` (581 installs, 53 GitHub stars) both target the MJML markup language, which compiles to responsive table HTML. See [best skills for frontend design](/best/skills-for-frontend-design).

### How do HTML email skills improve accessibility?

`email-best-practices` (6,312 installs, skills.sh registry) generates emails that work across screen readers, translation tools, and dark mode, addressing accessibility that raw table markup usually misses. Explore the [frontend category](/category/frontend).

## Machine access

- [Sitemap](https://skillselion.com/sitemap.xml)
- [llms.txt](https://skillselion.com/llms.txt)
- [llms-full.txt](https://skillselion.com/llms-full.txt)
- [Developer resources](https://skillselion.com/developers)
- [OpenAPI spec](https://skillselion.com/openapi.json)
- [MCP handshake](https://skillselion.com/.well-known/mcp)
- [API catalog](https://skillselion.com/.well-known/api-catalog)
- [AI catalog](https://skillselion.com/.well-known/ai-catalog.json)
- [Pricing](https://skillselion.com/pricing.md)
- [Auth](https://skillselion.com/auth.md)
- [AGENTS.md](https://skillselion.com/AGENTS.md)
- [Contact](https://skillselion.com/contact)
- [Home](https://skillselion.com/)
