The frame of a page that is mostly words: a title band across the page, then one reading column.
<main>
<header class="cap-prose-page-head">
<h1 class="cap-prose-page-title">About us</h1>
<p class="cap-prose-page-lead">Example Co has edited research writing since 2001.</p>
</header>
<div class="cap-prose-page-body" data-context="prose">
<p>Example Co was founded by Alex Rivera to give researchers a reader who knows their field.</p>
<h2>Our editors</h2>
<p>Each editor has published in a peer-reviewed journal. <a href="#team">Meet the team</a>.</p>
<ul><li>Field notes</li><li>Annual report</li></ul>
</div>
</main>
<header class="cap-prose-page-head">
<h1 class="cap-prose-page-title">About us</h1>
<p class="cap-prose-page-lead">One line under the title.</p> <!-- optional -->
</header>
<div class="cap-prose-page-body" data-context="prose">
<p>...</p>
</div>
Examples
Long title, no lead
<main>
<header class="cap-prose-page-head">
<h1 class="cap-prose-page-title">Security, confidentiality and how your manuscript is kept</h1>
</header>
<div class="cap-prose-page-body" data-context="prose">
<p>Files are kept for 30 days and then deleted.</p>
</div>
</main>
API reference
ProsePageHead
Prop
Type
Required
Does
title
ReactNode
Yes
lead
ReactNode
headExtra
ReactNode
Something under the title in the band (a date, a button).
titleId
string
The id of the h1, for a link to the top.
ProsePage
Prop
Type
Required
Does
children
ReactNode
html
string
The body as HTML the server already sanitized (a page stored as HTML), in place of children, through the capsomer Trusted Types policy.
title
ReactNode
Yes
lead
ReactNode
headExtra
ReactNode
Something under the title in the band (a date, a button).
titleId
string
The id of the h1, for a link to the top.
CSS variables
Variable
Default
--cap-prose-page-body-pad
var(--space-8)
--cap-prose-page-head-bg
var(--sunken)
--cap-prose-page-head-pad
var(--space-9)
--cap-prose-page-head-text
var(--text)
--cap-prose-page-lead-text
var(--muted)
--cap-prose-page-measure
48rem
--cap-prose-page-title-case
none
--cap-prose-page-title-face
var(--display)
--cap-prose-page-title-leading
var(--leading-tight)
--cap-prose-page-title-max
40rem
--cap-prose-page-title-size
var(--title-display)
--cap-prose-page-title-tracking
var(--tracking-snug)
--cap-prose-page-title-weight
var(--weight-title)
--cap-prose-page-title-wrap
balance
Parts and data attributes
Class
Is
.cap-prose-page-body
its own class
.cap-prose-page-head
the root
.cap-prose-page-lead
its own class
.cap-prose-page-title
its own class
Accessibility
Nothing to operate; links in the body are in reading order.
The title is the page's one h1.
The band's text pair is the site's to check when it sets its own band colors; the default (--text on --sunken) is in the contrast report.