npm.io
0.2.2 • Published 4 months ago

@bpmn-io/cm-theme

Licence
MIT
Version
0.2.2
Deps
2
Size
29 kB
Vulns
0
Weekly
0

@bpmn-io/cm-theme

The CM theme for the CodeMirror code editor.

Try it out.

Usage

import { EditorState } from '@codemirror/state';
import { EditorView } from '@codemirror/view';

import { feelLight } from '@bpmn-io/cm-theme';

// use as a codemirror extension
const view = new EditorView({
  state: EditorState.create({
    extensions: [
      ...,
      feelLight
    ]
  })
});

License

MIT

Keywords