-
Notifications
You must be signed in to change notification settings - Fork 908
Description
What versions are you using? (if relevant)
@react-email/components@1.0.6, react-email@5.2.5
Describe the Bug
I'm having an issue when using Tailwind with React Email:
when I apply any shadow utility class to the Container component, all styles on that Container disappear in the rendered email.
I'm testing this in Gmail (web).
Without the shadow class, Tailwind styles are applied correctly.
As soon as I add shadow (or other shadow-* classes), the Container loses all its styles (padding, background, etc.).
What is affected (leave empty if unsure)
No response
Link to the code that reproduces this issue
A link to a GitHub repository minimal reproduction. Not your entire project, just the code necessary to reproduce the issue. Try going from the starter npx create-email@latest and adding only what's needed to cause the issue. If you don't share a reproduction, we might close the issue or it will take significantly longer for things to get sorted out.
To Reproduce
Steps to reproduce the behavior, please provide a clear description of how to reproduce the issue, based on the linked minimal reproduction. Screenshots can be provided in the issue body below. If using code blocks, make sure that syntax highlighting is correct and double check that the rendered preview is not broken.
Expected Behavior
The Container should keep all its Tailwind styles (background, padding, border radius, etc.) and also have the box-shadow applied.
What's your node version? (if relevant)
No response