Update mj-attributes documentation for MJML theme support#703
Open
promptless-for-oss wants to merge 3 commits intomautic:7.1from
Open
Update mj-attributes documentation for MJML theme support#703promptless-for-oss wants to merge 3 commits intomautic:7.1from
promptless-for-oss wants to merge 3 commits intomautic:7.1from
Conversation
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.
| 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. |
Author
There was a problem hiding this comment.
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
escopecz
approved these changes
May 4, 2026
Author
|
Just a reminder: I review PR comments by default. If you want me to ignore a specific comment, start it with |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 📋