ColorMode
The ColorMode type defines the available color modes for the ReactFlow component. React Flow
detects the color mode of your site automatically via a data-theme attribute or a dark or light
class name higher up in the DOM tree. You can use the forceColorMode prop to force a specific
color mode instead.
export type ColorMode = 'light' | 'dark';<ReactFlow nodes={nodes} edges={edges} forceColorMode="dark" />