1The frame a figure sits in: a captioned bar and an edge-to-edge content
2well, shared by illustrations, images and video.
3
4Shared deliberately between the data illustrations and the media
5section. They are different things to look at but the same kind of
6object on a page — something being shown, named and framed — and one
7container is what makes a page of them read as a set.
8
9## Content edges
10
11Content always fills the well. There is no padded variant, dotted mat,
12extra inner panel or `inset` prop. The caption and well retain their
13shared 16px outer inset; that is frame chrome, not content padding.
14
15An illustration may keep its own internal spacing for labels, charts
16or controls. FigFrame does not add another padding layer around it.
17Images and video fill the same well without special configuration.
18
19The source overlay still occupies the well without unmounting the
20figure, so switching views preserves the frame's height.
21
22## The two controls are real
23
24**`⟨⟩` reveals the source.** It uses the same internal code renderer as
25Code Panel and Code Snippet, without mounting a page module or its
26index inside the frame. Line numbers, optional tree and copying remain.
27When no source is supplied the control is omitted, rather than dead.
28
29The frame holds its height across the toggle and lets the code scroll
30inside it. The figure stays mounted underneath rather than being
31swapped out — unmounting it collapsed the well from 554px to 52px, which
32read as the control having broken the frame. A running simulation also
33keeps running while you read its source, so toggling back does not
34restart it.
35
36**The circle inverts the palette.** Hollow at rest, filled when
37inverted.
38
39Inversion is a general capability rather than a frame trick: a
40`data-invert` block in `tokens.css` restates the ink ramp reversed, and
41any element in the scope can carry the attribute. The frame only sets
42it. R-02 said "Reverse is white" without ever defining the other four
43steps; that is what this fills in.
44
45There is no opt-out prop, because anything that genuinely should not
46flip is not reading the ramp in the first place. The media well's scrim
47and play glyph are the case in point — they sit over footage rather
48than over a surface, carry fixed values, and are unaffected either way.
49
50## Captions
51
52`[ fig. n — label ]`, centred. The frame names the figure; a figure's
53own meta row states its parameters. Two rows, two jobs — which is why
54the data illustrations keep theirs inside the panel.