-
-
Notifications
You must be signed in to change notification settings - Fork 48
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
Custom class failing maizzle #1418
Comments
When using |
This comment has been minimized.
This comment has been minimized.
I think I found it. It seems
and
are conflicting with each other. As soon as I remove the Two questions:
<!doctype html>
<html>
<head>
<style>
.h1 {
font-family: undefined;
font-weight: undefined;
font-style: undefined;
letter-spacing: undefined
}
.h2 {
font-family: undefined;
font-weight: undefined;
font-style: undefined;
letter-spacing: undefined
}
.bg-primary-500 {
background-color: rgb(undefined / 1)
}
.bg-slate-500 {
background-color: rgb(100 116 139 / 1)
}
</style>
</head>
<body>
<!--[--><h1 class="h2 bg-slate-500">Verification code</h1> <p>Enter the following verification code when prompted:</p> <p class="h1 bg-primary-500">420705741987381451</p> <p>To protect your account, do not share this code.</p><!--]-->
</body>
</html> |
First of all, thank you so much for your efforts in creating such a fantastic library that makes working with emails a bit less painful! ❤️
I'm trying to use the maizzle render to create the html emails dynamically.
First, I import it
import { render as maizzleRender } from '@maizzle/framework';
and then I call itawait maizzleRender(HTML, maizzleConfig(HTML)).
The problems happen as soon as I add my theme to the config:
Error:
The theme is provided as part of the
skeleton
plugin. This plugin is a Tailwind Design System for adding custom classes.tailwind.config.ts
Maizzle Render file
I'm not really sure if I made a mistake or if this is a bug in Maizzle or even Skeleton. But I can say that I can use the class
md:type-scale-9
in my code without problems, so I tend towards my implementation or Maizzle.PS: It seems that the API page is a bit outdated as the Config keys
inline
andpurge
are not more booleans.The text was updated successfully, but these errors were encountered: