Skip to Content
You are viewing the v12 docs of React Flow. You can find the latest version here.

Dark Mode

React Flow comes with a built-in light & dark mode. You can set the colorMode prop that allows you to switch between 'dark', 'light' and 'system'.

import { createRoot } from 'react-dom/client'; import App from './App'; const container = document.querySelector('#app'); const root = createRoot(container); root.render(<App />);
Last updated on