Skip to content

Add the theme to a Starlight site

This content is for v0.1. Switch to the latest version for up-to-date documentation.

Use this guide when the site uses Starlight already. For a new site, use the starter.

  1. Install the theme from its tag:

    Terminal window
    npm install github:colliery-io/starlight-aurora#v0.1.0
  2. In astro.config.mjs, add the plugin to Starlight:

    import starlight from '@astrojs/starlight';
    import starlightAurora from 'starlight-aurora';
    export default defineConfig({
    integrations: [
    starlight({
    title: 'My docs',
    plugins: [starlightAurora()],
    }),
    ],
    });
  3. Remove the colour, font and shadow variables (--sl-color-*, --sl-font) from the site’s own customCss. The theme sets them from Aurora’s tokens. The site’s CSS loads after the theme, so a value that stays wins.

  4. Build the site:

    Terminal window
    npx astro build
Package Version
@astrojs/starlight 0.42.0 or later
Node 22 or later