Skip to content

Update mj-attributes documentation for MJML theme support#703

Open
promptless-for-oss wants to merge 3 commits intomautic:7.1from
Promptless:promptless/mjml-theme-attributes
Open

Update mj-attributes documentation for MJML theme support#703
promptless-for-oss wants to merge 3 commits intomautic:7.1from
Promptless:promptless/mjml-theme-attributes

Conversation

@promptless-for-oss
Copy link
Copy Markdown

Open this suggestion in Promptless to view citations and reasoning process

Corrects the outdated statement that mj-attributes don't run. Documents that mj-attributes are now supported and enable theme creators to define default styling for builder blocks.

Trigger Events


Tip: Configure how Promptless handles changelogs in Agent Settings 📋

promptless Bot added 3 commits April 21, 2026 12:23
Corrects outdated information that stated mj-attributes don't run.
Since Mautic 7, mj-attributes are fully supported and enable theme
creators to define default styling for builder blocks.
@promptless-for-oss promptless-for-oss requested a review from a team as a code owner April 30, 2026 11:23
@promptless-for-oss promptless-for-oss requested review from adiati98 and favour-chibueze and removed request for a team April 30, 2026 11:23
Mautic processes the ``<mj-head>`` components, including ``<mj-attributes>``.

**Tested elements** include: ``mj-breakpoint``, ``mj-font``, ``mj-html-attributes``, ``mj-style``, ``mj-title``, and ``mj-preview``.
With ``<mj-attributes>``, you can define default styling for Builder blocks. When you drag blocks into the Email editor, they inherit the Theme's colors, fonts, and spacing rather than generic defaults. The Brienz Theme demonstrates this approach.
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated based on PR #16042 which adds the grapesjs-mjmlThemeTokens plugin enabling <mj-attributes> support. The Brienz theme demonstrates this with token classes like t-btn-primary and t-body.

Source: mautic/mautic#16042

@promptless-for-oss
Copy link
Copy Markdown
Author

Just a reminder: I review PR comments by default. If you want me to ignore a specific comment, start it with aside or /aside.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants