@secrets/codemirror-theme
v1.0.0
Published
codemirror theme
Downloads
57
Readme
@secrets/codemirror-theme
Install
npm i @secrets/codemirror-theme -D
Use
import theme from '@secrets/codemirror-theme';
import { EditorState } from "@codemirror/state";
const startState = EditorState.create({
doc: "YOUR_DOC_HERE",
extensions: [
theme('dark')// or light
]
});