Skip to content

Setup & Export Guide

Learn how to create and export SVG files that work with Cast’s Custom slide.


  • Dimensions: 1080 x 810 pixels
  • Aspect Ratio: 4:3 (most important)
  • Format: Static or animated SVGs with embedded CSS
  • Dimensions: 440 x 836 pixels
  • Aspect Ratio: 1:1.9 (most important)
  • Format: Static or animated SVGs with embedded CSS
  • CSS animations - Fully supported
  • JavaScript animations - Not supported for security reasons

Cast supports special SVG element identifiers that enable dynamic content personalization. By using specific ID naming conventions, you can:

Add lc_ prefix to element IDs to replace content with dynamic data:

{% raw %}

<!-- In your SVG -->
<text id="lc_customer-name">Placeholder Name</text>
<text id="abc-lc_revenue">$0</text>
<!-- In your dataset -->
{{ customer-name }} = "Acme Corp"
{{ revenue }} = "$125,000"

{% endraw %}

Result: “Placeholder Name” becomes “Acme Corp” and “$0” becomes “$125,000”

Note: Cast automatically detects IDs with or without prefixes (e.g., both lc_customer-name and abc-lc_customer-name work)

Use lc_ or hid_ prefixes to control element visibility per narration:

{% raw %}

<!-- In your SVG -->
<text id="abc-lc_metric-label">Q4 Revenue</text>
<g id="something-hid_performance"><rect/></g>

{% endraw %}

These elements can be controlled in the narration settings to appear, disappear, or dim during playback.

Use special prefixes to control visual properties:

  • lc_bar_* - Horizontal bar width
  • lc_column_* - Vertical column height
  • lc_circle_* - Circular progress
  • lc_color_* - Dynamic colors
  • lc_image_* - Dynamic images
  • And many more…

View all elements and widgets (with example images) →


To preserve SVG identifiers and text elements when exporting from Figma, follow these critical settings:

  1. Include bounding box - Must be checked
  2. Include “id” attribute - Must be checked
  3. Outline Text - Must be unchecked (especially for lc_ variables)

If you have text elements with unique fonts that you don’t want to personalize:

  1. Right-click the text element in Figma
  2. Select “Outline stroke”
  3. This converts that specific text to paths while preserving other text elements
  • Name layers with lc_ prefix for dynamic content
  • Use clear, descriptive variable names (e.g., lc_customer-name, not lc_cn)
  • Test export with a simple element before creating complex graphics
  • Keep text elements as text (don’t outline) if they need personalization

Create engaging motion graphics by exporting from Figma and animating in SVGator.

  1. Design in Figma - Create your base SVG following the export guidelines above
  2. Export from Figma - Use proper settings to preserve IDs and text
  3. Import to SVGator - Upload your SVG to SVGator
  4. Apply animations - Add desired motion effects
  5. Export from SVGator - Use the settings below

Critical Settings:

  1. Exported IDs → Change to “Element’s name”
  2. Animation type → Change to “CSS only”
    • JavaScript animations are not supported for security reasons
  3. Direction → Set to “Normal”, “Reverse”, or “Alternate” as needed
  4. Iterations → Set to “Infinite” or specify a count
  5. Preview → Click “Refresh preview” to test your animation
  6. Save → Click “Save” to preserve your settings
  7. Export → Download your animated SVG
  • ID Prefixes: SVGator typically prepends the filename to IDs
    • Example: lc_revenue becomes myfile-lc_revenue
    • Cast automatically detects both formats, so this works fine
  • CSS Only: We only support CSS animations due to security requirements
    • JavaScript-based animations will not work
  • Testing: Always preview your animation in SVGator before exporting

Before uploading to Cast:

  1. Open in browser - Drag your SVG into Chrome/Firefox to verify it displays
  2. Check IDs - Open the SVG in a text editor and verify lc_ IDs are present
  3. Test animation - If animated, verify the animation plays in browser
  4. Check file size - Large SVGs (>1MB) may need optimization
Issue Solution
Text not updating Ensure “Outline Text” was unchecked in Figma export
IDs missing Verify “Include id attribute” was checked
Animation not playing Check that animation type is “CSS only”
Fonts look wrong Ensure fonts are web-safe or outlined for decorative text
File too large Optimize SVG using SVGOMG or similar tools

Now that you know how to create SVGs, learn what you can do with them:

← Back to Custom Overview