You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 it await maizzleRender(HTML, maizzleConfig(HTML)).
The problems happen as soon as I add my theme to the config:
CssSyntaxError: /home/user/github/test/test:2:13: The `md:type-scale-9` class does not exist. If `md:type-scale-9` is a custom class, make sure it is defined within a `@layer` directive.
at Input.error (/home/user/github/test/node_modules/.pnpm/[email protected]/node_modules/postcss/lib/input.js:109:16)
at AtRule.error (/home/user/github/test/node_modules/.pnpm/[email protected]/node_modules/postcss/lib/node.js:145:32)
at processApply (/home/user/github/test/node_modules/.pnpm/[email protected]/node_modules/tailwindcss/lib/lib/expandApplyAtRules.js:380:29)
at /home/user/github/test/node_modules/.pnpm/[email protected]/node_modules/tailwindcss/lib/lib/expandApplyAtRules.js:551:9
at /home/user/github/test/node_modules/.pnpm/[email protected]/node_modules/tailwindcss/lib/processTailwindFeatures.js:55:50
at async plugins (/home/user/github/test/node_modules/.pnpm/[email protected]/node_modules/tailwindcss/lib/plugin.js:38:17)
at async LazyResult.runAsync (/home/user/github/test/node_modules/.pnpm/[email protected]/node_modules/postcss/lib/lazy-result.js:261:11)
at async Promise.all (index 0) {
reason: 'The `md:type-scale-9` class does not exist. If `md:type-scale-9` is a custom class, make sure it is defined within a `@layer` directive.',
file: '/home/user/github/test/test',
source: '\n' +
' @tailwind components;\n' +
' @tailwind utilities;\n' +
' ',
line: 2,
column: 13,
endLine: 2,
endColumn: 34,
input: {
column: 13,
endColumn: 34,
endLine: 2,
line: 2,
source: '\n' +
' @tailwind components;\n' +
' @tailwind utilities;\n' +
' ',
url: 'file:///home/user/github/test/test',
file: '/home/user/github/test/test'
},
plugin: undefined
}
The theme is provided as part of the skeleton plugin. This plugin is a Tailwind Design System for adding custom classes.
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 and purge are not more booleans.
Maizzle Version: 5.0.0
Node.js Version: v22.12.0
The text was updated successfully, but these errors were encountered:
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: