Introduction
Learn how to use dynamic parameters to control styles, generate AI content, and add interactive elements to your templates
What are Dynamic Parameters?
Dynamic parameters allow you to override template styles, content, and behavior at runtime using a simple dot notation syntax. Instead of creating multiple template versions, you can dynamically modify any parameterized element when generating images.
Video Tutorial
Key Capabilities
Dynamic parameters enable you to:
- Override Styles - Change colors, fonts, sizes, and other CSS properties
- Generate AI Content - Use
.promptto generate text and images with AI - Add Interactive Links - Use
.hrefto make elements clickable in PDFs
How It Works
When you parameterize an element in Orshot Studio (e.g., naming a text element title), you can override its properties using the format:
Basic Examples
Multi-Page Templates
For templates with multiple pages, prefix with the page number:
Supported Properties by Element Type
Text Elements
Content & Typography:
fontSize- Size in px (e.g.,"24px")fontWeight- Weight from 100-900 (e.g.,"700")fontStyle-"normal"or"italic"fontFamily- Any Google Font or uploaded custom fontcolor- Hex or rgba colorlineHeight- Line height (e.g.,"1.5")letterSpacing- Letter spacing in pxtextAlign-"left","center", or"right"verticalAlign-"flex-start","center", or"flex-end"textDecoration-"none","underline", etc.textTransform-"none","uppercase","lowercase","capitalize"
Effects:
textStrokeWidth- Outline width in pxtextStrokeColor- Outline colorbackgroundColor- Background color behind textbackgroundRadius- Border radius for backgroundopacity- 0 to 1filter- CSS blur filter (e.g.,"blur(2px)")dropShadowX,dropShadowY,dropShadowBlur,dropShadowColor- Drop shadow properties
Reserved Properties:
.prompt- AI text generation (see AI Generation).href- Add clickable links (see Links)
Image Elements
Layout & Styling:
objectFit-"contain","cover","fill", etc.objectPosition- Position (e.g.,"center center")borderRadius- Corner radius in pxborderWidth- Border width in pxborderColor- Border colorboxShadowX,boxShadowY,boxShadowBlur,boxShadowColor- Box shadow properties
Effects:
opacity- 0 to 1filter- CSS blur filterdropShadowX,dropShadowY,dropShadowBlur,dropShadowColor- Drop shadow properties
Reserved Properties:
.prompt- AI image generation (see AI Generation).href- Add clickable links (see Links)
Shape Elements
fill- Fill colorstroke- Stroke colorstrokeWidth- Stroke width in pxborderRadius- Corner radius in pxopacity- 0 to 1filter- CSS blur filterdropShadowX,dropShadowY,dropShadowBlur,dropShadowColor- Drop shadow properties
Usage Across Integrations
Dynamic parameters work consistently across all Orshot integrations:
REST API
Dynamic URLs
Property Value Formats
Colors
Sizes
Fonts
URLs
Case Insensitivity
Property names are case-insensitive for convenience:
Best Practices
- Use Consistent Units - Stick to
pxfor sizes to avoid rendering issues - Test Property Values - Use the Playground to test modifications before deploying
- Validate Colors - Use valid hex or rgba formats
- Check Font Availability - Ensure custom fonts are uploaded or use available Google Fonts
- Handle Multi-Page Templates - Always prefix with page number when applicable
Next Steps
- Learn about AI Content Generation with .prompt
- Add Interactive Links with .href
- Explore API Reference for complete integration details