Socket
Socket
Sign inDemoInstall

@bpmn-io/cm-theme

Package Overview
Dependencies
8
Maintainers
9
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @bpmn-io/cm-theme

Codemirror themes for bpmn-io


Version published
Weekly downloads
10K
decreased by-4.4%
Maintainers
9
Install size
2.29 MB
Created
Weekly downloads
 

Readme

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

FAQs

Last updated on 28 Mar 2023

Did you know?

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc