Skip to content

Commit 2895720

Browse files
committed
chore: add playground theme example
1 parent 802f944 commit 2895720

File tree

3 files changed

+30
-1
lines changed

3 files changed

+30
-1
lines changed

playground/app.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<script setup lang="ts">
22
import { javascript } from '@codemirror/lang-javascript'
33
import { lineNumbersRelative } from '@uiw/codemirror-extensions-line-numbers-relative'
4+
import { okaidia } from '@uiw/codemirror-theme-okaidia';
45
56
import type { ViewUpdate } from '@codemirror/view'
67
import type { CodeMirrorRef, Statistics } from '../src/runtime/types/nuxt-codemirror'
@@ -45,7 +46,7 @@ onMounted(() => {
4546
v-model="code"
4647
:extensions="extensions"
4748
style="width: 500px; height: 400px;"
48-
:theme="theme"
49+
:theme="okaidia"
4950
placeholder="Enter your code here..."
5051
:auto-focus="true"
5152
:editable="true"

playground/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"@codemirror/lang-javascript": "^6.2.2",
1212
"@nuxt/kit": "^3.12.4",
1313
"@uiw/codemirror-extensions-line-numbers-relative": "^4.23.0",
14+
"@uiw/codemirror-theme-okaidia": "^4.23.0",
1415
"nuxt": "^3.12.4"
1516
}
1617
}

playground/pnpm-lock.yaml

Lines changed: 27 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)