Build beautiful emails with Tailwind CSS and React Email.
Libraries like React and Tailwind CSS have made it easier to build modern websites. However, when it comes to emails, we were still stuck with old-school HTML and CSS.
Today we're excited to announce that you can now use Tailwind CSS with React Email to build beautiful emails without having to write any CSS.
"Resend not only streamlines our emails to accommodate our expanding customer base, but their team also offered valuable hands-on support during the transition from our old API. Their product is visually stunning and seamlessly integrates with React Email."
React Email is an open source set of unstyled components maintained by our team to help you build beautiful emails without having to deal with <table>
layouts and maintaining archaic HTML code.
If you're new to React Email, I highly recommend checking out the getting started guide or watching this amazing video from Chris Pennington:
We recommend using create-email, which is the easiest way to get started:
npx create-email@latest
This will create a new folder called "react-email-starter" with a few email templates.
Now, import the component around your email body:
You can customize the default theme with the available properties in Tailwind CSS docs.
"As of our last deployment all of our emails are using Resend. We are loving the development experience of React Email - not having to leave my dev environment to develop new emails is a game-changer."
If you want to see a live example, check out the Vercel template using Tailwind.
The Tailwind CSS integration wouldn't be possible without the help of our incredible open source community. A special thanks to Vinicius de Moraes, who led the initial implementation and fixed several issues along the way.