HTML Layers
HTML Layers
Embed custom HTML content in your templates.
What are HTML Layers?
HTML layers allow you to insert arbitrary HTML/CSS content that renders as part of your template. Useful for:
- Complex formatted text
- Custom styling not available in standard layers
- Embedding web content
- Dynamic content generation
Adding HTML Layers
In Editor
- Click HTML in the sidebar
- An HTML layer is added
- Double-click to edit the HTML content
- Write your HTML/CSS
Via API
{
"layers": {
"html-content": {
"html": "<div style='color: red; font-size: 24px;'>Custom <b>HTML</b> content</div>"
}
}
}
Supported HTML
- Basic HTML tags (
div,span,p,h1-h6,b,i,u) - Inline CSS styles
- CSS classes (defined inline)
- Images via
<img>tag - Lists (
ul,ol,li) - Tables
Example: Formatted Price
<div style="font-family: Arial; text-align: center;">
<span style="font-size: 14px; color: #666;">Starting at</span><br/>
<span style="font-size: 48px; font-weight: bold; color: #000;">$99</span>
<span style="font-size: 24px; color: #666;">/mo</span>
</div>
Limitations
- No JavaScript execution
- External resources may not load (CORS)
- Complex CSS features may not render
- Performance impact with complex HTML
Best Practices
- Keep it simple — Use native layers when possible
- Inline styles — External CSS won't load
- Test rendering — Preview before production
- Use for formatting — Not for complex interactivity
Use Cases
- Multi-formatted text blocks
- Custom bullet points/icons
- Complex layouts
- Styled tables
- Formatted quotes
Updated on: 11/01/2026
Thank you!