--bleed CSS variable that controls how far content extends past the prose column. It is 0px on mobile and 32px on desktop (≥ 1080px). The .bleed CSS class applies negative left and right margins equal to --bleed, making the element wider than its parent.Mobile (< 1080px) Desktop (≥ 1080px) ┌──────────────────────┐ ┌──────────────────────────────┐ │ prose column │ │ prose column │ │ ┌──────────────────┐ │ ┌──┼──────────────────────────────┼──┐ │ │ bleed element │ │ │ │ bleed element extends │ │ │ │ (same width) │ │ │ │ past both edges ◄──────────►│ │ │ └──────────────────┘ │ └──┼──────────────────────────────┼──┘ └──────────────────────┘ └──────────────────────────────┘
bleed meta option (see Code Blocks).<Bleed> component automatically and extend into both margins.div with className="bleed" to make it extend into the margins. This is useful for videos, iframes, embeds, and large visuals that benefit from extra width.123456789101112<div className='bleed'> <iframe width="100%" height="400" src="https://www.youtube.com/embed/dQw4w9WgXcQ?controls=0&modestbranding=1&rel=0&showinfo=0&iv_load_policy=3" title="Video title" frameBorder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowFullScreen style={{ borderRadius: '8px' }} /> </div>
bleed with Frame for a captioned video that extends into the margins:123<Frame caption="Product demo" className='bleed'> <video src="/videos/demo.mp4" controls width="100%" /> </Frame>
123456<div className='bleed'> <Columns cols={2}> <img src="/images/before.png" alt="Before" /> <img src="/images/after.png" alt="After" /> </Columns> </div>
no-bleed — keeping content inside containersno-bleed class automatically. This sets --bleed: 0px for all descendants so code blocks, lists, and images stay inside the container frame.no-bleed yourself on any wrapper:123<div className='no-bleed'> Code blocks and images inside here will not bleed. </div>
--bleed in custom CSSstyle.css:12345678/* style.css */ :root { --bleed: 0px; @variant lg { --bleed: 48px; /* wider bleed on desktop */ } }
--bleed: 0px at all breakpoints to disable bleed entirely.