Loading...
Loading...
This skill should be used when the user asks about MJML syntax, components, or attributes, when writing or editing MJML email templates, when creating responsive email layouts, when troubleshooting MJML rendering issues, or when asking about email client compatibility.
npx skill4agent add svycal/mjml-editor mjml<mjml>
<mj-head>
<!-- Head components: styles, fonts, attributes, preview text -->
</mj-head>
<mj-body>
<!-- Body components: sections, columns, content -->
</mj-body>
</mjml>mjml
├── mj-head
│ ├── mj-attributes (define defaults and classes)
│ ├── mj-style (CSS styles)
│ ├── mj-font (external fonts)
│ ├── mj-title (document title)
│ ├── mj-preview (inbox preview text)
│ └── mj-breakpoint (responsive breakpoint)
│
└── mj-body
├── mj-wrapper (optional: wraps multiple sections)
│ └── mj-section
│
└── mj-section (rows)
├── mj-group (prevents column stacking on mobile)
│ └── mj-column
│
└── mj-column (responsive columns)
├── mj-text
├── mj-image
├── mj-button
├── mj-divider
├── mj-spacer
├── mj-social
├── mj-navbar
├── mj-table
├── mj-raw
├── mj-accordion
├── mj-carousel
└── mj-heromj-columnmj-sectionmj-groupwidth<mj-section>
<mj-column width="33%"><!-- Narrow --></mj-column>
<mj-column width="67%"><!-- Wide --></mj-column>
</mj-section>| Attribute | Description | Example |
|---|---|---|
| Spacing inside element | |
| Background color | |
| Element width | |
| Horizontal alignment | |
| Vertical alignment | |
| Text font | |
| Text size | |
| Text color | |
| Line spacing | |
mj-class<mj-head>
<mj-attributes>
<mj-class name="primary" background-color="#4A90D9" color="#ffffff" />
<mj-class name="heading" font-size="24px" font-weight="bold" />
</mj-attributes>
</mj-head>
<mj-body>
<mj-section>
<mj-column>
<mj-button mj-class="primary">Click me</mj-button>
<mj-text mj-class="heading">Welcome</mj-text>
</mj-column>
</mj-section>
</mj-body><mj-section background-url="https://example.com/bg.jpg"
background-size="cover"
background-repeat="no-repeat">
<mj-column>
<mj-text color="#ffffff">Content over image</mj-text>
</mj-column>
</mj-section>full-width<mj-section full-width="full-width" background-color="#f4f4f4">
<!-- Content still constrained, but background extends full width -->
</mj-section>mj-groupmj-breakpoint${CLAUDE_SKILL_ROOT}/references/body-components.md${CLAUDE_SKILL_ROOT}/references/head-components.md${CLAUDE_SKILL_ROOT}/references/patterns.md