@uiw/codemirror-theme-duotone
Advanced tools
Comparing version 4.21.25 to 4.22.0
{ | ||
"name": "@uiw/codemirror-theme-duotone", | ||
"version": "4.21.25", | ||
"version": "4.22.0", | ||
"description": "Theme duotone for CodeMirror.", | ||
@@ -25,3 +25,3 @@ "homepage": "https://uiwjs.github.io/react-codemirror/#/theme/data/duotone/light", | ||
"dependencies": { | ||
"@uiw/codemirror-themes": "4.21.25" | ||
"@uiw/codemirror-themes": "4.22.0" | ||
}, | ||
@@ -28,0 +28,0 @@ "keywords": [ |
@@ -24,2 +24,15 @@ <!--rehype:ignore:start--> | ||
```js | ||
import { EditorState } from '@codemirror/state'; | ||
import { javascript } from '@codemirror/lang-javascript'; | ||
import { duotoneLight, duotoneDark } from '@uiw/codemirror-theme-duotone'; | ||
const state = EditorState.create({ | ||
doc: 'my source code', | ||
extensions: [duotoneDark, javascript({ jsx: true })], | ||
}); | ||
``` | ||
Using in React: | ||
```jsx | ||
@@ -26,0 +39,0 @@ import { duotoneLight, duotoneLightInit, duotoneDark, duotoneDarkInit } from '@uiw/codemirror-theme-duotone'; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
15634
118
+ Added@uiw/codemirror-themes@4.22.0(transitive)
- Removed@uiw/codemirror-themes@4.21.25(transitive)