Getting started
Start hereInstall the theme and add it to Starlight.
The theme is a Starlight plugin. It works with any Starlight site, new or existing, and needs no setup beyond the plugin.
Install
Section titled “Install”-
Install the theme from GitHub, at a release’s tag:
Terminal window $ bun add github:hyphatech/starlight-theme-hypha#v0.6.2 -
Add it to
pluginsinastro.config.mjs:astro.config.mjs import { defineConfig } from "astro/config";import starlight from "@astrojs/starlight";import starlightThemeHypha from "starlight-theme-hypha";export default defineConfig({integrations: [starlight({title: "docs",logo: { src: "./src/assets/mark.svg" },plugins: [starlightThemeHypha({ brand: "acme" })],}),],}); -
Start Astro and open localhost:4321:
Terminal window $ bun run devastro ready in 412 ms
The site follows the visitor’s system, light or dark, with a control in the header to choose. Its palette is Hypha’s own.
Your mark
Section titled “Your mark”A mark drawn for a dark ground disappears on a light one. Give Starlight one for each:
starlight({ logo: { dark: "./src/assets/mark.svg", light: "./src/assets/mark-dark.svg" },});Hypha’s own mark comes with the theme, as
starlight-theme-hypha/assets/hypha.webp and hypha-day.webp.
- Pick a palette, or keep the site to one scheme.
- Fill the header: your brand, repository, tabs and links.
- Open with a landing page.
- Customise a token or a component.

