From 7f4abc9c38c883a7a3192133ad98f0593a84298c Mon Sep 17 00:00:00 2001
From: jaywcjlove <398188662@qq.com>
Date: Fri, 7 Jun 2024 11:19:45 +0800
Subject: [PATCH] doc(vscode): update document. #145
---
themes/all/README.md | 4 ++++
themes/vscode/README.md | 16 +++++++++++++++-
2 files changed, 19 insertions(+), 1 deletion(-)
diff --git a/themes/all/README.md b/themes/all/README.md
index 869b3d469..c3584c4a7 100644
--- a/themes/all/README.md
+++ b/themes/all/README.md
@@ -328,6 +328,10 @@ export * from '@uiw/codemirror-theme-xcode';
+
+
+
+
### white
diff --git a/themes/vscode/README.md b/themes/vscode/README.md
index 267cf49f0..434057394 100644
--- a/themes/vscode/README.md
+++ b/themes/vscode/README.md
@@ -11,16 +11,25 @@
+
+
+
+
## Install
```bash
npm install @uiw/codemirror-theme-vscode --save
```
+```jsx
+import { vscodeDark, vscodeDarkInit } from '@uiw/codemirror-theme-vscode';
+import { vscodeLight, vscodeLightInit } from '@uiw/codemirror-theme-vscode';
+```
+
```js
import { EditorState } from '@codemirror/state';
import { javascript } from '@codemirror/lang-javascript';
-import { vscodeDark } from '@uiw/codemirror-theme-vscode';
+import { vscodeDark, vscodeLight } from '@uiw/codemirror-theme-vscode';
const state = EditorState.create({
doc: 'my source code',
@@ -48,9 +57,14 @@ import { vscodeDark, vscodeDarkInit } from '@uiw/codemirror-theme-vscode';
```tsx
import { CreateThemeOptions } from '@uiw/codemirror-themes';
+// Dark
export declare const defaultSettingsVscodeDark: CreateThemeOptions['settings'];
export declare function vscodeDarkInit(options?: Partial): import('@codemirror/state').Extension;
export declare const vscodeDark: import('@codemirror/state').Extension;
+// Light
+export declare const defaultSettingsVscodeLight: CreateThemeOptions['settings'];
+export declare function vscodeLightInit(options?: Partial): import('@codemirror/state').Extension;
+export declare const vscodeLight: import('@codemirror/state').Extension;
```
## Usage