Shade Finder. Native 1920×1080, 5s at 30fps. Sits over the creator's full-bleed footage (transparent outside its own parts).
Up to five shade dabs press on in a row on a milk smear, a ring slides along and stops on the match, and the shade name lands in italic Bodoni.
Motion. Dabs press on 0.08 s apart; the ring pops then glides (ease in-out) to the match; the name fades up. Why it moves. character: finding your shade, the way it happens at the counter.
Mount
Copy every manifest file into your project (plus af-swatch-runtime). Mount with a unique host id, data-composition-id="af-swatch-shade-finder-16x9", data-composition-src="compositions/af-swatch-shade-finder-16x9.html", data-duration and data-variable-values. A longer data-duration than 5s extends the hold (the exit moves to the end of the mount). Use the variant whose size matches your project: 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 layout before anything draws; the block stops with a message naming the slot and the fix (it never truncates or shrinks text).
shades (required): {"type":"array","minItems":2,"maxItems":5,"items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":16},"col":{"type":"string","pattern":"^#[0-9A-Fa-f]{6}$"}},"required":["name","col"]}}match: {"type":"integer","minimum":0,"maximum":4}backdrop: {"type":"string","minLength":0,"maxLength":200}
col is each shade's hex; match is 0-based.- 16:9 uses the empty third beside the face; 9:16 the band under the chin (clear of the right-hand platform buttons); 4:5 and 1:1 the lower zone. Move it with
zoneTop. backdrop is a still of the speaker so the block reads on its own; set it to "" over your live footage.
Brand and layout
Brand variables (defaults from brand.json): colourway, accent, creator, handle, channel, tagline, monogram, ctaFollow, ctaLink, ctaCode. Layout: capTop (caption top, px), zoneTop (card zone top, px), exit (wipe or hold).
Example
``json { "shades": "[{\"name\":\"Porcelain\",\"col\":\"#F3DCCB\"},{\"name\":\"Sand\",\"col\":\"#E2B994\"},{\"name\":\"Honey\",\"col\":\"#C88E5E\"},{\"name\":\"Caramel\",\"col\":\"#A2683F\"},{\"name\":\"Espresso\",\"col\":\"#5E3A24\"}]", "match": 2, "backdrop": "assets/af-swatch/media/speaker-16x9.jpg" } ``