@emabuild/assets
v1.0.0
Published
Static images used by @emabuild email exports (social icons, countdown placeholder). Host them yourself or load them from a public npm CDN.
Readme
@emabuild/assets
Static images used by emails exported with the Emabuild editor:
social/<style>/<network>.png: social icons, 64×64 (shown at 32 px). Styles:circle,circle-black,circle-white,rounded,rounded-black,squared,squared-black. Networks: facebook, x, twitter, instagram, linkedin, pinterest, youtube, vimeo, tiktok, whatsapp, email, snapchat, tumblr, reddit, discord, telegram, github, medium, spotify, soundcloud.countdown/placeholder.png: shown for a countdown that has no live image service yet.
Where they are loaded from
By default @emabuild/core loads them from the public npm CDN (https://cdn.jsdelivr.net/npm/@emabuild/assets@1).
Recommended for production: serve them from your own domain, so the people who open your emails make no request to a third party. Copy the package's folders and set the base URL:
npm install @emabuild/assets
cp -r node_modules/@emabuild/assets/{social,countdown} public/emabuild/editor.options = { assetsBaseUrl: 'https://static.example.com/emabuild' }; // editor
renderEmail(design, { assetsBaseUrl: 'https://static.example.com/emabuild' }); // serverRegenerating
pnpm --filter @emabuild/assets generate (needs Chromium for Playwright).
Licenses
See LICENSE-ICONS.md. Brand names and logos belong to their owners; the icons are meant to link to the brands' own pages.
