🎯

email-theme-styling

🎯Skill

from proxiblue/claude-skills

VibeIndex|
What it does

Guides Magento 2 developers in customizing transactional email themes, styling, and CSS inlining across different email templates and frameworks.

πŸ“¦

Part of

proxiblue/claude-skills(4 items)

email-theme-styling

Installation

npm runRun npm script
npm run build-email
πŸ“– Extracted from docs: proxiblue/claude-skills
2Installs
-
AddedFeb 4, 2026

Skill Details

SKILL.md

Comprehensive guide for theming and styling Magento 2 transactional emails via theme files, including HyvΓ€-specific considerations, CSS inlining architecture, and template override patterns.

Overview

# Magento 2 Email Theme & Styling Skill

Purpose

This skill provides comprehensive guidance on theming and styling Magento 2 transactional emails via theme files. It covers the full email rendering pipeline, CSS inlining architecture, template override patterns, HyvΓ€ Email module integration, and the Tailwind-to-LESS compilation approach.

When to Use This Skill

  • Customizing the look and feel of transactional emails (order confirmation, account creation, etc.)
  • Overriding email header/footer templates via the theme
  • Adding custom CSS styles to emails
  • Setting up a custom email logo
  • Debugging email rendering or CSS inlining issues
  • Understanding how HyvΓ€ interacts with the email system
  • Using Tailwind CSS as a source for email styles

---

Architecture Overview

Email Rendering Pipeline

```

  1. Module defines template in email_templates.xml (e.g. sales_email_order_template)

↓

  1. TransportBuilder triggers template rendering

↓

  1. AbstractTemplate::getProcessedTemplate()

- applyDesignConfig() β†’ emulates store/theme context

- addEmailVariables() β†’ populates store data, template_styles

↓

  1. Filter->filter(templateText) processes directives:

- {{template config_path="design/email/header_template"}} β†’ includes header

- {{template config_path="design/email/footer_template"}} β†’ includes footer

- {{css file="css/email.css"}} β†’ outputs CSS in

{{inlinecss file="css/email-inline.css"}}

```

The `template_styles` Variable

Each email template can declare per-template styles in a comment block at the top:

```html

```

These are injected into the ' | head -5

```

What to look for: