Skip to content

Slides

Slide

A 16:9 slide on the 1600×900 canvas whose type and spacing scale with it, for content slides with their own stage.

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

Playground

Change the props. The controls come from the documented props.

Playground

One rule per slide.

tsx
<Slide label="One rule per slide." eyebrow="Playground">
  <p className="text-slide-title font-bold text-primary">One rule per slide.</p>
</Slide>

Usage

When to use

Use Slide for a content slide with its own stage: a mockup, a diagram, a table. It gives the 16:9 frame, the eyebrow, the headline line and the footer.

When not to use

  • For a title, a statement, one number, columns, a question or a process: use the matching template, it already follows the rules.

How it works

Every size and space inside is in container units of the slide (1cqw is 16px at full size), so a slide in a docs preview and on a projector is the same picture. Use the text-slide-* type roles inside: hero 120, title 64, two-line title 52, deepening 44, editorial 38, lead 30, body 24, label 20, caption 18. The eyebrow sits at the top, the headline line at 104px, the footer with source and page number at the bottom.

Content guidelines

One slide, one statement: the headline is one sentence, preferably on one line; shorten before shrinking. At most about 20 new words of running text. Everything the audience must read is at least 24px.

Do and don’t

Do
  • Use the slide type roles (text-slide-*) inside; they scale with the slide.
  • Give the proof object at least 60 % of the stage.
Don’t
  • Don't use page type roles (text-body, text-heading) inside a slide; they don't scale.
  • Don't put more than about 20 new words of running text on a slide.

Anatomy

The parts of the component and what each one does, as in the playground above.
  1. container16:9 frame, a size container; card radius and hairline in the docs.
  2. labelEyebrow at the top, 20px uppercase at full size.
  3. bodyContent area from the headline line (104px) down.
  4. captionSource left and page number right, 18px.

Examples

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

Own stage

Case · LVM Versicherung

Three worlds, one logic.

Cross-line contract management on one token architecture.

LVM contract management on a laptop: changing the insurance cover of a fleet
Design system & token architecture · 2021–20255 / 19

Props

Checked against the component's TypeScript type on every build.
Slide props
NameTypeDefaultDescription
label (required)string–Names the slide for screen readers, usually its headline.
surface"page" | "inverse" | "accent""page"Surface mode of the whole slide.
eyebrowReactNode–Chapter · topic, as an uppercase label at the top.
pagenumber–Page number, bottom right.
totalnumber–Total pages; shown as “3 / 12”.
sourceReactNode–Source line, bottom left, at the caption floor.
align"top" | "center""top"top for content slides, center for statements and numbers.
children (required)ReactNode–The headline and the stage.

Tokens used

Derived from the utility classes in the component's source. Copy a class with one click.
Tokens used by Slide
TokenTierValueUtility
card.radiuscomponent16px
slide.bordercomponentrgba(10,10,11,0.08)
slide.gapcomponent1cqw
slide.labelTrackingcomponent0.14em
slide.paddingBottomcomponent3cqw
slide.paddingXcomponent6cqw
slide.stackcomponent2cqw
spacing.0semantic0px
surface.pagesemantic#FAFAF7
text.primarysemantic#0A0A0B
text.secondarysemantic#555555
type.slide-caption.sizesemantic1.125cqw
type.slide-label.sizesemantic1.25cqw
type.slide-title.sizesemantic4cqw
weight.boldsemantic700
weight.semiboldsemantic600

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

  • Each slide is a region with aria-roledescription “slide” and a label.
  • Everything the audience must read is at least 24px at full size; only labels (20px) and the source line and page number (18px) go below.

Contrast

Slide contrast pairings
PairingRatio (x:1)MinimumStatus
text.primary on surface.page18.924.5Pass
text.secondary on surface.page7.134.5Pass