Skip to content

Configuration

astro.config.mjs
import astlide from "@astlide/core";
export default defineConfig({
integrations: [
astlide({
toolbar: ["prev", "counter", "next"],
slideDecorators: [],
plugins: [],
shikiTheme: "github-dark",
font: undefined,
csp: true,
indexable: false,
injectIndexRoute: undefined,
drawings: { persist: false },
}),
],
});
Option Type Default Description
toolbar ToolbarItem[] ["prev", "counter", "next"] Ordered toolbar actions — see Presenting.
slideDecorators string[] [] Components rendered on every slide (module specifiers).
plugins AstlidePlugin[] [] Themes, layouts, transitions, Shiki langs / themes, decorators — see Plugin API.
shikiTheme string "github-dark" Shiki theme for code fences.
font false | string | { href?, preconnect? } Inter + JetBrains Mono from Google Fonts Web font stylesheet to inject, or false for none.
favicon string | false auto Favicon for deck pages and the index. Default: favicon.svg / .ico / .png from public/ if present, else an empty icon (no request to /favicon.ico at the domain root). A root-relative path gets Astro’s base. false: no icon link.
csp boolean | string true Inject a default Content-Security-Policy meta tag, disable it, or provide your own policy. In astro dev, worker-src 'self' blob: is added (unless set) for Vite’s client; the build keeps the policy as is.
indexable boolean false When false, pages carry noindex, nofollow.
injectIndexRoute boolean auto Inject the deck index at /. Auto-skipped when you have your own src/pages/index.*.
drawings.persist boolean false Keep pen drawings in localStorage across reloads — see Presenting.

Astro’s own base option is honoured as well.

Field Type Default Description
title string folder name Shown on the deck index and in the browser tab.
author string — Shown on the deck index.
date string — ISO date shown on the deck index.
theme string "default" Built-in or plugin theme name.
Import Contents
@astlide/core the integration (default export), astlideDeckLoader, slideSchema, deckConfigSchema, THEMES, defineAstlidePlugin, context helpers
@astlide/core/plugin defineAstlidePlugin and plugin types
@astlide/core/context getDeckContext, getClientDeckContext
@astlide/core/utils/code-highlight astlideCodeHighlight Shiki transformer
@astlide/core/utils/mermaid astlideMermaid Shiki transformer

Full API: TypeDoc reference.