# Colour Key: Label & callout element for AI agents

> A key that says what each mark means (yellow highlighter, green highlighter, pen underline), then a paragraph uses those marks.

Canonical page: https://agentframes.ai/elements/jotter/colour-key/
Markdown: https://agentframes.ai/elements/jotter/colour-key.md

## Overview

- Name: Colour Key (`colourKey`), an element: one HyperFrames block per size
- Part of: the [Jotter](https://agentframes.ai/packs/jotter.md) pack (28 of 50). Available only through the All-access subscription.
- Category: Label & callout
- Purpose: A key that says what each mark means (yellow highlighter, green highlighter, pen underline), then a paragraph uses those marks.
- Pack: [Jotter](https://agentframes.ai/packs/jotter.md), included in All-access (from $14/month billed annually ($168/year), or $19 monthly)
- Subscribe: POST https://agentframes.ai/api/checkout/subscribe with interval=month or interval=year (optional currency=USD|GBP|EUR|AUD|CAD; 303 redirect to Stripe checkout; a human pays there). Then download any pack with the subscriber key: https://agentframes.ai/account.md
- Aspects: 16:9 (native), 9:16 (native), 4:5 (native), 1:1 (native)
- Canvases: works on Daylight (white note, dusk wallpaper) (`daylight`), Dark mode (graphite note, night wallpaper) (`dark`), Tinted (cream note, sunrise wallpaper) (`tinted`); avoid none
- Typical duration: 10s
- Speaker-safe: no
- Preview video (watermarked): https://agentframes.ai/media/jotter/colour-key.mp4
- Poster: https://agentframes.ai/media/jotter/colour-key.jpg
- Licence: [AgentFrames Licence](https://agentframes.ai/licence.md)

## Paste this into Claude Code

```text
Use the AgentFrames Jotter pack. Add a `colourKey` beat to plan.json on a `daylight` canvas with slots `title`, `tags`, `keys`, `text` and `cues` from my script. Then run validate → build → qa and show me qa/contact.jpg.
```

## Variables

| Variable | Type | Label | Description | Default |
|---|---|---|---|---|
| `title` | string | title | the note title (types on first); up to 2 lines. Markup: **bold**, ==yellow==, ++green++, ~~struck~~, __pen underline__. {"type":"string","minLength":1,"maxLength":44} | How to read your week |
| `tags` | string | tags | #tags under the title (the first is the accent tag), e.g. ["step 3 of 5", "productivity"]. JSON string. {"type":"array","items":{"type":"string","minLength":1,"maxLength":16},"minItems":0,"maxItems":3} | [] |
| `keys` | string | keys | JSON string. {"type":"array","items":{"type":"object","properties":{"colour":{"type":"string","enum":["yellow","green","pen"]},"label":{"type":"string","minLength":1,"maxLength":30}},"required":["colour","label"]},"minItems":1,"maxItems":3} | [{"colour":"yellow","label":"Moved a priority"},{"colour":"green","label":"Gave you energy"},{"colour":"pen","label":"Do less of this"}] |
| `text` | string | text | use ==yellow==, ++green++ and __pen__ marks. {"type":"string","minLength":10,"maxLength":260} | Monday: ==shipped the pricing page==. Tuesday: ++long walk at lunch++. Wednesday: __three status meetings__. Thursday: ==first draft done==. |
| `cues` | string | cues | start time (s, from the scene start) of each item, in order; empty = typed one after another. JSON string. {"type":"array","items":{"type":"number","minimum":0,"maximum":45},"maxItems":8} | [] |

## What your agent can change

**Colour Key**. Native 1920×1080, 10s at 30fps.

A key that says what each mark means (yellow highlighter, green highlighter, pen underline), then a paragraph uses those marks.

**Motion.** Each key swatch swipes on and its meaning types; a rule draws; the paragraph types and its marks land after their words.
**Why it moves.** grouping: tells the viewer how to read the colours before they appear.

### Mount

Copy every manifest file into your project (plus `af-jotter-runtime`). Mount with a unique host id, `data-composition-id="af-jotter-colour-key-16x9"`,
`data-composition-src="compositions/af-jotter-colour-key-16x9.html"`, `data-duration` and `data-variable-values`.
Use the variant whose size matches your project (16x9, 9x16, 4x5, 1x1): each is laid out natively, never scaled.

### Content slots

Nested slots are JSON strings. Every slot is checked against `constraints.json` and measured against the note before anything
draws; the block stops with a message naming the slot and the fix (it never truncates or shrinks text).

- `title`: the note title (types on first); up to 2 lines. Markup: **bold**, ==yellow==, ++green++, ~~struck~~, __pen underline__. {"type":"string","minLength":1,"maxLength":44}
- `tags`: #tags under the title (the first is the accent tag), e.g. ["step 3 of 5", "productivity"]. {"type":"array","items":{"type":"string","minLength":1,"maxLength":16},"minItems":0,"maxItems":3}
- `keys` (required): {"type":"array","items":{"type":"object","properties":{"colour":{"type":"string","enum":["yellow","green","pen"]},"label":{"type":"string","minLength":1,"maxLength":30}},"required":["colour","label"]},"minItems":1,"maxItems":3}
- `text` (required): use ==yellow==, ++green++ and __pen__ marks. {"type":"string","minLength":10,"maxLength":260}
- `cues`: start time (s, from the scene start) of each item, in order; empty = typed one after another. {"type":"array","items":{"type":"number","minimum":0,"maximum":45},"maxItems":8}

- Text slots take **bold**, ==yellow highlighter==, ++green highlighter++, ~~struck~~ and __pen underline__; marks land after their words are typed.

Style: `colourway` (daylight, dark, tinted), `accent` (optional hex for ticks, tags and the pen), `app` (menu-bar name), `series` (16:9 folder), `stamp` (the date line), `clock`, `intro` (none or open), `exit` (clear or cut), `duration` (seconds).

### Syncing to the narration

Typing runs at a readable pace and speeds up (up to 2.2×) if a scene would otherwise land late. Lists take `cues` (where
offered): the second, from the scene start, at which each item should start typing, taken from your transcript. Raise
`duration` (and the mount's `data-duration`) to fit long narration: everything lands by 60% of the scene, which leaves the rest as a
readable hold while the caret blinks.

### Timing

10s by default. The note starts empty and its content types on from about 0.3 s; reveals land by 60%; with `exit: clear` the content lifts away over the last 0.45 s, leaving the empty note for the next scene.

### Example

```json
{
  "title": "How to read your week",
  "tags": "[]",
  "keys": "[{\"colour\":\"yellow\",\"label\":\"Moved a priority\"},{\"colour\":\"green\",\"label\":\"Gave you energy\"},{\"colour\":\"pen\",\"label\":\"Do less of this\"}]",
  "text": "Monday: ==shipped the pricing page==. Tuesday: ++long walk at lunch++. Wednesday: __three status meetings__. Thursday: ==first draft done==.",
  "cues": "[]"
}
```

## FAQ

### What can my AI agent change in Colour Key?

Your agent fills the `title`, `tags`, `keys`, `text` and `cues` slots through the block's data-variable-values (or the starter project's variables). Motion, timing, palette, fonts and the internal layout are protected, so the result keeps the Jotter look.

### Which aspect ratios does Colour Key support?

Colour Key is designed natively for 16:9, 9:16, 4:5 and 1:1. A typical beat lasts 10s.

### How do I get Colour Key?

Colour Key is included in the Jotter pack, which is part of the AgentFrames All-access subscription along with 49 other templates in this pack and every other pack on the store. You get the full source, the editing contracts and the agent instructions.

## More in Jotter

- [Quote Block](https://agentframes.ai/elements/jotter/quote-block.md): A quotation in a note block quote: an accent bar grows down the left, the quote types in a larger weight with its key words highlighted, and the attribution types underneath.
- [Pen Callout](https://agentframes.ai/elements/jotter/pen-callout.md): A paragraph types, then the pen rings a phrase in it and draws an arrow up to it from a handwritten margin note.
- [Highlight Phrase](https://agentframes.ai/elements/jotter/highlight-phrase.md): A paragraph in larger type; once it is typed, everything except the key phrase dims, and the phrase is swiped yellow and set bold.
- [Caution Note](https://agentframes.ai/elements/jotter/caution-note.md): A warning callout block: a tinted box with an accent edge, a warning sign that wobbles once as it lands, the label in accent and the warning typed beside it.

## Community

Coming soon.
