Flume exports a set of colors to make it easy to change the color of your ports. An upcoming release will provide the ability to define your own colors, but until then, the built-in colors have been hand-picked to be visually distinct and coordinate perfectly with each other.


import { Colors } from 'flume'


Port colors are chosen when adding port types to your flume config. Let's say you want to create a blue port representing an employee, you could do so like this:

type: "employee",
name: "employee",
label: "Employee",
controls: [
/* ... */