Usage
Install the theme package to your project with your preferred package manager:
bashnpm install @catppuccin/vitepress
bashyarn add @catppuccin/vitepress
bashpnpm add @catppuccin/vitepress
bashbun add @catppuccin/vitepress
Add the theme to your VitePress theme configuration file:
tsimport DefaultTheme from "vitepress/theme"; import "@catppuccin/vitepress/theme/<flavor>/<accent>.css"; export default DefaultTheme;
NOTE
Latte is included in all flavors as the light mode variant.
See "Extending the Default Theme | VitePress" for more information.
Configure syntax highlighting in your VitePress configuration file:
tsexport default defineConfig({ // ... markdown: { theme: { light: 'catppuccin-latte', dark: 'catppuccin-<flavor>', }, }, // ... });
Copyright © 2021-present Catppuccin Org