A deck’s settings come from three layers, each over the one before: the engine’s defaults, the
deck’s headmatter (the YAML block at the top of deck.mdx), and deck.config.ts. Every
setting is optional. The nested groups live, remote, drawings, seoMeta and glossary merge
one level deep, so setting live.turnstile keeps live.api.
deck.config.ts
importtype { DeckConfigInput } from"@kadal/deck";
export const config:DeckConfigInput = {
colorScheme: "auto",
transition: "slide",
slideNumber: "c/t",
live: { api: "/api", room: null },
};
Talk facts and the look (title, author, theme, themes, addons, fonts) belong in the
headmatter: the Vite plugin reads theme and addon packages from there. deck.config.ts is for
engine settings and anything that needs code.
npx kadal-deck info deckpnpm exec kadal-deck info deckyarn kadal-deck info deckbunx kadal-deck info deck prints every setting with its type and default, info slide every slide
key, and @kadal/deck/schema/frontmatter.json is the same list as a JSON Schema for your editor
(the VS Code extension uses it for completions).
the deck’s title: the browser tab, the table of contents, link previews, publish
author
string
""
who gives the talk; the PDF’s author, and wherever the theme shows it
info
string
""
a line about the deck (Markdown); the page’s description
lang
string
""
the page’s language: <html lang> and og:locale
favicon
string
""
the tab icon: a file in public/ (/logo.svg) or a URL; also the offline app’s icon
seoMeta
record
{}
link-preview and search tags: ogImage (auto photographs slide 1 into og-image.png at build; or a path or URL), ogUrl, ogTitle, ogDescription, twitterCard, twitterSite, canonical, themeColor; any other key becomes a <meta> tag of its own
defaults
frontmatter
{}
frontmatter every slide gets unless it sets the key itself, e.g. { layout: center }; a theme’s defaults sit beneath
download
boolean | string
false
a Download button beside the theme menu: true offers the PDF kadal-deck build prints (else /export); a path or URL links that file. See Export
the starting theme: a built-in (minimal, rla, stack, or none for no styles), a package (seriph finds @kadal/theme-seriph), or a folder (./theme). See Themes
themes
string[]
["minimal", "rla", "stack"]
the themes the theme menu offers, resolved like theme
themeConfig
record
{}
the theme’s settings; each key becomes --theme-<key> on the deck root
addons
string[]
[]
addon packages: qr finds @kadal/addon-qr, then kadal-addon-qr
fonts
string[] | object
[]
Google Fonts families as written ("Inter:wght@400;600"), or { sans, heading, serif, mono, weights, italic, provider, local, fallbacks }. See Fonts
layers
{ presenter, overview }
{ presenter: true, overview: false }
where the global and slide layers draw besides the deck, print and export
the arrow controls; speaker shows them only in the presenter view
controlsLayout
"bottom-right" | "edges"
"bottom-right"
where they sit
controlsTutorial
boolean
true
hint at the first vertical stack
controlsBackArrows
"faded" | "hidden" | "visible"
"faded"
progress
boolean
true
the progress bar
slideNumber
boolean | "h.v" | "h/v" | "c" | "c/t"
false
the slide number and its format; in deck.config.ts, a function of { h, v, click, index, total, id }
showSlideNumber
"all" | "print" | "speaker"
"all"
where the number appears: all the deck, every printed page and the presenter view; print only printed pages; speaker only the presenter view
keyboard
boolean | record
true
keyboard navigation; a map rebinds or unbinds keys: { KeyQ: overview, KeyD: null }. reveal.js’s keyCodes and method names read too ({ 13: toggleOverview }), and a function in deck.config.ts
keyboardCondition
"focused" | null
null
focused: the deck takes keys only while it has focus (the default for an embedded deck); a function of the key in deck.config.ts
contextMenu
boolean | "dev" | "build"
true
the right-click menu on slides; dev/build: only there
touch
boolean
true
swipe navigation
mouseWheel
boolean
false
wheel navigation
overview
boolean
true
the overview (O)
jumpToSlide
boolean
true
: or g to jump
search
boolean
true
/ to search
zoom
boolean
true
Alt-click zooms into a point
help
boolean
true
? for the key sheet
pause
boolean
true
B to black out
loop
boolean
false
wrap from the last slide to the first
rtl
boolean
false
right-to-left
navigationMode
"default" | "linear" | "grid"
"default"
how arrows move between stacks: linear walks every slide, grid keeps columns aligned
shuffle
boolean
false
a new order for the columns and each stack on every load; the presenter view gets the same order, and print keeps yours
fragments
boolean
true
steps within slides (clicks); false draws every slide at its last step, and a press goes to the next slide
fragmentInURL
boolean
true
the step is part of the URL
hash
boolean
true
the slide is part of the URL hash
respondToHashChanges
boolean
true
a change to the hash (a link, the address bar) moves the deck
hashOneBasedIndex
boolean
false
count slides from 1 in the hash
history
boolean
false
push a history entry per slide (otherwise the hash is replaced)
previewLinks
boolean
false
open links in an in-deck preview
embedded
boolean
false
the deck lives in part of a page (also ?embedded): it fits its own element, takes keys only while focused and leaves the page’s hash and title alone. See Embed a deck in a page
postMessage
boolean
true
a page that frames the deck can drive it with reveal.js’s { method, args } messages
postMessageEvents
boolean
false
send every deck event to the framing page as { namespace: "reveal", eventName, state }
preloadIframes
boolean | null
null
true loads every frame within viewDistance; false only when its slide shows; null leaves it to each frame’s data-preload
focusBodyOnPageVisibilityChange
boolean
true
when the tab comes back, take focus from an embedded frame or a control so the keys reach the deck
The Vite plugin takes the rest: deck({ entry, shiki, twoslash, codeRunners, remarkPlugins, rehypePlugins, preprocess, katex, mermaid, withoutNotes }). Your remark plugins run after GFM and
maths, your rehype plugins after highlighting, and preprocess(text, file) rewrites each file
before it is cut into slides. The browser compiler (compileDeck in @kadal/deck/runtime) takes
the same options.
narration rehearses the talk by reading the notes aloud and turning the pages:
{ enabled, engine, voice, rate, gap, silent, model, dtype }. enabled is "auto" (on when some
slide has notes) or false; engine is auto, baked, kokoro, browser or silent; voice is a
Kokoro voice (default af_heart); rate runs from 0.5 to 3; gap is the milliseconds between steps;
silent says how long a slide without notes stays (estimate, skip or milliseconds); model is
the Hugging Face model and dtype its precision. narration: false turns it off. Per slide, say:
replaces the notes and narration: false keeps that slide quiet. See Narration.
glossary takes a path ("terms.yaml"), false, or an object: repeat, headings, skip,
delay, sync. See Glossary term cards. The runtime reads delay and sync; the
rest steer the compiler, which sees only the headmatter, so set those there.
slug is the deck’s slug on the host, read from the Vite base; you don’t set it.
badge (the free plan’s “Made with Kadal Deck” mark), ads (the frame round the first and last
slides) and live.verify are set by the host that serves the deck, through
window.__KADAL_DECK__. A host can also switch the deck’s download button off or on there;
deck.kadal.cc shows it on paid plans only. A deck you host yourself has none of these.
YAML right after a slide’s ---, closed by another ---, or a yaml code block as the very first
thing in a slide. npx kadal-deck info slidepnpm exec kadal-deck info slideyarn kadal-deck info slidebunx kadal-deck info slide prints the same list.
Key
Meaning
layout
the slide’s layout; the first slide defaults to cover, the rest to default
class
CSS classes on the slide (a string or a list)
id, routeAlias
a stable name: #/results links to it, and <Link to="results"> finds it (routeAlias is the same thing)
title, level
the title and heading level the table of contents, search and the PDF’s bookmarks use (default: the first heading)
hide, disabled, visibility
leave the slide out (visibility: hidden); visibility: uncounted keeps it but leaves it out of the slide number, the total and the progress bar
hideInToc
leave it out of <Toc> and the PDF’s bookmarks
background
a colour, a gradient, an image, a tiled pattern, a video, a page, or a background component. See Backgrounds