{
  "schemaVersion": "1.2",
  "kind": "template",
  "id": "flashsale-limited-offer",
  "variantId": "flashsale-limited-offer",
  "template": "flashsale",
  "title": "Flash Sale Limited Offer",
  "url": "https://cliphou.se/templates/flashsale-limited-offer/",
  "editorUrl": "https://cliphou.se/#/v/flashsale-limited-offer",
  "templateVersion": 1,
  "latestTemplateVersion": 1,
  "sourceHash": "97652931a9bdedcd",
  "generation": {
    "model": "Claude Opus 5.5",
    "modelId": "claude-opus-5-5",
    "provider": "Anthropic",
    "effort": "medium"
  },
  "siteCommit": "1faf7b30639adf63cdb3201d08c74b3d2a697c1b",
  "license": "MIT-0",
  "licenseUrl": "https://cliphou.se/license/",
  "price": "Free",
  "attributionRequired": false,
  "format": {
    "aspectRatio": "4:5",
    "width": 1080,
    "height": 1350,
    "fps": 30,
    "durationInFrames": 240,
    "seconds": 8
  },
  "scenes": [
    {
      "type": "title-reveal",
      "label": "Title reveal",
      "from": 0,
      "duration": 80,
      "roles": [
        "brand",
        "headline"
      ]
    },
    {
      "type": "price-reveal",
      "label": "Price reveal",
      "from": 80,
      "duration": 90,
      "roles": [
        "price",
        "priceNote",
        "date"
      ]
    },
    {
      "type": "end-screen",
      "label": "End screen",
      "from": 170,
      "duration": 70,
      "roles": [
        "cta",
        "brand"
      ]
    }
  ],
  "props": {
    "texts": {
      "brand": "KICKBOX",
      "headline": "Flash Sale",
      "price": "50% OFF",
      "priceNote": "All sneakers",
      "date": "Ends Sunday 11:59 PM",
      "cta": "Shop now"
    },
    "theme": {
      "background": "#111111",
      "surface": "#1e1e1e",
      "foreground": "#ffffff",
      "accent": "#ffe600",
      "accent2": "#ff3b30"
    }
  },
  "editableFields": {
    "texts": {
      "brand": {
        "label": "Brand",
        "maxLength": 18,
        "current": "KICKBOX"
      },
      "headline": {
        "label": "Headline",
        "maxLength": 24,
        "current": "Flash Sale"
      },
      "price": {
        "label": "Price",
        "maxLength": 12,
        "format": "Include a number, for example $29.",
        "current": "50% OFF"
      },
      "priceNote": {
        "label": "Price note",
        "maxLength": 24,
        "current": "All sneakers"
      },
      "date": {
        "label": "Date",
        "maxLength": 32,
        "current": "Ends Sunday 11:59 PM"
      },
      "cta": {
        "label": "Call to action",
        "maxLength": 20,
        "current": "Shop now"
      }
    },
    "theme": {
      "background": {
        "format": "#RRGGBB",
        "current": "#111111"
      },
      "surface": {
        "format": "#RRGGBB",
        "current": "#1e1e1e"
      },
      "foreground": {
        "format": "#RRGGBB",
        "current": "#ffffff"
      },
      "accent": {
        "format": "#RRGGBB",
        "current": "#ffe600"
      },
      "accent2": {
        "format": "#RRGGBB",
        "current": "#ff3b30"
      }
    }
  },
  "jsonSchema": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "texts": {
        "type": "object",
        "properties": {
          "brand": {
            "type": "string",
            "minLength": 1,
            "maxLength": 18,
            "role": "brand"
          },
          "headline": {
            "type": "string",
            "minLength": 1,
            "maxLength": 24,
            "role": "headline"
          },
          "price": {
            "type": "string",
            "minLength": 1,
            "maxLength": 12,
            "pattern": "\\d",
            "role": "price"
          },
          "priceNote": {
            "type": "string",
            "minLength": 1,
            "maxLength": 24,
            "role": "priceNote"
          },
          "date": {
            "type": "string",
            "minLength": 1,
            "maxLength": 32,
            "role": "date"
          },
          "cta": {
            "type": "string",
            "minLength": 1,
            "maxLength": 20,
            "role": "cta"
          }
        },
        "required": [
          "brand",
          "headline",
          "price",
          "priceNote",
          "date",
          "cta"
        ],
        "additionalProperties": false
      },
      "theme": {
        "type": "object",
        "properties": {
          "background": {
            "type": "string",
            "pattern": "^#[0-9a-fA-F]{6}$",
            "role": "background"
          },
          "surface": {
            "type": "string",
            "pattern": "^#[0-9a-fA-F]{6}$",
            "role": "surface"
          },
          "foreground": {
            "type": "string",
            "pattern": "^#[0-9a-fA-F]{6}$",
            "role": "foreground"
          },
          "accent": {
            "type": "string",
            "pattern": "^#[0-9a-fA-F]{6}$",
            "role": "accent"
          },
          "accent2": {
            "type": "string",
            "pattern": "^#[0-9a-fA-F]{6}$",
            "role": "accent2"
          }
        },
        "required": [
          "background",
          "surface",
          "foreground",
          "accent",
          "accent2"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "texts",
      "theme"
    ],
    "additionalProperties": false
  },
  "handoff": {
    "urlTemplate": "https://cliphou.se/#/v/flashsale-limited-offer?props=<url-encoded props JSON>",
    "example": "https://cliphou.se/#/v/flashsale-limited-offer?props=%7B%22texts%22%3A%7B%22brand%22%3A%22KICKBOX%22%2C%22headline%22%3A%22Flash%20Sale%22%2C%22price%22%3A%2250%25%20OFF%22%2C%22priceNote%22%3A%22All%20sneakers%22%2C%22date%22%3A%22Ends%20Sunday%2011%3A59%20PM%22%2C%22cta%22%3A%22Shop%20now%22%7D%2C%22theme%22%3A%7B%22background%22%3A%22%23111111%22%2C%22surface%22%3A%22%231e1e1e%22%2C%22foreground%22%3A%22%23ffffff%22%2C%22accent%22%3A%22%23ffe600%22%2C%22accent2%22%3A%22%23ff3b30%22%7D%7D",
    "maxEncodedLength": 8000,
    "note": "cliphou.se validates the props before it opens them. Invalid props are rejected and never saved."
  },
  "source": {
    "package": "https://cliphou.se/source/flashsale/v1.tar.gz",
    "packageSha256": "f8c13d599cfff10a180059f5c4a27442f9233d03b955ad8d74c0624cb4a96012",
    "templateVersion": 1,
    "renderCommand": "npm ci && npx remotion render src/index.ts flashsale out/video.mp4 --props=props.json",
    "repository": "https://github.com/sunmer/voodoo",
    "path": "src/videos/flashsale/",
    "contents": "Remotion component, schema, scene metadata, shared helpers, exact dependency versions, lockfile, example props, and MIT-0 license. Fonts install from pinned Fontsource packages.",
    "note": "Rendering uses Remotion, which has separate license terms: https://remotion.dev/license"
  },
  "instructions": [
    "For text, color, and image edits, change only props.texts, props.theme, and props.media when present. Keep each text within maxLength, each color as #RRGGBB, and each image as one of its listed options.",
    "Return text and color edits as handoff.urlTemplate with the props JSON URL-encoded.",
    "For layout, motion, timing, or scene edits, download source.package, extract it, and edit the code.",
    "Render the source package with source.renderCommand. Edit props.json to change text and colors.",
    "Never send code through the handoff URL. It accepts props only."
  ]
}
