source-html.mdx 1.5 KB

1234567891011121314151617181920212223242526
  1. ---
  2. title: Source templates
  3. order: 3
  4. seoTitle: Tabler Emails - How to use the source HTML email templates
  5. description: Learn how to use the source HTML email templates from the Tabler Emails package.
  6. summary: The source HTML files from the Tabler Emails package need a bit more work than the compiled ones. Learn how to use them.
  7. seoDescription: The source HTML files from the Tabler Emails package need a bit more work than the compiled ones. Learn how to use them.
  8. ---
  9. ## Source version of the template
  10. If you want to make more advanced changes to the email template, you can use the source HTML files - `source.html` combined with the `theme.css` file. They are ready to use, but you need a basic knowledge of HTML and CSS to modify them.
  11. ## How to modify the source HTML files
  12. 1. Open the `source.html` file in your favorite code editor.
  13. 2. Open the `theme.css` file from the `assets/`* directory in the same editor.
  14. 3. Change all the content and styles as needed.
  15. 4. Use a selected tool to inline the CSS styles into the HTML file. There are a lot of options, such as:
  16. * Online tools like [Juice](https://automattic.github.io/juice/) or [Mailchimp CSS Inliner Tool](https://templates.mailchimp.com/resources/inline-css/).
  17. * NPM tools like [juice](https://www.npmjs.com/package/juice) or [inline-css](https://www.npmjs.com/package/inline-css).
  18. 5. Save the output HTML file.
  19. ## How to use the source HTML files
  20. To use the modified HTML template send the output file with the `assets/` folder to your email marketing tool.