[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75BK16MVNNC8D896FT4F6M6":3,"skill-same:01M75BK16MVNNC8D896FT4F6M6":45},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":23,"commitSha":24,"skillDirectory":25,"forksCount":26,"repositoryHtmlUrl":27,"repositoryHomepageUrl":28,"ownerHtmlUrl":29,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":30,"install":31,"resources":44},"01M75BK16MVNNC8D896FT4F6M6","react-email",null,"Build and send HTML emails using React components. A modern, component-based approach to email development that works ac","ruake\u002FAWARE","ruake","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F253885939?v=4","01M75AVBM7FRFTS61RZRNMZB6C","01M75AVBMYHD7500NHVANF1HKM",0,"MIT","https:\u002F\u002Fgithub.com\u002Fruake\u002FAWARE\u002Fblob\u002Fmain\u002F.opencode\u002Fskills\u002Freact-email\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: react-email\ndescription: Build and send HTML emails using React components. A modern, component-based approach to email development that works ac\n---\n\n# React Email\n\nBuild and send HTML emails using React components. A modern, component-based approach to email development that works across all major email clients.\n\n## Installation\n\n```sh\nnpm i react-email\n```\n\nOr scaffold a new project:\n\n```sh\nnpx create-email@latest\ncd react-email-starter\nnpm install\nnpm run dev\n```\n\nThis works with any package manager (npm, yarn, pnpm, bun) — substitute accordingly.\n\nThe dev server runs at localhost:3000 with a preview interface for templates in the `emails` folder.\n\n### Adding to an Existing Project\n\nInstall the packages and add a script to your `package.json`:\n\n```json\n{\n  \"scripts\": {\n    \"email\": \"email dev --dir emails --port 3000\"\n  }\n}\n```\n\nMake sure the path to the emails folder is relative to the base project directory. Ensure `tsconfig.json` includes proper support for JSX.\n\n## Basic Email Template\n\nCreate an email component with proper structure using the Tailwind component for styling:\n\n```tsx\nimport {\n  Html,\n  Head,\n  Preview,\n  Body,\n  Container,\n  Heading,\n  Text,\n  Button,\n  Tailwind,\n  pixelBasedPreset\n} from 'react-email';\n\ninterface WelcomeEmailProps {\n  name: string;\n  verificationUrl: string;\n}\n\nexport default function WelcomeEmail({ name, verificationUrl }: WelcomeEmailProps) {\n  return (\n    \u003CHtml lang=\"en\">\n      \u003CTailwind\n        config={{\n          presets: [pixelBasedPreset],\n          theme: {\n            extend: {\n              colors: {\n                brand: '#007bff',\n              },\n            },\n          },\n        }}\n      >\n        \u003CHead \u002F>\n        \u003CBody className=\"bg-gray-100 font-sans\">\n          \u003CPreview>Welcome - Verify your email\u003C\u002FPreview>\n          \u003CContainer className=\"max-w-xl mx-auto p-5\">\n            \u003CHeading className=\"text-2xl text-gray-800\">\n              Welcome!\n            \u003C\u002FHeading>\n            \u003CText className=\"text-base text-gray-800\">\n              Hi {name}, thanks for signing up!\n            \u003C\u002FText>\n            \u003CButton\n              href={verificationUrl}\n              className=\"bg-brand text-white px-5 py-3 rounded block text-center no-underline box-border\"\n            >\n              Verify Email\n            \u003C\u002FButton>\n          \u003C\u002FContainer>\n        \u003C\u002FBody>\n      \u003C\u002FTailwind>\n    \u003C\u002FHtml>\n  );\n}\n\n\u002F\u002F Preview props for testing\nWelcomeEmail.PreviewProps = {\n  name: 'John Doe',\n  verificationUrl: 'https:\u002F\u002Fexample.com\u002Fverify\u002Fabc123'\n} satisfies WelcomeEmailProps;\n\nexport { WelcomeEmail };\n```\n\n## Behavioral Guidelines\n\n- When iterating over the code, only update what the user asked for. Keep the rest intact.\n- If the user asks to use media queries, inform them that most email clients don't support them and suggest a different approach.\n- Never use template variables (like `{{name}}`) directly in TypeScript code. Instead, reference the underlying properties directly. If the user explicitly asks for `{{variableName}}`, place the mustache string only in PreviewProps, never in the component JSX:\n\n```typescript\nconst EmailTemplate = (props) => {\n  return (\n    \u003Ch1>Hello, {props.variableName}!\u003C\u002Fh1>\n  );\n}\n\nEmailTemplate.PreviewProps = {\n  variableName: \"{{variableName}}\",\n};\n\nexport default EmailTemplate;\n```\n\n- Never write the `{{variableName}}` pattern directly in the component structure. If the user insists, explain that this would make the template invalid.\n\n## Essential Components\n\nSee [references\u002FCOMPONENTS.md](references\u002FCOMPONENTS.md) for complete component documentation.\n\n**Core Structure:**\n- `Html` - Root wrapper with `lang` attribute\n- `Head` - Meta elements, styles, fonts\n- `Body` - Main content wrapper\n- `Container` - Outermost centering wrapper (has built-in `max-width: 37.5em`). Use only once per email.\n- `Section` - Interior content blocks (no built-in max-width). Use for grouping content inside `Container`.\n- `Row` & `Column` - Multi-column layouts\n- `Tailwind` - Enables Tailwind CSS utility classes\n\n**Content:**\n- `Preview` - Inbox preview text, always first inside `\u003CBody>`\n- `Heading` - h1-h6 headings\n- `Text` - Paragraphs\n- `Button` - Styled link buttons (always include `box-border`)\n- `Link` - Hyperlinks\n- `Img` - Images (see Static Files section below)\n- `Hr` - Horizontal dividers\n\n**Specialized:**\n- `CodeBlock` - Syntax-highlighted code\n- `CodeInline` - Inline code\n- `Markdown` - Render markdown\n- `Font` - Custom web fonts\n\n## Before Writing Code\n\nWhen a user requests an email template, ask clarifying questions FIRST if they haven't provided:\n\n1. **Brand colors** - Ask for primary brand color (hex code like #007bff)\n2. **Logo** - Ask if they have a logo file and its format (PNG\u002FJPG only - warn if SVG\u002FWEBP)\n3. **Style preference** - Professional, casual, or minimal tone\n4. **Production URL** - Where will static assets be hosted in production?\n\n## Static Files and Images\n\n### Directory Structure\n\nLocal images must be placed in the `static` folder inside your emails directory:\n\n```\nproject\u002F\n├── emails\u002F\n│   ├── welcome.tsx\n│   └── static\u002F           \u003C-- Images go here\n│       └── logo.png\n```\n\n### Dev vs Production URLs\n\nUse this pattern for images that work in both dev preview and production:\n\n```tsx\nconst baseURL = process.env.NODE_ENV === \"production\"\n  ? \"https:\u002F\u002Fcdn.example.com\"  \u002F\u002F User's production CDN\n  : \"\";\n\nexport default function Email() {\n  return (\n    \u003CImg\n      src={`${baseURL}\u002Fstatic\u002Flogo.png`}\n      alt=\"Logo\"\n      width=\"150\"\n      height=\"50\"\n    \u002F>\n  );\n}\n```\n\n**How it works:**\n- **Development:** `baseURL` is empty, so URL is `\u002Fstatic\u002Flogo.png` - served by React Email's dev server\n- **Production:** `baseURL` is the CDN domain, so URL is `https:\u002F\u002Fcdn.example.com\u002Fstatic\u002Flogo.png`\n\n**Important:** Always ask the user for their production hosting URL. Do not hardcode `localhost:3000`.\n\n## Styling\n\nSee [references\u002FSTYLING.md](references\u002FSTYLING.md) for comprehensive styling documentation including typography, layout patterns, dark mode, and brand consistency.\n\n### Key Rules\n\n- Use `Tailwind` with `pixelBasedPreset` (email clients don't support `rem`). Import `pixelBasedPreset` from `react-email`.\n- Never use flexbox or grid — use `Row`\u002F`Column` components or tables for layouts.\n- Avoid CSS\u002FTailwind media queries (`sm:`, `md:`, `lg:`, `xl:`) — limited email client support.\n- Never use theme selectors (`dark:`, `light:`) — not supported.\n- Never use SVG or WEBP images — warn users about rendering issues.\n- Always specify border type (`border-solid`, `border-dashed`, etc.) — email clients don't inherit it.\n- For single-side borders, reset others first (`border-none border-l border-solid`).\n\n### Required Classes\n\n| Component | Required Class | Why |\n|-----------|---------------|-----|\n| `Button` | `box-border` | Prevents padding from overflowing the button width |\n| `Hr` \u002F any border | `border-solid` (or `border-dashed`, etc.) | Email clients don't inherit border type |\n| Single-side borders | `border-none` + the side | Resets default borders on other sides |\n\n### Structure Notes\n- Always define `\u003CHead \u002F>` inside `\u003CTailwind>` when using Tailwind CSS\n- `\u003CPreview>` should always be the first element inside `\u003CBody>`\n- Only include props in `PreviewProps` that the component actually uses\n- Use fixed width\u002Fheight for known-size elements (logos, icons); responsive sizing (`w-full`, `h-auto`) for content images\n\n## Rendering\n\n### Convert to HTML\n\n```tsx\nimport { render } from 'react-email';\nimport { WelcomeEmail } from '.\u002Femails\u002Fwelcome';\n\nconst html = await render(\n  \u003CWelcomeEmail name=\"John\" verificationUrl=\"https:\u002F\u002Fexample.com\u002Fverify\" \u002F>\n);\n```\n\n### Convert to Plain Text\n\n```tsx\nconst text = await render(\u003CWelcomeEmail name=\"John\" verificationUrl=\"https:\u002F\u002Fexample.com\u002Fverify\" \u002F>, { plainText: true });\n```\n\n## Sending\n\nReact Email supports sending with any email service provider. See [references\u002FSENDING.md](references\u002FSENDING.md) for complete sending documentation including Resend, Nodemailer, and SendGrid examples.\n\nQuick example using the Resend SDK:\n\n```tsx\nimport { Resend } from 'resend';\nimport { WelcomeEmail } from '.\u002Femails\u002Fwelcome';\n\nconst resend = new Resend(process.env.RESEND_API_KEY);\n\nconst { data, error } = await resend.emails.send({\n  from: 'Acme \u003Conboarding@resend.dev>',\n  to: ['user@example.com'],\n  subject: 'Welcome to Acme',\n  react: \u003CWelcomeEmail name=\"John\" verificationUrl=\"https:\u002F\u002Fexample.com\u002Fverify\" \u002F>\n});\n```\n\nThe Resend Node SDK automatically handles both HTML and plain-text rendering.\n\n## CLI Commands\n\nThe `react-email` package provides a CLI accessible via the `email` command:\n\n| Command | Description |\n|---------|-------------|\n| `email dev --dir \u003Cpath> --port \u003Cport>` | Start the preview development server (default: `.\u002Femails`, port 3000) |\n| `email build --dir \u003Cpath>` | Build the preview app for production deployment |\n| `email start` | Run the built preview app |\n| `email export --outDir \u003Cpath> --pretty --plainText --dir \u003Cpath>` | Export templates to static HTML files |\n| `email resend setup` | Connect the CLI to your Resend account via API key |\n| `email resend reset` | Remove the stored Resend API key |\n\n## Internationalization\n\nSee [references\u002FI18N.md](references\u002FI18N.md) for complete i18n documentation. React Email supports three libraries: next-intl, react-i18next, and react-intl.\n\n## Email Editor\n\nReact Email includes a visual editor (`@react-email\u002Feditor`) that can be embedded in your app. It's built on TipTap\u002FProseMirror and produces email-ready HTML.\n\nSee [references\u002FEDITOR.md](references\u002FEDITOR.md) for complete documentation including:\n- `EmailEditor` — batteries-included component with bubble menus, slash commands, and theming\n- `StarterKit` — 35+ email-aware extensions (headings, lists, tables, columns, buttons, etc.)\n- `Inspector` — contextual sidebar for editing styles\n- `EmailTheming` — built-in themes (`basic`, `minimal`) with customizable CSS properties\n- `composeReactEmail` — export editor content to email-ready HTML and plain text\n- Custom extensions via `EmailNode` and `EmailMark`\n\nQuick example:\n\n```tsx\nimport { EmailEditor, type EmailEditorRef } from '@react-email\u002Feditor';\nimport '@react-email\u002Feditor\u002Fthemes\u002Fdefault.css';\nimport { useRef } from 'react';\n\nexport function MyEditor() {\n  const ref = useRef\u003CEmailEditorRef>(null);\n\n  return (\n    \u003CEmailEditor\n      ref={ref}\n      content=\"\u003Cp>Start typing...\u003C\u002Fp>\"\n      theme=\"basic\"\n    \u002F>\n  );\n}\n```\n\n## Common Patterns\n\nSee [references\u002FPATTERNS.md](references\u002FPATTERNS.md) for complete examples including:\n- Password reset emails\n- Order confirmations with product lists\n- Notification emails with code blocks\n- Multi-column layouts\n- Team invitation emails\n\n## Email Best Practices\n\n1. **Test across email clients** - Gmail, Outlook, Apple Mail, Yahoo Mail\n2. **Keep it responsive** - Max-width around 600px, test on mobile\n3. **Use absolute image URLs** - Host on reliable CDN\n4. **Write meaningful alt text** - Describe purpose and details for content images; use `alt=\"\"` for decorative images (spacers, dividers, background flourishes). React Email's `\u003CImg>` defaults to `alt=\"\"`.\n5. **Provide plain text version** - Required for accessibility\n6. **Keep file size under 102KB** - Gmail clips larger emails\n7. **Add proper TypeScript types** - Define interfaces for all email props\n8. **Include preview props** - Add `.PreviewProps` for development testing\n9. **Use verified domains** - For production `from` addresses\n\n### Accessibility\n\nReact Email handles the structural defaults; the rest is content.\n\n**What React Email gives you for free:**\n- `\u003CHtml>` sets `lang` and `dir` (defaults: `lang=\"en\" dir=\"ltr\"` — override per locale)\n- `\u003CImg>` defaults to `alt=\"\"` so decorative images are skipped by screen readers\n- `\u003CMarkdown>` renders layout tables with `role=\"presentation\"`\n- `\u003CPreview>` also emits a `\u003Ctitle>` tag\n\nUpgrade with `npm install react-email@latest` to get these defaults.\n\n**What you still have to do (content choices):**\n- Open with a single `\u003CHeading as=\"h1\">`, nest subheadings in order, never skip levels (very short SMS-style emails may skip the heading entirely)\n- Set descriptive `alt` on meaningful images; pass an explicit `alt=\"\"` on decorative images — never omit the attribute\n- **Linked images are never decorative.** When an `\u003CImg>` is inside a `\u003CLink>` or `\u003CButton>`, the `alt` must describe where the link goes — `alt=\"\"` on a linked image leaves the link with no accessible name\n- Write link text that describes the destination (`\u003CButton>Read the report\u003C\u002FButton>`, not `click here`)\n- Hit 4.5:1 text contrast (WCAG AA); preview in dark mode\n- For layout tables you build by hand (outside `\u003CMarkdown>`), add `role=\"presentation\"`\n- For non-English emails, pass the locale: `\u003CHtml lang={locale} dir={isRTL ? 'rtl' : 'ltr'}>` (see [I18N.md](references\u002FI18N.md))\n\nFor the full rule set, severity ranking, and authoring checklist, see the [accessibility reference](https:\u002F\u002Fgithub.com\u002Fresend\u002Femail-best-practices\u002Fblob\u002Fmain\u002Freferences\u002Faccessibility.md) in the `email-best-practices` skill.\n\n## Additional Resources\n\n- [React Email Documentation](https:\u002F\u002Freact.email\u002Fdocs\u002Fllms.txt)\n- [React Email GitHub](https:\u002F\u002Fgithub.com\u002Fresend\u002Freact-email)\n- [Resend Documentation](https:\u002F\u002Fresend.com\u002Fdocs\u002Fllms.txt)\n- [Email Client CSS Support](https:\u002F\u002Fwww.caniemail.com)\n- Component Reference: [references\u002FCOMPONENTS.md](references\u002FCOMPONENTS.md)\n- Styling Guide: [references\u002FSTYLING.md](references\u002FSTYLING.md)\n- Email Editor: [references\u002FEDITOR.md](references\u002FEDITOR.md)\n- Sending Guide: [references\u002FSENDING.md](references\u002FSENDING.md)\n- Internationalization Guide: [references\u002FI18N.md](references\u002FI18N.md)\n- Common Patterns: [references\u002FPATTERNS.md](references\u002FPATTERNS.md)\n","# React Email\n\nBuild and send HTML emails using React components. A modern, component-based approach to email development that works across all major email clients.\n\n## Installation\n\n```sh\nnpm i react-email\n```\n\nOr scaffold a new project:\n\n```sh\nnpx create-email@latest\ncd react-email-starter\nnpm install\nnpm run dev\n```\n\nThis works with any package manager (npm, yarn, pnpm, bun) — substitute accordingly.\n\nThe dev server runs at localhost:3000 with a preview interface for templates in the `emails` folder.\n\n### Adding to an Existing Project\n\nInstall the packages and add a script to your `package.json`:\n\n```json\n{\n  \"scripts\": {\n    \"email\": \"email dev --dir emails --port 3000\"\n  }\n}\n```\n\nMake sure the path to the emails folder is relative to the base project directory. Ensure `tsconfig.json` includes proper support for JSX.\n\n## Basic Email Template\n\nCreate an email component with proper structure using the Tailwind component for styling:\n\n```tsx\nimport {\n  Html,\n  Head,\n  Preview,\n  Body,\n  Container,\n  Heading,\n  Text,\n  Button,\n  Tailwind,\n  pixelBasedPreset\n} from 'react-email';\n\ninterface WelcomeEmailProps {\n  name: string;\n  verificationUrl: string;\n}\n\nexport default function WelcomeEmail({ name, verificationUrl }: WelcomeEmailProps) {\n  return (\n    \u003CHtml lang=\"en\">\n      \u003CTailwind\n        config={{\n          presets: [pixelBasedPreset],\n          theme: {\n            extend: {\n              colors: {\n                brand: '#007bff',\n              },\n            },\n          },\n        }}\n      >\n        \u003CHead \u002F>\n        \u003CBody className=\"bg-gray-100 font-sans\">\n          \u003CPreview>Welcome - Verify your email\u003C\u002FPreview>\n          \u003CContainer className=\"max-w-xl mx-auto p-5\">\n            \u003CHeading className=\"text-2xl text-gray-800\">\n              Welcome!\n            \u003C\u002FHeading>\n            \u003CText className=\"text-base text-gray-800\">\n              Hi {name}, thanks for signing up!\n            \u003C\u002FText>\n            \u003CButton\n              href={verificationUrl}\n              className=\"bg-brand text-white px-5 py-3 rounded block text-center no-underline box-border\"\n            >\n              Verify Email\n            \u003C\u002FButton>\n          \u003C\u002FContainer>\n        \u003C\u002FBody>\n      \u003C\u002FTailwind>\n    \u003C\u002FHtml>\n  );\n}\n\n\u002F\u002F Preview props for testing\nWelcomeEmail.PreviewProps = {\n  name: 'John Doe',\n  verificationUrl: 'https:\u002F\u002Fexample.com\u002Fverify\u002Fabc123'\n} satisfies WelcomeEmailProps;\n\nexport { WelcomeEmail };\n```\n\n## Behavioral Guidelines\n\n- When iterating over the code, only update what the user asked for. Keep the rest intact.\n- If the user asks to use media queries, inform them that most email clients don't support them and suggest a different approach.\n- Never use template variables (like `{{name}}`) directly in TypeScript code. Instead, reference the underlying properties directly. If the user explicitly asks for `{{variableName}}`, place the mustache string only in PreviewProps, never in the component JSX:\n\n```typescript\nconst EmailTemplate = (props) => {\n  return (\n    \u003Ch1>Hello, {props.variableName}!\u003C\u002Fh1>\n  );\n}\n\nEmailTemplate.PreviewProps = {\n  variableName: \"{{variableName}}\",\n};\n\nexport default EmailTemplate;\n```\n\n- Never write the `{{variableName}}` pattern directly in the component structure. If the user insists, explain that this would make the template invalid.\n\n## Essential Components\n\nSee [references\u002FCOMPONENTS.md](references\u002FCOMPONENTS.md) for complete component documentation.\n\n**Core Structure:**\n- `Html` - Root wrapper with `lang` attribute\n- `Head` - Meta elements, styles, fonts\n- `Body` - Main content wrapper\n- `Container` - Outermost centering wrapper (has built-in `max-width: 37.5em`). Use only once per email.\n- `Section` - Interior content blocks (no built-in max-width). Use for grouping content inside `Container`.\n- `Row` & `Column` - Multi-column layouts\n- `Tailwind` - Enables Tailwind CSS utility classes\n\n**Content:**\n- `Preview` - Inbox preview text, always first inside `\u003CBody>`\n- `Heading` - h1-h6 headings\n- `Text` - Paragraphs\n- `Button` - Styled link buttons (always include `box-border`)\n- `Link` - Hyperlinks\n- `Img` - Images (see Static Files section below)\n- `Hr` - Horizontal dividers\n\n**Specialized:**\n- `CodeBlock` - Syntax-highlighted code\n- `CodeInline` - Inline code\n- `Markdown` - Render markdown\n- `Font` - Custom web fonts\n\n## Before Writing Code\n\nWhen a user requests an email template, ask clarifying questions FIRST if they haven't provided:\n\n1. **Brand colors** - Ask for primary brand color (hex code like #007bff)\n2. **Logo** - Ask if they have a logo file and its format (PNG\u002FJPG only - warn if SVG\u002FWEBP)\n3. **Style preference** - Professional, casual, or minimal tone\n4. **Production URL** - Where will static assets be hosted in production?\n\n## Static Files and Images\n\n### Directory Structure\n\nLocal images must be placed in the `static` folder inside your emails directory:\n\n```\nproject\u002F\n├── emails\u002F\n│   ├── welcome.tsx\n│   └── static\u002F           \u003C-- Images go here\n│       └── logo.png\n```\n\n### Dev vs Production URLs\n\nUse this pattern for images that work in both dev preview and production:\n\n```tsx\nconst baseURL = process.env.NODE_ENV === \"production\"\n  ? \"https:\u002F\u002Fcdn.example.com\"  \u002F\u002F User's production CDN\n  : \"\";\n\nexport default function Email() {\n  return (\n    \u003CImg\n      src={`${baseURL}\u002Fstatic\u002Flogo.png`}\n      alt=\"Logo\"\n      width=\"150\"\n      height=\"50\"\n    \u002F>\n  );\n}\n```\n\n**How it works:**\n- **Development:** `baseURL` is empty, so URL is `\u002Fstatic\u002Flogo.png` - served by React Email's dev server\n- **Production:** `baseURL` is the CDN domain, so URL is `https:\u002F\u002Fcdn.example.com\u002Fstatic\u002Flogo.png`\n\n**Important:** Always ask the user for their production hosting URL. Do not hardcode `localhost:3000`.\n\n## Styling\n\nSee [references\u002FSTYLING.md](references\u002FSTYLING.md) for comprehensive styling documentation including typography, layout patterns, dark mode, and brand consistency.\n\n### Key Rules\n\n- Use `Tailwind` with `pixelBasedPreset` (email clients don't support `rem`). Import `pixelBasedPreset` from `react-email`.\n- Never use flexbox or grid — use `Row`\u002F`Column` components or tables for layouts.\n- Avoid CSS\u002FTailwind media queries (`sm:`, `md:`, `lg:`, `xl:`) — limited email client support.\n- Never use theme selectors (`dark:`, `light:`) — not supported.\n- Never use SVG or WEBP images — warn users about rendering issues.\n- Always specify border type (`border-solid`, `border-dashed`, etc.) — email clients don't inherit it.\n- For single-side borders, reset others first (`border-none border-l border-solid`).\n\n### Required Classes\n\n| Component | Required Class | Why |\n|-----------|---------------|-----|\n| `Button` | `box-border` | Prevents padding from overflowing the button width |\n| `Hr` \u002F any border | `border-solid` (or `border-dashed`, etc.) | Email clients don't inherit border type |\n| Single-side borders | `border-none` + the side | Resets default borders on other sides |\n\n### Structure Notes\n- Always define `\u003CHead \u002F>` inside `\u003CTailwind>` when using Tailwind CSS\n- `\u003CPreview>` should always be the first element inside `\u003CBody>`\n- Only include props in `PreviewProps` that the component actually uses\n- Use fixed width\u002Fheight for known-size elements (logos, icons); responsive sizing (`w-full`, `h-auto`) for content images\n\n## Rendering\n\n### Convert to HTML\n\n```tsx\nimport { render } from 'react-email';\nimport { WelcomeEmail } from '.\u002Femails\u002Fwelcome';\n\nconst html = await render(\n  \u003CWelcomeEmail name=\"John\" verificationUrl=\"https:\u002F\u002Fexample.com\u002Fverify\" \u002F>\n);\n```\n\n### Convert to Plain Text\n\n```tsx\nconst text = await render(\u003CWelcomeEmail name=\"John\" verificationUrl=\"https:\u002F\u002Fexample.com\u002Fverify\" \u002F>, { plainText: true });\n```\n\n## Sending\n\nReact Email supports sending with any email service provider. See [references\u002FSENDING.md](references\u002FSENDING.md) for complete sending documentation including Resend, Nodemailer, and SendGrid examples.\n\nQuick example using the Resend SDK:\n\n```tsx\nimport { Resend } from 'resend';\nimport { WelcomeEmail } from '.\u002Femails\u002Fwelcome';\n\nconst resend = new Resend(process.env.RESEND_API_KEY);\n\nconst { data, error } = await resend.emails.send({\n  from: 'Acme \u003Conboarding@resend.dev>',\n  to: ['user@example.com'],\n  subject: 'Welcome to Acme',\n  react: \u003CWelcomeEmail name=\"John\" verificationUrl=\"https:\u002F\u002Fexample.com\u002Fverify\" \u002F>\n});\n```\n\nThe Resend Node SDK automatically handles both HTML and plain-text rendering.\n\n## CLI Commands\n\nThe `react-email` package provides a CLI accessible via the `email` command:\n\n| Command | Description |\n|---------|-------------|\n| `email dev --dir \u003Cpath> --port \u003Cport>` | Start the preview development server (default: `.\u002Femails`, port 3000) |\n| `email build --dir \u003Cpath>` | Build the preview app for production deployment |\n| `email start` | Run the built preview app |\n| `email export --outDir \u003Cpath> --pretty --plainText --dir \u003Cpath>` | Export templates to static HTML files |\n| `email resend setup` | Connect the CLI to your Resend account via API key |\n| `email resend reset` | Remove the stored Resend API key |\n\n## Internationalization\n\nSee [references\u002FI18N.md](references\u002FI18N.md) for complete i18n documentation. React Email supports three libraries: next-intl, react-i18next, and react-intl.\n\n## Email Editor\n\nReact Email includes a visual editor (`@react-email\u002Feditor`) that can be embedded in your app. It's built on TipTap\u002FProseMirror and produces email-ready HTML.\n\nSee [references\u002FEDITOR.md](references\u002FEDITOR.md) for complete documentation including:\n- `EmailEditor` — batteries-included component with bubble menus, slash commands, and theming\n- `StarterKit` — 35+ email-aware extensions (headings, lists, tables, columns, buttons, etc.)\n- `Inspector` — contextual sidebar for editing styles\n- `EmailTheming` — built-in themes (`basic`, `minimal`) with customizable CSS properties\n- `composeReactEmail` — export editor content to email-ready HTML and plain text\n- Custom extensions via `EmailNode` and `EmailMark`\n\nQuick example:\n\n```tsx\nimport { EmailEditor, type EmailEditorRef } from '@react-email\u002Feditor';\nimport '@react-email\u002Feditor\u002Fthemes\u002Fdefault.css';\nimport { useRef } from 'react';\n\nexport function MyEditor() {\n  const ref = useRef\u003CEmailEditorRef>(null);\n\n  return (\n    \u003CEmailEditor\n      ref={ref}\n      content=\"\u003Cp>Start typing...\u003C\u002Fp>\"\n      theme=\"basic\"\n    \u002F>\n  );\n}\n```\n\n## Common Patterns\n\nSee [references\u002FPATTERNS.md](references\u002FPATTERNS.md) for complete examples including:\n- Password reset emails\n- Order confirmations with product lists\n- Notification emails with code blocks\n- Multi-column layouts\n- Team invitation emails\n\n## Email Best Practices\n\n1. **Test across email clients** - Gmail, Outlook, Apple Mail, Yahoo Mail\n2. **Keep it responsive** - Max-width around 600px, test on mobile\n3. **Use absolute image URLs** - Host on reliable CDN\n4. **Write meaningful alt text** - Describe purpose and details for content images; use `alt=\"\"` for decorative images (spacers, dividers, background flourishes). React Email's `\u003CImg>` defaults to `alt=\"\"`.\n5. **Provide plain text version** - Required for accessibility\n6. **Keep file size under 102KB** - Gmail clips larger emails\n7. **Add proper TypeScript types** - Define interfaces for all email props\n8. **Include preview props** - Add `.PreviewProps` for development testing\n9. **Use verified domains** - For production `from` addresses\n\n### Accessibility\n\nReact Email handles the structural defaults; the rest is content.\n\n**What React Email gives you for free:**\n- `\u003CHtml>` sets `lang` and `dir` (defaults: `lang=\"en\" dir=\"ltr\"` — override per locale)\n- `\u003CImg>` defaults to `alt=\"\"` so decorative images are skipped by screen readers\n- `\u003CMarkdown>` renders layout tables with `role=\"presentation\"`\n- `\u003CPreview>` also emits a `\u003Ctitle>` tag\n\nUpgrade with `npm install react-email@latest` to get these defaults.\n\n**What you still have to do (content choices):**\n- Open with a single `\u003CHeading as=\"h1\">`, nest subheadings in order, never skip levels (very short SMS-style emails may skip the heading entirely)\n- Set descriptive `alt` on meaningful images; pass an explicit `alt=\"\"` on decorative images — never omit the attribute\n- **Linked images are never decorative.** When an `\u003CImg>` is inside a `\u003CLink>` or `\u003CButton>`, the `alt` must describe where the link goes — `alt=\"\"` on a linked image leaves the link with no accessible name\n- Write link text that describes the destination (`\u003CButton>Read the report\u003C\u002FButton>`, not `click here`)\n- Hit 4.5:1 text contrast (WCAG AA); preview in dark mode\n- For layout tables you build by hand (outside `\u003CMarkdown>`), add `role=\"presentation\"`\n- For non-English emails, pass the locale: `\u003CHtml lang={locale} dir={isRTL ? 'rtl' : 'ltr'}>` (see [I18N.md](references\u002FI18N.md))\n\nFor the full rule set, severity ranking, and authoring checklist, see the [accessibility reference](https:\u002F\u002Fgithub.com\u002Fresend\u002Femail-best-practices\u002Fblob\u002Fmain\u002Freferences\u002Faccessibility.md) in the `email-best-practices` skill.\n\n## Additional Resources\n\n- [React Email Documentation](https:\u002F\u002Freact.email\u002Fdocs\u002Fllms.txt)\n- [React Email GitHub](https:\u002F\u002Fgithub.com\u002Fresend\u002Freact-email)\n- [Resend Documentation](https:\u002F\u002Fresend.com\u002Fdocs\u002Fllms.txt)\n- [Email Client CSS Support](https:\u002F\u002Fwww.caniemail.com)\n- Component Reference: [references\u002FCOMPONENTS.md](references\u002FCOMPONENTS.md)\n- Styling Guide: [references\u002FSTYLING.md](references\u002FSTYLING.md)\n- Email Editor: [references\u002FEDITOR.md](references\u002FEDITOR.md)\n- Sending Guide: [references\u002FSENDING.md](references\u002FSENDING.md)\n- Internationalization Guide: [references\u002FI18N.md](references\u002FI18N.md)\n- Common Patterns: [references\u002FPATTERNS.md](references\u002FPATTERNS.md)\n",{"name":5,"description":7},"main","6184979e01f673905139589c194eab38198db2f7",".opencode\u002Fskills\u002Freact-email",1,"https:\u002F\u002Fgithub.com\u002Fruake\u002FAWARE","https:\u002F\u002Fruake.github.io\u002FAWARE","https:\u002F\u002Fgithub.com\u002Fruake","2026-11-15 04:27:27",{"source":8,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add ruake\u002FAWARE --skill react-email",{"tool":37,"command":38},"bunx","bunx skills add ruake\u002FAWARE --skill react-email",{"tool":40,"command":41},"pnpm","pnpm dlx skills add ruake\u002FAWARE --skill react-email","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fruake\u002FAWARE\u002Fblob\u002Fmain\u002F.opencode\u002Fskills\u002Freact-email\u002FSKILL.md",true,[],[46,52,59,66,73,79],{"skillNo":47,"name":48,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":49,"categories":50,"keywords":51,"publishedAt":18},"01M75BPBYT89TEE87CGBDX2KF5","xlsx","https:\u002F\u002Fgithub.com\u002Fruake\u002FAWARE\u002Fblob\u002Fmain\u002F.opencode\u002Fskills\u002Fxlsx\u002FSKILL.md",[],[],{"skillNo":53,"name":54,"nameZh":6,"description":55,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":56,"categories":57,"keywords":58,"publishedAt":18},"01M75BPA000S9MTH5MY7CZNYYQ","writing-plans","Write comprehensive implementation plans assuming the engineer has zero context for our codebase and questionable taste.","https:\u002F\u002Fgithub.com\u002Fruake\u002FAWARE\u002Fblob\u002Fmain\u002F.opencode\u002Fskills\u002Fwriting-plans\u002FSKILL.md",[],[],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":18},"01M75BP80ETH9GYVRH8A7QPCSG","web-design-guidelines","Review files for compliance with Web Interface Guidelines.","https:\u002F\u002Fgithub.com\u002Fruake\u002FAWARE\u002Fblob\u002Fmain\u002F.opencode\u002Fskills\u002Fweb-design-guidelines\u002FSKILL.md",[],[],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":18},"01M75BP5XG8SX5Q2WWZB6QRVFT","web-component-design","Build reusable, maintainable UI components using modern frameworks with clean composition patterns and styling approache","https:\u002F\u002Fgithub.com\u002Fruake\u002FAWARE\u002Fblob\u002Fmain\u002F.opencode\u002Fskills\u002Fweb-component-design\u002FSKILL.md",[],[],{"skillNo":74,"name":75,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":18},"01M75BP4B1FC4V81QR1VB56H1E","web-artifacts-builder","https:\u002F\u002Fgithub.com\u002Fruake\u002FAWARE\u002Fblob\u002Fmain\u002F.opencode\u002Fskills\u002Fweb-artifacts-builder\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":18},"01M75BP1XVRW8WQ2XXAJBAYV2V","vueuse-functions","This skill is a decision-and-implementation guide for VueUse composables in Vue.js \u002F Nuxt projects. It maps requirements","https:\u002F\u002Fgithub.com\u002Fruake\u002FAWARE\u002Fblob\u002Fmain\u002F.opencode\u002Fskills\u002Fvueuse-functions\u002FSKILL.md",[],[]]