@bpmn-io/cm-theme

0.1.0-alpha.2 • Public • Published

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

Package Sidebar

Install

npm i @bpmn-io/cm-theme

Weekly Downloads

10,931

Version

0.1.0-alpha.2

License

MIT

Unpacked Size

29.4 kB

Total Files

5

Last publish

Collaborators

  • vsgoulart
  • skaiir-camunda
  • marstamm
  • bpmn-io-admin
  • nikku
  • barmac
  • philippfromme
  • maxtru