Turn on hyper
This content is for v0.1. Switch to the latest version for up-to-date documentation.
Hyper is Aurora’s neon theme on a dark base. A site opts in. This site has hyper on.
Procedure
Section titled “Procedure”-
In
astro.config.mjs, give the plugin the optionhyper: true:plugins: [starlightAurora({ hyper: true })], -
Build the site. The theme select shows Light, Dark, Hyper and Auto.
What changes
Section titled “What changes”- The plugin loads Aurora’s
hyper.css. - The plugin replaces two Starlight components:
ThemeProviderandThemeSelect. If the site replaces one of them too, the build stops with an error. Remove one of the two. - Code blocks use the dark code theme under hyper.
- With
hyper: false, the site is the same as a site with nohyperoption.