Skip to content

Commit

Permalink
docs(site): filename code groups
Browse files Browse the repository at this point in the history
  • Loading branch information
42willow committed Sep 7, 2024
1 parent a5380d2 commit b53e700
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions site/src/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,36 +22,41 @@
:::

2. Import the theme
`.vitepress/theme/index.ts`

```ts{2}
::: code-group

```ts {2} [.vitepress/theme/index.ts]
import DefaultTheme from "vitepress/theme";
import "@catppuccin/vitepress/theme/<flavor>/<accent>.css"
import "@catppuccin/vitepress/theme/<flavor>/<accent>.css";

export default DefaultTheme;
```

:::

See [extending the default theme](https://vitepress.dev/guide/extending-default-theme#extending-the-default-theme) for more information.

> [!NOTE]
> Latte is included in all flavors as the light mode variant.
3. Set syntax highlighting to Catppuccin
`.vitepress/config.mts`
::: code-group

```ts{6}
```ts{6} [.vitepress/config.mts]
export default defineConfig({
// ...
markdown: {
theme: {
light: 'catppuccin-latte',
dark: 'catppuccin-<flavor>',
dark: 'catppuccin-mocha',
},
},
// ...
});
```

:::

&nbsp;

<p align="center">
Expand Down

0 comments on commit b53e700

Please sign in to comment.