Skip to content

Content

Prose

Running text at reading width inside any container, with the spacing between its paragraphs.

  • Experimental
  • No keyboard interaction
  • Screen reader not tested yet

Playground

Change the props and the surface. The controls come from the documented props; the surfaces are the real modes.

An AI builds screens from the system, and a gate checks them. A person looks at every result and decides what stays.

tsx
<Prose>
  <p>
    An AI builds screens from the system, and a gate checks them. A person looks at every result and decides what stays.
  </p>
</Prose>

Usage

When to use

Use Prose for every block of running text inside a wide Section: an introduction, an explanation, a closing paragraph.

When not to use

  • For a single label or a card text: they have their own width.
  • For a list of points: use List inside Prose.

How it works

Body type at the reading width (layout.narrow), with 16px between paragraphs. lead sets it in the secondary colour for the first paragraph under a heading.

Content guidelines

Short paragraphs, one thought each. If the text needs a second heading, it belongs in a second Section.

Do and don’t

Do
  • Wrap every block of running text in a wide Section in Prose.
Don’t
  • Don't use it for labels, cards or table cells; they have their own width.

Anatomy

The parts of the component and what each one does, as in the playground above.
  1. bodyBody type, at most layout.narrow wide, 16px between paragraphs.

Examples

Type-checked, and the same code goes into the AI manifest. Import: import { Prose } from "@/ds";

Lead and text

An AI builds screens from the system, and a gate checks them. A person looks at every result and decides what stays.

Every finding is fixed at its cause. Nothing is suppressed or excluded to get to green.

Gaps the AI reports become the next additions to the system.

Props

Checked against the component's TypeScript type on every build.
Prose props
NameTypeDefaultDescription
children (required)ReactNode–Paragraphs, lists and links.
leadbooleanfalseQuieter, for the first paragraph under a heading.

Tokens used

Derived from the utility classes in the component's source. Copy a class with one click.
Tokens used by Prose
TokenTierValueUtility
layout.narrowsemantic720px
spacing.4semantic16px
text.primarysemantic#0A0A0B
text.secondarysemantic#555555
type.body.sizesemantic16px
type.lead.sizesemantic18px

Accessibility

What is checked automatically on every build, and what a person has tested. Nothing is marked as tested unless it was.
Testing status by check
CheckHowStatus
axe-core rulesAutomated on every npm run check, at desktop and mobile widthRuns on every build
KeyboardAutomated Playwright test (scripts/keyboard.mjs)Not applicable
Screen readerManualNot tested yet

Semantics and focus

  • Keeps lines at about 70 characters, easier to read and to zoom.