{
  "fonts": [
    { "family": "Schibsted Grotesk", "path": "fonts/SchibstedGrotesk.ttf" },
    { "family": "JetBrains Mono", "path": "fonts/JetBrainsMono.ttf" }
  ],
  "theme": {
    "color": { "ground": "#f4f1ea", "card": "#fbf9f4", "text": "#161412", "mute": "#8a857a", "pencil": "#c92a26",
               "accent": "{color.pencil}", "line": "{color.text}/90%" },
    "type": { "display": { "font": "Schibsted Grotesk", "size": 92, "weight": 860, "tracking": -0.045 },
              "label": { "font": "JetBrains Mono", "size": 16, "weight": 500, "tracking": 0.16, "uppercase": true } },
    "motion": { "house": { "spring": 0.2, "duration": "0.6s" } },
    "styles": { "card": { "fill": "$color.card", "stroke": "$color.line", "strokeWidth": 2, "cornerRadius": 4 } },
    "modes": { "dark": { "color": { "ground": "#131210", "card": "#1d1b18", "text": "#efebe2", "pencil": "#f05a4e" } } }
  },
  "compositions": [
    {
      "id": "theme", "description": "One theme, read by every composition: colors, type styles, a layer style and a house motion",
      "width": 1280, "height": 720, "fps": 30, "duration": "3s", "background": "$color.ground",
      "layers": [
        { "id": "a", "type": "use", "ref": "card", "x": 350, "y": 360, "props": { "kicker": "Theme", "title": "Tokens" },
          "enter": { "from": { "opacity": 0, "y": 40 }, "motion": "house" } },
        { "id": "b", "type": "use", "ref": "card", "x": 930, "y": 360, "start": "0.2s", "props": { "kicker": "Props", "title": "Content" },
          "enter": { "from": { "opacity": 0, "y": 40 }, "motion": "house" } }
      ]
    },
    {
      "id": "card", "width": 500, "height": 340, "duration": "3s", "props": { "kicker": "Kicker", "title": "Card" },
      "layers": [
        { "id": "bg", "type": "rect", "width": 496, "height": 336, "style": "$styles.card" },
        { "id": "kicker", "type": "text", "text": "{{kicker}}", "style": "$type.label", "fill": "$color.mute", "y": 100 },
        { "id": "title", "type": "text", "text": "{{title}}", "style": "$type.display", "fill": "$color.text", "y": 175 },
        { "id": "rule", "type": "rect", "width": 120, "height": 4, "y": 250, "fill": "$accent" }
      ]
    }
  ]
}
