概要
💌 Build your emails using Svelte and Tailwind
Web・アプリ開発できること
- Tailwind v4 Support - Transforms Tailwind classes to inline styles for email clients
- Plain CSS Support - You can use plain CSS for your email styles, tailwind is optional
- Email Preview via CLI - Visual email preview and test sending, just run npx @better-svelte-email/cli dev
- TypeScript First - Fully typed with comprehensive type definitions
計測したスター増加
- 24時間
- 0
- 7日間
- +1
- 15日間
- +2
- 1か月
- 履歴を収集中
期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。
README.md
オリジナルUsage
See the documentation for a complete guide on how to use Better Svelte Email.
Features
- Tailwind v4 Support - Transforms Tailwind classes to inline styles for email clients
- Plain CSS Support - You can use plain CSS for your email styles, tailwind is optional
- Email Preview via CLI - Visual email preview and test sending, just run
npx @better-svelte-email/cli dev - TypeScript First - Fully typed with comprehensive type definitions
- Well Tested - >90% test coverage with unit and integration tests
- Minimal - Whole library is under 16k lines of code and ≈220kb uncompressed
Why?
Existing Svelte email solutions have significant limitations:
- svelte-email hasn't been updated in over 2 years
- svelte-email-tailwind suffers from stability issues and maintaining it is not sustainable anymore
Better Svelte Email is a complete rewrite of svelte-email-tailwind inspired by React Email, providing the rock-solid foundation your email infrastructure needs. It brings the simplicity, reliability, and feature richness of React Email to the Svelte ecosystem.
Minimum Svelte Version
The minimum supported Svelte version is 5.14.3.
For older versions, you can use svelte-email-tailwind.
Supported Features
✅ Supported
- All tailwindcss v4 utilities
- Custom Tailwind classes (
bg-[#fff],my:[40px], ...) - Dynamic Tailwind classes (
class={someVar}) - Responsive breakpoints (
sm:,md:,lg:,xl:,2xl:) - HTML elements and Svelte components
- Nested components
- All svelte features such as each blocks (
{#each}) and if blocks ({#if}), and more - Custom Tailwind configurations
- Custom CSS injection (for app theme integration)
Author
Anatole Dufour (@Konixy)
Author of svelte-email-tailwind
Steven Polak (@steveninety)
Authors of react-email
Bu Kinoshita (@bukinoshita)
Zeno Rocha (@zenorocha)
Development
Running Tests
bun run test
All tests must pass before pushing to main. The CI/CD pipeline will automatically run tests on every push and pull request.
Building
bun run build
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
To do so, you'll need to:
- Fork the repository
- Create a feature branch (
git checkout -b feat/amazing-feature) - Make your changes
- Run tests (
bun run test) - Commit your changes using conventional commits:
feat:- New featuresfix:- Bug fixesdocs:- Documentation changestest:- Test additions/changeschore:- Maintenance tasks
- Push to your branch (
git push origin feat/amazing-feature) - Open a Pull Request
Acknowledgements
Many components and logic were inspired by or adapted from svelte-email-tailwind and react-email. Huge thanks to the authors and contributors of these projects for their excellent work.
関連プロジェクトを探す
読み込み中…