ContentFigure

Figure

Enhanced image display with caption, sizing, and alignment controls.

With caption attribute

Set the caption directly on the rune.

{% figure caption="A coral reef teeming with life beneath turquoise waters" size="large" align="center" %}
![Coral reef](https://assets.refrakt.md/figure-coral-reef.jpg)
{% /figure %}
<figure data-rune="figure" typeof="ImageObject" data-rune-fields="{&quot;size&quot;:&quot;large&quot;,&quot;align&quot;:&quot;center&quot;}">
  <img src="https://assets.refrakt.md/figure-coral-reef.jpg" alt="Coral reef" property="contentUrl">
  <figcaption data-name="caption" property="caption">A coral reef teeming with life beneath turquoise waters</figcaption>
</figure>
Coral reef
A coral reef teeming with life beneath turquoise waters
<figure typeof="ImageObject" class="rf-figure rf-figure--large rf-figure--center" data-size="large" data-align="center" data-elevation="flat" data-rune="figure" data-density="compact">
  <img src="https://assets.refrakt.md/figure-coral-reef.jpg" alt="Coral reef" property="contentUrl" />
  <figcaption data-name="caption" property="caption" class="rf-figure__caption" data-section="description">A coral reef teeming with life beneath turquoise waters</figcaption>
</figure>

With paragraph caption

If no caption attribute is provided, the first paragraph inside the rune is used as the caption.

{% figure size="medium" %}
![Hot springs](https://assets.refrakt.md/figure-hot-springs.jpg)

Steam rising from volcanic hot springs in the Icelandic highlands.
{% /figure %}
<figure data-rune="figure" typeof="ImageObject" data-rune-fields="{&quot;size&quot;:&quot;medium&quot;}">
  <img src="https://assets.refrakt.md/figure-hot-springs.jpg" alt="Hot springs" property="contentUrl">
  <figcaption data-name="caption" property="caption">
    <p>Steam rising from volcanic hot springs in the Icelandic highlands.</p>
  </figcaption>
</figure>
Hot springs

Steam rising from volcanic hot springs in the Icelandic highlands.

<figure typeof="ImageObject" class="rf-figure rf-figure--medium rf-figure--center" data-size="medium" data-align="center" data-elevation="flat" data-rune="figure" data-density="compact">
  <img src="https://assets.refrakt.md/figure-hot-springs.jpg" alt="Hot springs" property="contentUrl" />
  <figcaption data-name="caption" property="caption" class="rf-figure__caption" data-section="description">
    <p>Steam rising from volcanic hot springs in the Icelandic highlands.</p>
  </figcaption>
</figure>

Elevation & frame

A figure is a frame around its image, so it sets frameTarget: "self" (surface model): frame chrome lands on the figure itself. elevation floats the figure as a box (box-shadow); frame-shadow is the image's silhouette drop-shadow; frame-aspect crops it to a ratio.

{% figure elevation="floating" frame-aspect="4/3" caption="Framed at 4/3 with a lifted figure" %}
![Coral reef](https://assets.refrakt.md/figure-coral-reef.jpg)
{% /figure %}
<figure data-rune="figure" typeof="ImageObject" elevation="floating">
  <img src="https://assets.refrakt.md/figure-coral-reef.jpg" alt="Coral reef" property="contentUrl">
  <figcaption data-name="caption" property="caption">Framed at 4/3 with a lifted figure</figcaption>
  <meta data-field="frame-aspect" content="4/3">
</figure>
Coral reef
Framed at 4/3 with a lifted figure
<figure typeof="ImageObject" class="rf-figure rf-figure--default rf-figure--center" data-size="default" data-align="center" data-elevation="floating" data-rune="figure" data-density="compact" style="--frame-aspect: 4/3">
  <img src="https://assets.refrakt.md/figure-coral-reef.jpg" alt="Coral reef" property="contentUrl" />
  <figcaption data-name="caption" property="caption" class="rf-figure__caption" data-section="description">Framed at 4/3 with a lifted figure</figcaption>
</figure>

Attributes

AttributeTypeRequiredDescription
size"small" | "medium" | "large" | "full"Display width of the figure
align"left" | "center" | "right"Horizontal alignment of the figure
captionstringCaption text displayed below the figure

Universal attributes

bg

The background layer (SPEC-088): image, video, gradient, flat overlay wash and legibility scrim, in a single injected layer behind the rune's content.

AttributeTypeRequiredDescription
bgstringBackground preset applied to this block
bg-fromstringGradient start colour — a semantic token name (→ var(--rf-color-*))
bg-gradient"to-t" | "to-b" | "to-l" | "to-r" | "to-tr" | "to-br" | "to-bl" | "to-tl"Gradient direction (bounded named set)
bg-gradient-type"linear" | "radial" | "conic"Gradient type
bg-tostringGradient end colour — a semantic token name
bg-viastringOptional middle gradient stop — a semantic token name
scrim"top" | "bottom" | "left" | "right" | "none"Scrim direction (heaviest edge); presence turns the scrim on, "none" opts out of the default cover scrim
scrim-blur"none" | "sm" | "md" | "lg"Frost scrim blur amount
scrim-strength"sm" | "md" | "lg"Gradient scrim strength
scrim-tone"dark" | "light"Whether the scrim darkens (for light text) or lightens (for dark text)
scrim-type"gradient" | "frost"Scrim treatment: gradient (default) or frost (backdrop blur)
elevation

The chrome/depth ladder (SPEC-107). The skin maps each rung to a chrome bundle by attribute, so there is no BEM class.

AttributeTypeRequiredDescription
elevation"sunken" | "flush" | "flat" | "raised" | "floating" | "overlay" | "none" | "sm" | "md" | "lg"Surface depth on the SPEC-107 ladder (sunken→overlay); none/sm/md/lg are deprecated aliases
frame

Surface chrome (SPEC-086): a named preset from the theme registry with inline `frame-*` overrides layered on top.

AttributeTypeRequiredDescription
framestringNamed frame preset presenting this block's media surface
frame-anchorstringCrop focal point when the guest is cut (object-position)
frame-aspectstringAspect ratio of the framed media, e.g. "16/9"
frame-displace"top" | "bottom" | "end" | "bottom-end" | "top-end"Edge/corner the framed guest moves toward
frame-displace-mode"peek" | "bleed"How displacement renders: `peek` (default) translates the guest visually inside its frame target; `bleed` uses negative margin on the media zone so following layout pulls up — extends past a section like a hero without leaving a gap above
frame-offset"none" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl"Displacement distance (non-linear named scale: sm…xl ride the block-spacing tokens, 2xl/3xl/4xl step up to section-spacing for bleed-mode displacements that clear a section edge)
frame-overflow"clip" | "bleed"How the frame handles a guest whose content is wider than it: `clip` (default) keeps it inside the rounded frame; `bleed` runs an overflowing guest out to the layout edge on a narrow viewport so it reads as cropped by the screen (a bleed host only — hero/feature)
frame-oversizestringHow far the guest exceeds its slot (scale factor)
frame-placestringGuest-box alignment in the slot (e.g. "left top")
frame-shadow"none" | "sm" | "md" | "lg"Silhouette drop-shadow strength for the framed media
inset

Internal padding override.

AttributeTypeRequiredDescription
inset"flush" | "tight" | "default" | "loose" | "breathe"Inner padding of this block
motion

Scroll-reveal entrance (SPEC-105). The author declares the character, the theme owns the choreography, a behaviour owns the timing.

AttributeTypeRequiredDescription
reveal"none" | "fade" | "slide" | "scale" | "blur"Scroll-reveal entrance character (none|fade|slide|scale|blur); the theme owns the choreography
staggerbooleanCascade this block's items in as it reveals (no-op on single-child runes)
prominence

Header emphasis (SPEC-107). Scales a rune's page-section header; the skin maps it to a type register by attribute, so there is no BEM class.

AttributeTypeRequiredDescription
prominence"quiet" | "normal" | "prominent" | "display"Section-header emphasis (only on page-section-header family runes)
spacing

Block-level rhythm override.

AttributeTypeRequiredDescription
spacing"flush" | "tight" | "default" | "loose" | "breathe"Vertical spacing above and below this block
substrate

Generated pattern fills (SPEC-087). Markers only — the engine sets the attributes and cell/opacity custom properties, CSS draws the pattern.

AttributeTypeRequiredDescription
substrate"dots" | "grid" | "lines" | "cross" | "checker" | "none"Generated surface pattern
substrate-fill"inherit" | "inset"Surface fill the pattern sits on (full colour stays with tint)
substrate-opacity"sm" | "md" | "lg"Pattern ink strength
substrate-size"sm" | "md" | "lg"Pattern cell size
substrate-target"self" | "media"Which surface the pattern fills (overrides the rune/theme default)
tint

Per-rune colour override (SPEC-053): a named tint from the theme registry, with inline per-token overrides layered on top.

AttributeTypeRequiredDescription
tintstringColor tint preset applied to this block
tint-mode"auto" | "dark" | "light"Whether the tint adapts to auto, dark, or light mode
width

The track a block rune occupies.

AttributeTypeRequiredDescription
width"compact" | "narrow" | "content" | "wide" | "full"Maximum width constraint for this block
Not availableWhy
dropcap, readingthis rune declares no prose body