0.1.0-alpha.2 • Published 1 year ago

@bpmn-io/cm-theme v0.1.0-alpha.2

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

Codemirror themes

Warning
These styles are new and still a work in progress. Expect quite a few changes.

Codemirror themes centralized in an effort to create consistency across the bpmn-io suite.

Light theme

image

Dark theme

image

Usage

Install

npm i @bpmn-io/cm-theme

Use

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
});