Skip to content
Alea0.1

Typography

Prose

Styles long-form content you don't control element by element: articles, docs, Markdown, CMS HTML.

Ant Design: Typography

import { Prose } from '@alea/ui';

Examples

Article

Headings, lists, quotes, code, tables and images from any source.

Motion with a system

Fourteen patterns instead of a hundred keyframes. Each one is built from tokens and has a reduced-motion fallback.

What changes

  • Overlays pop from their trigger
  • Selection glides between items
  • Errors nudge once

Motion should explain what changed, never decorate.

.alea-popover[data-entering] { animation: alea-pop var(--alea-motion-duration-base); }
PatternDuration
Pop250 ms
Rise400 ms

Props

Prose props

Styles long-form content you don't control element by element: articles, docs, CMS HTML (Tailwind Typography, Chakra Prose).

PropTypeDefaultDescription
childrenrequiredReactNode-Rich content: headings, paragraphs, lists, links, quotes, code, images, tables (from Markdown or a CMS).
classNamestring-
size"sm" | "base"'base'sm (14 px) or base (16 px, default) text.

Accessibility

  • Keep headings in order inside the content; Prose styles them but can't fix a skipped level.

Do and don't

Do

  • Wrap CMS or Markdown output in Prose.

Don't

  • Don't put interface components inside Prose: it is for reading.
Tested with axe, keyboard and screen reader roles