Skip to content

Configuration

The Starlight Catppuccin theme can be configured inside the astro.config.mjs configuration file of your project:

astro.config.mjs
import starlight from "@astrojs/starlight";
import { defineConfig } from "astro/config";
import starlightCatppuccin from "@catppuccin/starlight";
export default defineConfig({
integrations: [
starlight({
plugins: [
starlightCatppuccin({
// Configuration options go here.
}),
],
title: "My Docs",
}),
],
});

The Starlight Catppuccin theme accepts the following configuration options:

Type: { flavor: string; accent: string }
Default: { flavor: "mocha", accent: "mauve" }

Configure the theme for the dark mode.

Type: string
Default: mocha

Configure the flavor for the dark theme.
Available values are:

  • "mocha"
  • "macchiato"
  • "frappe"

Type: string
Default: mauve

Configure the accent for the dark theme.
Available values are:

  • "rosewater"
  • "flamingo"
  • "pink"
  • "mauve"
  • "red"
  • "maroon"
  • "peach"
  • "yellow"
  • "green"
  • "teal"
  • "sky"
  • "sapphire"
  • "blue"
  • "lavender"

Type: { flavor: string; accent: string }
Default: { flavor: "latte", accent: "mauve" }

Configure the theme for the light mode.

Type: string
Default: latte

Configure the flavor for the light theme.
Available values are:

  • "latte"

Type: string
Default: mauve

Configure the accent for the dark theme.
Available values are:

  • "rosewater"
  • "flamingo"
  • "pink"
  • "mauve"
  • "red"
  • "maroon"
  • "peach"
  • "yellow"
  • "green"
  • "teal"
  • "sky"
  • "sapphire"
  • "blue"
  • "lavender"