Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example of how to add color variables #2868

Closed
lunatiqqc opened this issue Jun 7, 2024 · 1 comment
Closed

Example of how to add color variables #2868

lunatiqqc opened this issue Jun 7, 2024 · 1 comment

Comments

@lunatiqqc
Copy link

Is your feature request related to a problem? Please describe.
I want to define a color variable, such as "primary," and use it consistently in my MJML elements for attributes like color and background-color.

Describe the solution you'd like
Please provide an example demonstrating how to achieve this, either directly in MJML (if possible) or by using a templating engine.

Additional context
I understand that css-class can be used for styling, but some email clients do not support more than two classes in the class list, if I am not mistaken.

@lunatiqqc
Copy link
Author

I found this is supported by defining attributes in the head element and using those. This was not clear to me initially.

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

No branches or pull requests

1 participant