Tailwind pixel unit override not working? #1511
-
This section of the docs helpfully describes how to override Tailwind's config to use When I create a However, when I build an export like yarn run email export --outDir ../backend/data/emails/ --pretty ... all the embedded tailwind units are still Thank you for any help! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
That's because our Tailwind is currently a little unconventional, in that you need to specify the config as a prop to // emails/my-email-template.tsx
// ... other imports
import TailwindConfig from '../tailwind.config';
export default Email() {
return <Tailwind config={TailwindConfig}>
{/* ... */}
</Tailwind>;
} After that it should be working as you expect. |
Beta Was this translation helpful? Give feedback.
That's because our Tailwind is currently a little unconventional, in that you need to specify the config as a prop to
<Tailwind>
. So what you need to do is something like this:After that it should be working as you expect.