README.md

Warning This library is work in progress. Expect changes.

CodeMirror Themes

CodeMirror themes for embedding within bpmn.io.

Light theme

image

Dark theme

image

Installation

npm i @bpmn-io/cm-theme

Usage

import { darkTheme, lightTheme } from '@bpmn-io/cm-theme';
import { EditorView } from '@codemirror/view';


// ...

const extensions = [
    lightTheme
];

// ...

new EditorView({
    state: EditorState.create({
      doc: value,
      extensions: extensions
    }),
    parent: container
});

License

MIT

Конвейеры
0 успешных
0 с ошибкой