MCPcopy Index your code
hub / github.com/bpmn-io/bpmn-js-color-picker

github.com/bpmn-io/bpmn-js-color-picker @v0.7.2

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.7.2 ↗ · + Follow
4 symbols 8 edges 6 files 0 documented · 0% 1 cross-repo links updated 2d agov0.7.2 · 2025-07-15★ 33
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

bpmn-js Color Picker

CI

This bpmn-js extension adds a simple color picker to an elements context pad. Colors are serialized to BPMN 2.0 according to the BPMN in Color proposal.

bpmn-js color picker in action

Features

  • Add color picker to the context pad
  • Color single and multiple elements
  • Serialize colors to BPMN 2.0
  • Render colors (built-in bpmn-js@8.7+)

Use Extension

Fetch bpmn-js-color-picker as a dependency:

npm install bpmn-js-color-picker --save

Extend your BPMN modeler with colors:

import BpmnModeler from 'bpmn-js/lib/Modeler';

import BpmnColorPickerModule from 'bpmn-js-color-picker';

const modeler = new BpmnModeler({
  additionalModules: [
    BpmnColorPickerModule
  ]
});

Add diagram-js, bpmn-font and color picker stylesheets:

<link rel="stylesheet" href="https://unpkg.com/bpmn-js/dist/assets/diagram-js.css" />
<link rel="stylesheet" href="https://unpkg.com/bpmn-js/dist/assets/bpmn-font/css/bpmn-embedded.css" />
<link rel="stylesheet" href="https://unpkg.com/bpmn-js-color-picker/colors/color-picker.css" />

Build Demo

To run the live demo in the ./example directory (as shown in the screenshot above) execute:

npm start

Useful Resources

Core symbols most depended-on inside this repo

createAction
called by 1
colors/ColorPopupProvider.js
getStartPosition
called by 1
colors/ColorContextPadProvider.js
ColorPopupProvider
called by 0
colors/ColorPopupProvider.js
ColorContextPadProvider
called by 0
colors/ColorContextPadProvider.js

Shape

Function 4

Languages

TypeScript100%

Modules by API surface

colors/ColorPopupProvider.js2 symbols
colors/ColorContextPadProvider.js2 symbols

Used by 1 indexed graphs manifest dependencies, hub-wide

For agents

$ claude mcp add bpmn-js-color-picker \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page