pydantic/talks/deckx
Claude Code and agent skill by pydantic/talks
- community
Checking that the SKILL.md file is still in the repository.
Create a deck with deckx. Use when the user mentions "deckx", "deck" or "slides", asks to build a slide deck from MDX, asks to convert a brand palette into a deck stylesheet, or asks how to convert a deckx HTML deck into a PDF. Covers project layout, deckx.toml config, deck.mdx authoring, custom React components, the styles.css token contract, and the Chrome headless PDF command.
Install
npx vskill@latest install pydantic/talks/deckxSKILL.md
The same SKILL.md was published earlier as pydantic/talks/deckx.
deckx
deckx builds a single, self-contained HTML slide deck from one MDX file plus a CSS theme and an optional folder of React components. The HTML is print-ready and converts to PDF via Chrome headless.
Installation
The npm package is @samuelcolvin/deckx; the installed CLI binary is deckx. npm i / pnpm add work the same way. Inside deck.mdx you always import from "deckx" (a Vite alias, not the npm name).
Project layout
html and pdf accept an optional output-path positional - e.g. bunx deckx pdf my-deck.pdf or bunx deckx html out/slides.html. Use --dir <dir> to point at a build directory other than the current one. To convert an existing HTML file to PDF without rebuilding, use bunx deckx html-to-pdf <input.html> <output.pdf>.
deckx.toml
All fields are optional - a deck with only deck.mdx works.
If tabs is omitted, the tab prop on <Slide> is ignored and slides render with a plain title topbar.
deck.mdx
Standard MDX. Import Slide from "deckx", plus any custom components from ./components/.
Do NOT wrap slides in `<div className="deck">` - deckx adds it for you.
<Slide> props
All props are optional. A bare <Slide> renders a regular content slide using the deck theme.
layout - structural layout (default 'content')
Picks how the slide arranges its body. Adds a .<value>-slide class to the .slide element so you can target each variant from styles.css.
'content'(default) - regular slide. Headings, paragraphs, bullets, code, and tables flow top-down inside.slide-body. Use for the bulk of your deck.'title'- cover / section slide. Bottom-aligns the hero; h1 is 4rem with tight letter-spacing; h2 renders in--accent. Pair with a leading### Section Labelfor a mono uppercase eyebrow.'statement'- centered one-liner. The body is centered both vertically and horizontally; h1 is 3.4rem; paragraphs cap at 80% width. Use for transitions between sections or "one bold idea" beats.
theme - color variant (defaults to the deck theme)
Per-slide palette override.
- Omit (or pass
'dark') - the slide inherits the deck-levelthemefromdeckx.toml. 'light'- forces a single slide onto the light palette (--bg-light,--color-text-light,--color-heading-light) regardless of the deck theme. Useful when one slide needs to break out - e.g. a screenshot of a light-themed UI on an otherwise dark deck. Adds.light-slideto the slide.
There is no inverse override: on a light deck, theme="dark" has no effect. If you need a single dark slide on a light deck, target it from CSS with a custom id or class.
Other props
tab- string matching anidfrom thetabsarray indeckx.toml. Replaces the plain topbar title with the tab bar, with this slide's tab highlighted. Clicking any tab in any slide jumps to the first slide whosetabmatches. Iftabsis not configured, the prop is silently ignored.title- plain text rendered in the topbar whentabis not set. Also drivesdocument.title, so the browser tab updates as the active slide changes. Ignored whentabis set.space-'tight'reduces bullet/paragraph spacing (use when a slide is close to overflowing);'wide'increases padding and line-height (use for slides with very little text where you want generous breathing room).fontSize-'large'bumps body text from 1.15rem to 1.35rem, and h1/h2 proportionally. Useful for slides that need to read from the back of a room.id- sets the HTMLidon the underlying<section>. Useful for targeting one slide fromstyles.css(.slide#hero { ... }) without adding a custom class.
MDX gotchas
- Use
-(hyphen-minus), never—(em dash). - Keep blank lines around block elements inside a slide, but not between the last block and the closing
</Slide>- MDX misparses a trailing blank. ### Section Labelat the top of a slide renders as a diamond + uppercase mono label.- Slides must fit 279.4mm × 157.2mm (16:9). If overflowing, try
space="tight"first, then drop content.
Images
Place images in your project (e.g. assets/) and import as ES modules:
Vite inlines them into the final HTML. The markdown  syntax does not get inlined - always use <img src={imported} />.
Code blocks
Fenced code blocks are syntax-highlighted at build time by Shiki. Tag the fence with a language so tokens get coloured:
export function greet(name: string): string { return hello, ${name}; }
All Shiki bundled languages work without any per-deck configuration. Highlighting happens during the build, so the output HTML carries only inline-styled <span>s - no grammar files, no runtime highlighter.
Both a light and a dark theme are emitted into every code block. deckx switches between them automatically based on the slide's effective theme: dark deck themes (dark, markdown-dark) use the dark code theme, and <Slide theme="light"> always shows the light code theme even inside a dark deck. Pick the two themes in deckx.toml:
Browse the available themes at <https://shiki.style/themes>.
Custom components
Any .tsx file in components/ (or wherever deckx.toml components points) can be imported into deck.mdx with a relative path:
React 19 is available. Components see the same CSS variables your styles.css defines, so to stay on-brand, read from variables (color: var(--accent)) rather than hard-coding colors.
Authoring styles.css
The base stylesheet handles all layout, typography, slide dimensions, the topbar, transitions, and the PDF @page setup. styles.css only needs to override CSS variables on :root to set brand tokens.
Variable contract
Backgrounds:
--bg-deck(default#0d0d0d) - background outside the slide, presenter mode only.--bg-slide(default#1a1a1a) - default slide background.--bg-light(default#ffffff) - slide bg forlight/markdown-lightdecks and<Slide theme="light">.--surface(default#2a2a2a) - inline code background, table headers.
Text:
--color-text(default white @ 85%) - body text on dark slides.--color-heading(default#ffffff) - h1, h2, h4, strong on dark slides.--color-muted(default#8f888e) - heading prefixes, slide counter, subdued UI.--color-text-light(default#2a2230) - body text on light slides.--color-heading-light(default#1a1018) - headings on light slides.
Accents:
--accent(default#4a9eff) - primary accent: bullets, h3, links, blockquote bar.--accent-secondary(default#ff6b6b) - em, link hover.--accent-tertiary(default#b388ff) - hr gradient stop.--accent-aqua(default#4ad7c5) - inline code text, active tab, topbar tabs.
Fonts:
--font-body(default system sans stack) - body and headings, unless--font-headingoverrides.--font-heading(default inherits body) - headings.--font-mono(default system mono) - inline code, code blocks, tabs, counter, h3.--font-terminal(default inherits body) - body inside.slide-body.
CSS class hooks
For finer control beyond the variable contract, target these classes from styles.css. Most decks won't need them - prefer overriding variables first.
Slide structure:
.deck-presenter- outermost wrapper. Owns the viewport background and the fit-to-window scaling transform..deck- inner slide stream (direct child of.deck-presenter)..slide- a single slide (<section>). Sized 16:9, holds topbar + content + optional footer..slide-topbar- 48px window-chrome bar at the top of every slide..slide-content- padded body wrapper below the topbar (this is what--slide-paddingapplies to)..slide-body- inner MDX content container, descendant of.slide-content..slide-footer- bottom-right footer text, rendered whenfooteris set indeckx.toml.
Slide modifiers (added to .slide based on props):
.title-slide-layout="title", bottom-aligned hero..statement-slide-layout="statement", centered hero..light-slide-theme="light", forces the light palette..space-tight/.space-wide- vertical spacing density..font-large- bumps body text size.
Topbar - left (traffic lights + title/tabs):
.topbar-dots- the traffic-light anchor (clicking jumps to slide 1). Only visible undermarkdown-*themes..topbar-dotplus.topbar-dot--red/.topbar-dot--yellow/.topbar-dot--green- individual dots..topbar-title- plain title text, shown when<Slide title="...">is set without atab.
Topbar - tabs (rendered when <Slide tab="..."> is set and tabs are configured in deckx.toml):
.topbar-tabs- the tab bar container..topbar-tab-group- per-tab wrapper containing the link plus its leading separator..topbar-tab-sep- the→glyph between tabs..topbar-tab- the tab link..topbar-tab--active- applied to the currently-selected tab.
Topbar - right (prev/next + counter):
.topbar-nav- container holding the prev/next buttons and slide counter..topbar-nav-btnplus.topbar-nav-prev/.topbar-nav-next- the nav buttons (auto-hidden in print)..topbar-nav-counter- the01/12slide counter.
Deck-level theme classes (applied to both <html> and .deck-presenter based on theme in deckx.toml):
.theme-light/.theme-dark/.theme-markdown-light/.theme-markdown-dark
MDX content inside .slide-body renders as plain HTML (h1-h4, p, ul, ol, pre, code, table, blockquote, a, img, hr) - target those tags directly with .slide <tag> selectors rather than expecting deckx to add wrapper classes.
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryChecking2026-06-pydata-london/.agents/skills/deckx/SKILL.md
Popularity
- Repository stars
- 81
- Repository forks
- 7
- 7-day trend score
- 22
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/pydantic/talks/deckx)