{
  "fonts": [
    { "family": "Schibsted Grotesk", "path": "fonts/SchibstedGrotesk.ttf" },
    { "family": "JetBrains Mono", "path": "fonts/JetBrainsMono.ttf" }
  ],
  "compositions": [
    {
      "id": "main", "description": "A stat component used three times in a row layout, each with its own props",
      "width": 1280, "height": 720, "fps": 30, "duration": "4s", "background": "#f4f1ea",
      "layers": [
        { "id": "row", "type": "group", "layout": { "direction": "row", "gap": 40 }, "children": [
          { "id": "users", "type": "use", "ref": "stat", "props": { "value": 1280, "label": "users", "color": "#161412" } },
          { "id": "uptime", "type": "use", "ref": "stat", "props": { "value": 99, "label": "% uptime", "color": "#1f5fb0" } },
          { "id": "deploys", "type": "use", "ref": "stat", "props": { "value": 342, "label": "deploys", "color": "#c92a26" } }
        ] }
      ]
    },
    {
      "id": "stat", "description": "Stat card. Props: value (number), label, color",
      "width": 340, "height": 280, "fps": 30, "duration": "4s",
      "props": { "value": 100, "label": "label", "color": "#161412" },
      "layers": [
        { "id": "card", "type": "rect", "cornerRadius": 3, "fill": "#fbf9f4", "stroke": "#161412", "strokeWidth": 2, "enter": "pop" },
        { "id": "bar", "type": "rect", "anchor": "top-left", "x": 32, "y": 32, "height": 8, "fill": "{{color}}",
          "width": { "from": 0, "to": 276, "duration": "1.2s", "ease": "easeOutCubic" } },
        { "id": "value", "type": "text", "y": 135, "font": "Schibsted Grotesk", "fontWeight": 860, "fontSize": 96,
          "letterSpacing": -4.5, "fill": "#161412", "text": "${fmt(round({{value}} * easeOutCubic(clamp(t / 1.5, 0, 1))))}" },
        { "id": "label", "type": "text", "text": "{{label}}", "y": 212, "font": "JetBrains Mono", "fontSize": 18, "letterSpacing": 2.5,
          "uppercase": true, "fill": "{{color}}" }
      ]
    }
  ]
}
