Content
Minimal rich-text wrapper for CMS integration. Wraps arbitrary HTML content with optional theming, spacing, and edge-awareness. The wrapper exists primarily so rich-text field output has a stable hook - it does not style typography itself. Inside the wrapper, classless element selectors take over and style headings, paragraphs, lists, blockquotes, code, and so on with Semetrika's normal rules.
Usage
When to use
- Wrapping rich-text (WYSIWYG) editor output
- Any place you need a theme, spacing, or edge-aware value on a block of arbitrary HTML
- Inside a two- or three-column layout region where internal padding should collapse to fit an edge-to-edge cell
When not to use
- For a single paragraph or heading - use the classless element directly
- For non-rich-text content with known structure - use the specific component (card, callout, section) instead
- In projects where no CMS preprocessing is required - classless elements work without any wrapper
Do
- Put the wrapper as close to the CMS output as possible so the theming hooks apply consistently
- Use the
spacingoption to control top/bottom vertical rhythm relative to surrounding content
Don't
- Don't add extra classes on children to override typography - the wrapper intentionally defers to classless element styling
- Don't nest content wrappers
Examples
Default
Rich HTML rendered directly with no wrapper or utility classes - classless typography alone.
Space above medium
Wrapper with the .space-above-md utility for medium top margin.
Space below medium
Wrapper with the .space-below-md utility for medium bottom margin.
Space Y medium
Wrapper with the .space-y-md utility for medium top and bottom margin.
Space Y large
Wrapper with the .space-y-lg utility for large top and bottom margin.
Accessibility
- WCAG 2.2 AA
- No ARIA roles needed - it is a generic wrapper
- All semantics come from the child HTML; the wrapper must not interfere with heading order or reading order.
Related
- Typography - heading, body, list, blockquote, code element styling that the wrapper defers to
- container - layout scaffolding this wrapper often sits inside