Primary focus: hero.background.video contract.
The YAML below is the exact full frontmatter used by this page. Copy it to reproduce the same result.
---
layout: home
hero:
name: "Single Background"
text: "Video"
tagline: "Video background with explicit media-layer controls."
background:
type: video
video:
src: "https://interactive-examples.mdn.mozilla.net/media/cc0-videos/flower.mp4"
muted: true
autoplay: true
loop: true
fit: cover
position: center
actions:
- theme: brand
text: "Shader Case"
link: /en-US/hero/matrix/backgroundSingle/shader
features:
- title: "Media Contract"
---| Key | All Config |
|---|---|
hero.background.type + subtype payload | |
hero.background.opacity/brightness/contrast/saturation/filter | |
hero.background.cssVars/style |
This page focuses on one renderer per hero with formal theme-sync behavior.
Primary contract area: single-mode background (hero.background.type).
| Topic | Guidance |
|---|---|
| Primary fields | type, subtype payload (image|video|color|shader|particles) |
| Global controls | opacity, brightness, contrast, saturation, filter |