Installation
Install the package
Section titled “Install the package”npm install starlight-theme-mdbookAdd the plugin
Section titled “Add the plugin”Add starlightThemeMdbook() to your plugins array in astro.config.mjs:
import { defineConfig } from 'astro/config';import starlight from '@astrojs/starlight';import starlightThemeMdbook from 'starlight-theme-mdbook';
export default defineConfig({ integrations: [ starlight({ title: 'My Docs', plugins: [starlightThemeMdbook()], }), ],});That’s it. The plugin registers its own component overrides and CSS
automatically — there’s nothing else to wire up, and none of your existing
Starlight config (sidebar, social, editLink, content collections,
i18n, etc.) needs to change.
Starting from scratch
Section titled “Starting from scratch”If you don’t have a Starlight project yet:
npm create astro@latest -- --template starlightcd my-docsnpm install starlight-theme-mdbookThen add the plugin to astro.config.mjs as shown above.