Email Kit
Shared email layout and theme for transactional emails that match the app's theme preset.
Choose the primitives library your project already uses. Both look the same: your theme, not the variant, controls colors, shape, type and motion.
About this email
What it's for
- Shared email layout and theme for transactional emails that match the app's theme preset.
- Turn my design tokens or theme into email-safe inline colours with dark mode for React Email.
- Bulletproof email button and email footer with unsubscribe link for React Email templates.
Includes
- Email layout
- Bulletproof button
- Email theme mapping
- Theme presets
- Dark mode email
- Outlook dark mode
- Plain text builder
- Preheader
Works with
- Radix UI and Base UI primitives (pick the one your project uses)
- React 19 and Tailwind CSS 4 in Next.js (App Router), Vite, React Router or TanStack Start, installed with the agentic-ui or shadcn CLI
- Your theme tokens, in light and dark mode
Install
Included with Agentic UI Kit (one-time license). Install needs your license key: see pricing · connect your project.
Agentic UI CLI
agentic-ui add email-kitInstalls through shadcn and adapts the component to your design tokens.
shadcn CLI
npx shadcn@4.17.0 add @agentic-ui/email-kitUsed in
A standalone component: drop it into any screen.
- Type
- Variants
- Radix UI and Base UI
- Themes
- Light and dark
- Widths
- Preview it at desktop, tablet and mobile widths above.
- npm packages
@react-email/render- Registry dependencies
- None
- Files
13 files
- components/agentic-ui/email-kit/index.ts
- components/agentic-ui/email-kit/define.tsx
- components/agentic-ui/email-kit/themes.ts
- components/agentic-ui/email-kit/theme.ts
- components/agentic-ui/email-kit/color.ts
- components/agentic-ui/email-kit/presets.generated.ts
- components/agentic-ui/email-kit/text.ts
- components/agentic-ui/email-kit/layout.tsx
- components/agentic-ui/email-kit/styles.ts
- components/agentic-ui/email-kit/primitives.tsx
- components/agentic-ui/email-kit/data-parts.tsx
- components/agentic-ui/email-kit/parts.tsx
- components/agentic-ui/email-kit/button.tsx