Theming¶
FlowGraph supports comprehensive theming through CSS variables and custom styles.
Built-in Themes¶
Dark Theme (Default)¶
Light Theme¶
CSS Variables¶
Colors¶
:root {
--fg-bg: #1a1a1a;
--fg-text: #ffffff;
--fg-border: #333333;
--fg-node-bg: #2a2a2a;
--fg-socket-bg: #444444;
--fg-selection: #007acc;
}
Sizing¶
:root {
--fg-node-border-radius: 8px;
--fg-socket-size: 12px;
--fg-edge-width: 2px;
--fg-grid-size: 20px;
}
Animations¶
Custom Themes¶
Create custom themes by overriding CSS variables:
flow-graph[theme="custom"] {
--fg-bg: #f0f0f0;
--fg-text: #333333;
--fg-node-bg: #ffffff;
--fg-socket-bg: #e0e0e0;
--fg-selection: #ff6b6b;
}