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
<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
- 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 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
- container16:9 frame, a size container; card radius and hairline in the docs.
- labelEyebrow at the top, 20px uppercase at full size.
- bodyContent area from the headline line (104px) down.
- captionSource left and page number right, 18px.
Examples
Own stage
Props
| Name | Type | Default | Description |
|---|---|---|---|
| label (required) | string | – | Names the slide for screen readers, usually its headline. |
| surface | "page" | "inverse" | "accent" | "page" | Surface mode of the whole slide. |
| eyebrow | ReactNode | – | Chapter · topic, as an uppercase label at the top. |
| page | number | – | Page number, bottom right. |
| total | number | – | Total pages; shown as “3 / 12”. |
| source | ReactNode | – | 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
| Token | Tier | Value | Utility |
|---|---|---|---|
| card.radius | component | 16px | |
| slide.border | component | rgba(10,10,11,0.08) | |
| slide.gap | component | 1cqw | |
| slide.labelTracking | component | 0.14em | |
| slide.paddingBottom | component | 3cqw | |
| slide.paddingX | component | 6cqw | |
| slide.stack | component | 2cqw | |
| spacing.0 | semantic | 0px | |
| surface.page | semantic | #FAFAF7 | |
| text.primary | semantic | #0A0A0B | |
| text.secondary | semantic | #555555 | |
| type.slide-caption.size | semantic | 1.125cqw | |
| type.slide-label.size | semantic | 1.25cqw | |
| type.slide-title.size | semantic | 4cqw | |
| weight.bold | semantic | 700 | |
| weight.semibold | semantic | 600 |
Accessibility
| Check | How | Status |
|---|---|---|
| axe-core rules | Automated on every npm run check, at desktop and mobile width | Runs on every build |
| Keyboard | Automated Playwright test (scripts/keyboard.mjs) | Not applicable |
| Screen reader | Manual | Not 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
| Pairing | Ratio (x:1) | Minimum | Status |
|---|---|---|---|
| text.primary on surface.page | 18.92 | 4.5 | Pass |
| text.secondary on surface.page | 7.13 | 4.5 | Pass |
