Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
Spectre is a terminal-inspired theme for Astro, built using Astro and TypeScript.
Spectre is a terminal-inspired blog theme for the Astro static site generator, built with TypeScript, that ships with Pagefind search and giscus comments.
Spectre is an open-source, terminal-inspired theme for the Astro static site generator, written in TypeScript and available from the louisescher/spectre repository on GitHub. It takes Markdown or MDX files managed through Astro content collections as input and outputs a static website with a built-in sitemap, Pagefind search, and optional giscus comments, scoring 100/100 on Lighthouse performance.
You start by creating a new project with npm create astro@latest -- --template louisescher/spectre — or the pnpm or yarn equivalents — or open the template instantly in StackBlitz or CodeSandbox. After installation, you author content in Markdown or MDX files, configure the custom Spectre integration in astro.config.ts, and disable giscus comments by deleting lines 47–57 of that file if you don't need them.
Run npm create astro@latest -- --template louisescher/spectre in your terminal, or use the StackBlitz and CodeSandbox links in the README to try it in the browser. The pnpm and yarn commands are also provided.
Yes. Open astro.config.ts, locate the integrations array, and delete lines 47 through 57 — that removes the giscus options while keeping the rest of the theme intact.
Spectre supports both Markdown and MDX, managed through Astro content collections. This lets you write normal posts or embed React components in MDX files.
The README links to a preview page at spectre.lou.gg, and you can also launch the template in StackBlitz or CodeSandbox for an interactive demo.