Skip to content

Commit 085c87c

Browse files
committed
docs: add docs regarding themes support for Expressive Code in tutorialkit integration
1 parent dcb4728 commit 085c87c

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

docs/tutorialkit.dev/src/content/docs/reference/configuration.mdx

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -529,3 +529,18 @@ See [Overriding Components](/guides/overriding-components/) for details of all t
529529

530530
Controls whether the tutorial routes are automatically added to your project. When set to `true`, it additionally adds a redirect from `/` to the first tutorial.
531531
Use `"tutorial-only"` to only add the tutorial routes without the redirect.
532+
533+
### `themes`
534+
535+
**type**: `[ThemeObjectOrShikiThemeName, ThemeObjectOrShikiThemeName]`<br/>
536+
**default**: `['light-plus', 'dark-plus']`
537+
538+
Controls which themes are applied to [Expressive Code](https://expressive-code.com/).
539+
540+
```ts
541+
tutorialkit({
542+
themes: ['catppuccin-latte', 'catppuccin-mocha'],
543+
});
544+
```
545+
Make sure to provide a light and a dark theme if you want support for both light and dark modes.
546+
See the [themes](https://expressive-code.com/guides/themes/) section of Expressive Code to learn more.

0 commit comments

Comments
 (0)