# Templates

:::warning{title="Inside the repository, until the alpha"}

These templates declare `workspace:*` and `catalog:` dependencies: a `degit` copy does not install
outside the Récit repository yet. Clone the repository and run the example from there until the
public alpha (P5, audit DO-2).

:::

Every example of the repository is a ready-to-use template. Copy its folder with `degit`, then run
`recit dev` on its deck file. Each template page shows the source and an interactive preview.

<FeatureGrid cols={3}>
  <FeatureCard icon="🌱" title="Starter" badge="Beginner" description="Three slides of plain Markdown, no configuration." href="/demos/starter" />
  <FeatureCard icon="🎤" title="Tech talk" badge="Beginner" description="Cards, quote, Mermaid diagram and speaker notes." href="/demos/tech-talk" />
  <FeatureCard icon="✨" title="Showcase" badge="Intermediate" description="Every layout, a full recit.config.ts and a custom component." href="/demos/showcase" />
  <FeatureCard icon="💼" title="Pitch" badge="Intermediate" description="4:3 format, light theme, brand colors, fade transitions." href="/demos/pitch" />
  <FeatureCard icon="🎓" title="Course" badge="Intermediate" description="Math, table, tabbed code and a quiz with steps." href="/demos/course" />
  <FeatureCard icon="🧩" title="MDX" badge="Advanced" description="Stateful React components and JavaScript expressions." href="/demos/mdx" />
  <FeatureCard icon="📚" title="Site" badge="Advanced" description="Stories published inside a Récit site." href="/demos/site" />
</FeatureGrid>

## Starter

The minimum: plain Markdown, no configuration.

```bash
npx degit vguerand/recit/examples/deck-starter my-deck
cd my-deck
npx recit dev slides.md
```

## Tech talk

A conference talk with cards, a quote, a Mermaid diagram and speaker notes.

```bash
npx degit vguerand/recit/examples/deck-tech-talk my-talk
cd my-talk
npx recit dev slides.md
```

## Showcase

Every layout and directive, a full `recit.config.ts`, custom CSS and the `Metric` component.

```bash
npx degit vguerand/recit/examples/deck-showcase my-deck
cd my-deck
npx recit dev slides.md
```

## Pitch

A 4:3 product pitch with a light theme and brand colors.

```bash
npx degit vguerand/recit/examples/deck-pitch my-pitch
cd my-pitch
npx recit dev slides.md
```

## Course

A course handout with math, a table, tabbed code, a diagram and a progressive quiz.

```bash
npx degit vguerand/recit/examples/deck-course my-course
cd my-course
npx recit dev slides.md
```

## MDX

An `.mdx` deck with built-in components, stateful React components and expressions.

```bash
npx degit vguerand/recit/examples/deck-mdx my-mdx-deck
cd my-mdx-deck
npx recit dev slides.mdx
```

## Site

Stories published inside a Récit site, one prerendered page per story.

```bash
npx degit vguerand/recit/examples/site-embed my-docs
cd my-docs
npm install
npx recit-site dev
```

## Without a template

`recit init` writes a starter deck in the current folder:

```bash
npx recit init slides.md --config
npx recit dev slides.md
```

When the deck is ready, `npx recit export slides.md` writes a PDF and
`npx recit export slides.md --html` a single self-contained HTML file.
