From 7f17710b11d9382a1ed6ae3d361cc04fc780dd8a Mon Sep 17 00:00:00 2001 From: Cosmin Popovici Date: Wed, 6 Mar 2024 18:11:32 +0200 Subject: [PATCH] chore: update readme.md --- README.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 3d958b6..f6522c2 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ Features: - [x] [Default color theme](#default-color) - [x] [Decorations](#decorations) - [x] [Transformers](#transformers) -- [x] Custom themes +- [x] [Custom themes](#custom-themes) - [ ] Custom languages Input: @@ -232,7 +232,7 @@ See the list of [supported languages](https://shiki.style/languages) in Shiki. ### `themes` -Type: `string[]`\ +Type: `Array | Array`\ Default: `['nord']` Use the `themes` option to specify the themes for Shiki to load. @@ -260,7 +260,9 @@ See the list of [available themes](https://shiki.style/themes) in Shiki. > [!NOTE] > If you don't specify a `theme=""` attribute, the first theme in the `themes` option will be used. -You may also load [custom themes](https://shiki.style/guide/load-theme): +#### Custom Themes + +You may also load [custom themes](https://shiki.style/guide/load-theme) by passing a TextMate theme object to the `themes` option: ```js // Define textmate theme