Socket
Book a DemoInstallSign in
Socket

@bpmn-io/cm-theme

Package Overview
Dependencies
Maintainers
9
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bpmn-io/cm-theme

Codemirror themes for bpmn-io

0.1.0-alpha.2
latest
npmnpm
Version published
Weekly downloads
25K
3.28%
Maintainers
9
Weekly downloads
 
Created
Source

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

Keywords

codemirror

FAQs

Package last updated on 28 Mar 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.