-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgraphConfig.ts
More file actions
44 lines (42 loc) · 1.47 KB
/
graphConfig.ts
File metadata and controls
44 lines (42 loc) · 1.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
import type { GraphConfig } from "./types";
export const DEFAULT_GRAPH_CONFIG: GraphConfig = {
direction: "LR",
showControllers: false,
nodesep: 50,
ranksep: 30,
edgeType: "bezier",
initialZoom: null,
panToTop: true,
paletteColors: {
// Graph node/edge colors
"--color-pipe": "#ff6b6b",
"--color-pipe-bg": "rgba(224,108,117,0.18)",
"--color-pipe-text": "#ffffff",
"--color-stuff": "#4ECDC4",
"--color-stuff-bg": "rgba(78,205,196,0.12)",
"--color-stuff-border": "#9ddcfd",
"--color-stuff-text": "#98FB98",
"--color-stuff-text-dim": "#9ddcfd",
"--color-edge": "#FFFACD",
"--color-batch-item": "#bd93f9",
"--color-batch-aggregate": "#50fa7b",
"--color-parallel-combine": "#d6a4ff",
"--color-success": "#50FA7B",
"--color-success-bg": "rgba(80,250,123,0.15)",
"--color-error": "#FF5555",
"--color-error-bg": "rgba(255,85,85,0.15)",
"--color-accent": "#8BE9FD",
"--color-warning": "#FFB86C",
// Base theme vars used by graph-core.css
"--color-bg": "#1e1e1e",
"--color-bg-dots": "#334155",
"--color-text-muted": "#94a3b8",
"--color-controller-text": "#94a3b8",
"--font-sans": '"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif',
"--font-mono": '"JetBrains Mono", "Monaco", "Menlo", monospace',
"--shadow-lg": "0 8px 24px rgba(0, 0, 0, 0.5)",
},
};
export function getPaletteColors(): Record<string, string> {
return DEFAULT_GRAPH_CONFIG.paletteColors || {};
}