Template Designer Guide
Learn how to use Canary’s visual drag-and-drop email editor to create beautiful, responsive email templates.
Overview
The Template Designer is a visual email builder that lets you create professional email templates without writing code. Features include:
- 19 block types for diverse content
- Drag-and-drop editing
- Live preview with sample data
- Variable support for personalization
- Multi-column layouts
- PDF template support
Getting Started
Creating a New Template
- Navigate to Templates in the sidebar
- Click Create Template
- Choose between Email Template or PDF Template
- Enter a name and optional description
- Start designing in the visual editor
Template Types
| Type | Description |
|---|---|
| Standard email templates for transactional or marketing emails | |
| Templates designed for PDF generation and attachments |
Block Types
Canary provides 19 block types organized into categories:
Basic Blocks
| Block | Description |
|---|---|
| Heading | H1, H2, or H3 headings with customizable styling |
| Text | Rich text content with HTML support |
| Button | Call-to-action buttons with customizable styles |
| Image | Images with optional link and alignment |
| Divider | Horizontal line separator |
| Spacer | Vertical spacing element |
Layout Blocks
| Block | Description |
|---|---|
| Container | Wrapper for grouping blocks with background |
| 2/3 Columns | Multi-column layout for side-by-side content |
Content Blocks
| Block | Description |
|---|---|
| Avatar | Circular or square profile images |
| Quote | Styled blockquote with author attribution |
| List | Bulleted or numbered lists |
| Table | Data tables with headers and striped rows |
| Code | Syntax-highlighted code blocks |
| Badge | Small labels or tags |
| Icon | Decorative icons with customizable size/color |
Media Blocks
| Block | Description |
|---|---|
| Video | Video thumbnail with play button link |
| Social Icons | Social media icon links |
Advanced Blocks
| Block | Description |
|---|---|
| HTML | Custom HTML for advanced layouts |
| Chart | Data visualizations (bar, line, pie, area, doughnut) |
Using the Chart Block
The Chart block allows you to embed data visualizations in your emails. Charts are rendered as images for email compatibility.
Chart Types
| Type | Best For |
|---|---|
| Bar | Comparing categories |
| Line | Trends over time |
| Area | Volume/quantity over time |
| Pie | Parts of a whole |
| Doughnut | Parts of a whole (with center hole) |
Static Data
Define chart data directly in the editor:
- Add a Chart block to your template
- Select Static as the data source
- Enter labels (e.g., “Jan”, “Feb”, “Mar”)
- Add datasets with values
{
"labels": ["Jan", "Feb", "Mar", "Apr"],
"datasets": [
{ "name": "Sales", "values": [100, 150, 120, 180] },
{ "name": "Revenue", "values": [80, 120, 100, 160] }
]
}
Dynamic Data
Use variables to inject chart data at send time:
- Add a Chart block
- Select Dynamic as the data source
- Enter a variable name (e.g.,
chartData) - Pass the data when sending the email
Template Variable:
API Request:
{
"templateId": "monthly-report",
"to": "user@example.com",
"variables": {
"chartData": {
"labels": ["Week 1", "Week 2", "Week 3", "Week 4"],
"datasets": [
{ "name": "Users", "values": [250, 320, 290, 410] }
]
}
}
}
Chart Customization
| Option | Description |
|---|---|
| Title | Chart title displayed above |
| Colors | Color palette for datasets |
| Legend | Show/hide legend and position |
| Grid Lines | Show/hide background grid |
| Axis Labels | Labels for X and Y axes |
| Width/Height | Chart dimensions in pixels |
Template Variables
Use Handlebars syntax to add personalization:
Basic Variables
Hello ,
Thank you for your order #.
Nested Objects
Your order total:
Shipping to:
Conditionals
Loops
Testing Variables
Use the Sample Data panel to test your template with real data:
- Click the Variables tab in the inspector
- Enter JSON sample data
- Toggle Show Variables to see rendered output
{
"name": "John Doe",
"orderNumber": "ORD-12345",
"items": [
{ "name": "Widget", "price": "$10.00" },
{ "name": "Gadget", "price": "$25.00" }
]
}
Email Styles (Global Settings)
Configure global styles that apply to the entire email:
| Setting | Description |
|---|---|
| Backdrop Color | Background color behind the email |
| Canvas Color | Main email body background |
| Text Color | Default text color |
| Font Family | Global font (9 options available) |
Available Fonts
- Modern Sans (Inter)
- Book Sans (Open Sans)
- Organic Sans (Quicksand)
- Geometric Sans (Poppins)
- Heavy Sans (Oswald)
- Rounded Sans (Nunito)
- Modern Serif (Merriweather)
- Book Serif (Lora)
- Monospace (Roboto Mono)
Block Styling
Each block can be individually styled:
Padding
Control spacing around block content:
- Top, Bottom, Left, Right padding
- Values in pixels
Background
Set block-level background colors.
Text Alignment
Left, center, or right alignment for text blocks.
Block-Specific Styles
Each block type has additional styling options:
Button:
- Button color
- Text color
- Style (rectangle, rounded, pill)
- Size (x-small to large)
- Full width toggle
Image:
- Content alignment
- Link URL
- Alt text
Divider:
- Line color
- Line height
Preset Templates
Speed up template creation with preset sections:
| Preset | Description |
|---|---|
| Header | Logo + navigation |
| Hero | Large image + heading + CTA |
| CTA | Highlighted call-to-action section |
| Social | Social media links |
| Footer | Standard email footer |
| Testimonial | Customer quote section |
To use a preset:
- Click the Presets tab in the block menu
- Click on a preset to add it to your template
- Customize the content as needed
Preview and Testing
Live Preview
The right panel shows a live preview of your email. Toggle between:
- Desktop view
- Mobile view (responsive preview)
Sample Data Preview
- Add sample data in the Variables panel
- Click Show Variables to see personalized preview
- Verify all variables render correctly
Send Test Email
- Click Test Send button
- Enter a recipient email address
- Optionally modify test variables
- Click Send Test
The test email will be sent with [TEST] prefix in the subject.
Version Control
Templates support versioning for change tracking:
Creating Versions
Click Create Version to snapshot the current template state. Optionally name the version (e.g., “Before redesign”).
Restoring Versions
- Click the version history dropdown
- Select a previous version
- Click Restore to revert to that version
Best Practices
Email Design
- Keep it simple - Fewer blocks load faster and render better
- Use web-safe colors - Stick to standard colors for consistency
- Optimize images - Use compressed images with absolute URLs
- Test across clients - Preview in multiple email clients
- Mobile-first - Design for mobile, then adjust for desktop
Variables
- Provide defaults - Handle missing variables gracefully
- Test thoroughly - Use sample data to verify all paths
- Document variables - List required variables in template description
PDF Templates
- Use fixed widths - 600-800px works well for print
- Avoid interactive elements - Links won’t work in PDFs
- Consider page breaks - Long content may span multiple pages
- Test rendering - Preview PDF output before production use
Keyboard Shortcuts
| Shortcut | Action |
|---|---|
Ctrl+S | Save template |
Ctrl+Z | Undo |
Ctrl+Y | Redo |
Delete | Delete selected block |
↑/↓ | Navigate between blocks |