react-email
react-email copied to clipboard
CSS variables defined in the template are substituted with `undefined` when using Tailwind
Describe the Bug
Right now, if you want to use the same Shadcn styles in the react-email you have to duplicate the tailwind config file and manually replace the css variables with the actual values. Apparently react-email strip out <style> tags before transforming classnames to styles.
Which package is affected (leave empty if unsure)
@react-email/tailwind, react-email
Link to the code that reproduces this issue
https://github.com/wladpaiva/react-email-shadcn
To Reproduce
- run
bun dev - open template and inspect
<Text>elements
Expected Behavior
Both <p>s should have background set but only the one using the css variable is set to undefined
What's your node version? (if relevant)
No response