Articles on: Templates and Layers

Complete Guide to Layer Types

Complete Guide to Layer Types


Templated supports various layer types, each with specific properties you can modify via API.


Text Layers


Display dynamic text content.


Key Properties:

  • text — The text content
  • color — Text color (hex, e.g., "#FF0000")
  • font_family — Font name
  • font_size — Size (e.g., "24px")
  • font_weight — Weight (normal, bold, 100-900)
  • horizontal_align — left, center, right
  • vertical_align — top, center, bottom
  • autofit — Auto-scale text ("width" or "height")


Image Layers


Display images from URLs.


Key Properties:

  • image_url — URL of the image
  • object_fit — How image fits: cover, contain, fill
  • filter — CSS filters (blur, brightness, etc.)


Shape Layers


Rectangles, circles, lines.


Key Properties:

  • fill — Fill color (hex or gradient)
  • stroke — Border color
  • border_width — Border thickness
  • border_radius — Corner rounding
  • border_style — solid, dashed, dotted


QR Code Layers


Generate QR codes dynamically.


Key Properties:

  • text — The URL or text to encode
  • color — QR code color
  • background — Background color


Barcode Layers


Generate various barcode formats.


Key Properties:

  • text — The value to encode
  • barcode_format — CODE128, CODE39, EAN13, EAN8, ITF14, UPC


Rating/Stars Layers


Display star ratings.


Key Properties:

  • rating — Value (e.g., 4.5)
  • Shapes: star, heart, diamond, circle, square


Video Layers


For MP4 exports.


Key Properties:

  • video_url — URL of the video file


Common Properties (All Layers)


  • x, y — Position
  • width, height — Dimensions
  • rotation — Degrees
  • opacity — 0 (transparent) to 1 (visible)
  • hide — true/false to show/hide


For complete API reference: https://templated.io/docs/renders/create/

Updated on: 11/01/2026

Was this article helpful?

Share your feedback

Cancel

Thank you!