Skip to content

catppuccin/vitepress

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

68 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Logo
Catppuccin for VitePress

Previews

๐ŸŒป Latte
๐Ÿชด Frappรฉ
๐ŸŒบ Macchiato
๐ŸŒฟ Mocha

Usage

  1. Install the theme package to your project with npm install @catppuccin/vitepress.

  2. Add the theme to your VitePress theme configuration file:

    .vitepress/theme/index.ts

    import DefaultTheme from "vitepress/theme";
    import "@catppuccin/vitepress/theme/<flavor>/<accent>.css";
    
    export default DefaultTheme;

    See "Extending the Default Theme | VitePress" for more information.

Note

Latte is included in all flavors as the light mode variant.

  1. Configure syntax highlighting in your VitePress configuration file:

    .vitepress/config.mts

    export default defineConfig({
      // ...
      markdown: {
        theme: {
          light: "catppuccin-latte",
          dark: "catppuccin-<flavor>",
        },
      },
      // ...
    });

๐Ÿ’ Thanks to

ย 

Copyright ยฉ 2021-present Catppuccin Org