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
Just released v1.0.0 of svelte-emails β a library that lets you build HTML emails the way you wish you could: with Svelte components and Tailwind-like styling.
The Problem
HTML email is stuck in the 1990s. Tables for layout. Inline styles everywhere. Outlook breaking everything. We've all been there.
The Solution
<scriptlang="ts"> import { Email, Div, Text, Button } from'svelte-emails' </script> <Emailpreview="Welcome to our platform!"> <Divp-8 bg-[#f3f4f6]> <Text.H1 content="Welcome, **[[first_name]]**! π" /> <Textcontent="We're thrilled to have you on board." /> <Buttonhref="https://example.com"bg-[#3b82f6] text-[#fff] roundedpx-6 py-3 content="Get Started β" /> </Div> </Email>
That's it. No <table> nightmares. No inline style="" spaghetti.
What makes it special
Bulletproof output β Compiles to nested tables, VML (Outlook), and inline styles
Magic emulation β margin, opacity, and rem units just work (we emulate them!)
Grid workflow β <Div cols> and <Div rows> instead of table hell
Responsive β Just add responsive, mobile-only, or desktop-only
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
π svelte-emails 1.0.0
Just released v1.0.0 of svelte-emails β a library that lets you build HTML emails the way you wish you could: with Svelte components and Tailwind-like styling.
The Problem
HTML email is stuck in the 1990s. Tables for layout. Inline styles everywhere. Outlook breaking everything. We've all been there.
The Solution
That's it. No
<table>nightmares. No inlinestyle=""spaghetti.What makes it special
margin,opacity, andremunits just work (we emulate them!)<Div cols>and<Div rows>instead of table hellresponsive,mobile-only, ordesktop-onlycontentprops[[variable]]syntax for runtime personalizationThe Studio
Run
bunx svelte-emailsand get:Links
Would love to hear your feedback! π§‘
Beta Was this translation helpful? Give feedback.
All reactions