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.
Procedure
Section titled “Procedure”-
Install the theme from its tag:
Terminal window npm install github:colliery-io/starlight-aurora#v0.1.0 -
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()],}),],}); -
Remove the colour, font and shadow variables (
--sl-color-*,--sl-font) from the site’s owncustomCss. The theme sets them from Aurora’s tokens. The site’s CSS loads after the theme, so a value that stays wins. -
Build the site:
Terminal window npx astro build
Requirements
Section titled “Requirements”| Package | Version |
|---|---|
@astrojs/starlight |
0.42.0 or later |
| Node | 22 or later |