Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@uiw/codemirror-theme-duotone

Package Overview
Dependencies
Maintainers
2
Versions
98
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@uiw/codemirror-theme-duotone - npm Package Compare versions

Comparing version 4.21.25 to 4.22.0

4

package.json
{
"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';

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc