ID:WORK-066Status:done
Media Slots Dimension
Priority:mediumComplexity:simpleMilestone:v0.9.0Source:SPEC-025
e900a90f262d7b9ab3ef2a129a9ea333007Add a media slots mapping to rune configs and the identity transform. Runes declare mediaSlots that map image ref names to media treatment types (portrait, cover, thumbnail, hero, icon). The transform emits data-media on image elements, enabling themes to style all media uniformly — circular portraits, full-width covers, small thumbnails — with ~5 CSS rules.
RuneConfig in packages/transform/src/types.ts gains mediaSlots?: Record<string, 'portrait' | 'cover' | 'thumbnail' | 'hero' | 'icon'>data-media on image/media elements whose ref maps to a media slotrefrakt inspect output shows data-media attributes on media elementsmediaSlots to RuneConfig interfacemediaSlots, emit data-media with the mapped slot type