Slides pack

The in-repo reference primitive pack for Isomer. Slide-deck primitives, every surface (svg exists only when the runtime is given frames), one fixed-size document.

Page What it covers
Authoring a primitive Colocated renderers and why the split exists
Pack contract definePrimitive, themeBound, the surface declaration
Document Geometry, validateBody, wrap
Theme The one-field bound and how palette selection works
Styling Distillate collection, the pack's own adapter, and the React surface
Worked example The five example compositions, their artifacts, and how to get a PNG
import { createIsomerRuntime } from '@elastic/isomer-runtime';
import {
  slideDeckFrame,
  slidesPack,
} from '@elastic/isomer-primitives-slides';

const runtime = createIsomerRuntime({
  packs: [slidesPack],
  frames: { slide: slideDeckFrame },
});

// Render a composition on any surface:
runtime.surfaces.html.render(composition);
runtime.surfaces.text.render(composition);
		
Type Description
slideFrame The 16:9 root node — topbar, body, footer. Required by the document.
slideSplit Two-column layout with optional width ratio.
slideStack Vertical stack with controlled spacing.
slideBulletList Labeled bullet list with dot, check, or × markers.
slideCardGroup Grid of labeled cards with optional badges and tones.
slideCode Labeled code block.
slideFlow Horizontal sequence of labeled boxes connected by lines.
slideTerritoryGroup Ownership annotations paired with accent colors.
slideTitle Eyebrow, headline, and optional lede with inline links.