Configuration
The Starlight Catppuccin theme can be configured inside the astro.config.mjs configuration file of your project:
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", }), ],});Configuration options
Section titled “Configuration options”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.
flavor
Section titled “flavor”Type: string
Default: mocha
Configure the flavor for the dark theme.
Available values are:
"mocha""macchiato""frappe"
accent
Section titled “accent”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.
flavor
Section titled “flavor”Type: string
Default: latte
Configure the flavor for the light theme.
Available values are:
"latte"
accent
Section titled “accent”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"