ID:WORK-064Status:done
Section Anatomy Dimension
Priority:highComplexity:moderateMilestone:v0.9.0Source:SPEC-025
No incremental history — criteria tracking started on Apr 21.
Add a section anatomy mapping to rune configs and the identity transform. Runes declare a sections map that associates each structural ref with a standard section role (header, title, description, body, footer, media). The transform emits data-section attributes alongside existing BEM classes, enabling themes to style structural anatomy generically across all runes.
RuneConfig in packages/transform/src/types.ts gains sections?: Record<string, 'header' | 'title' | 'description' | 'body' | 'footer' | 'media'>data-section on elements whose ref maps to a section roledata-name attributes are preserved (additive only)sections per SPEC-025 Table 1refrakt inspect output shows data-section attributes on structural elementssections to RuneConfig interfaceapplyBemClasses or structure injection code, when a ref matches a key in the sections map, emit data-section with the mapped role value