project-graph-mcp 2.2.6 → 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ARCHITECTURE.md +81 -0
- package/CHANGELOG.md +57 -0
- package/README.md +9 -4
- package/package.json +6 -13
- package/src/compact/expand.js +1 -1
- package/src/core/graph-builder.js +2 -2
- package/src/core/parser.js +2 -2
- package/src/network/server.js +1 -2
- package/vendor/symbiote-node/CHANGELOG.md +31 -0
- package/vendor/symbiote-node/LICENSE +21 -0
- package/vendor/symbiote-node/README.md +206 -0
- package/vendor/symbiote-node/canvas/AutoLayout.js +725 -0
- package/vendor/symbiote-node/canvas/Breadcrumb/Breadcrumb.css.js +73 -0
- package/vendor/symbiote-node/canvas/Breadcrumb/Breadcrumb.js +93 -0
- package/vendor/symbiote-node/canvas/Breadcrumb/Breadcrumb.tpl.js +9 -0
- package/vendor/symbiote-node/canvas/CanvasConnectionRenderer.js +962 -0
- package/vendor/symbiote-node/canvas/ConnectionRenderer.js +1468 -0
- package/vendor/symbiote-node/canvas/FlowSimulator.js +323 -0
- package/vendor/symbiote-node/canvas/ForceLayout.js +189 -0
- package/vendor/symbiote-node/canvas/ForceWorker.js +1325 -0
- package/vendor/symbiote-node/canvas/GraphTabs/GraphTabs.css.js +97 -0
- package/vendor/symbiote-node/canvas/GraphTabs/GraphTabs.js +176 -0
- package/vendor/symbiote-node/canvas/GraphTabs/GraphTabs.tpl.js +12 -0
- package/vendor/symbiote-node/canvas/LODManager.js +88 -0
- package/vendor/symbiote-node/canvas/Minimap/Minimap.css.js +71 -0
- package/vendor/symbiote-node/canvas/Minimap/Minimap.js +207 -0
- package/vendor/symbiote-node/canvas/Minimap/Minimap.tpl.js +9 -0
- package/vendor/symbiote-node/canvas/NodeCanvas/NodeCanvas.css.js +261 -0
- package/vendor/symbiote-node/canvas/NodeCanvas/NodeCanvas.js +1840 -0
- package/vendor/symbiote-node/canvas/NodeCanvas/NodeCanvas.tpl.js +22 -0
- package/vendor/symbiote-node/canvas/NodeSearch/NodeSearch.css.js +97 -0
- package/vendor/symbiote-node/canvas/NodeSearch/NodeSearch.js +132 -0
- package/vendor/symbiote-node/canvas/NodeSearch/NodeSearch.tpl.js +21 -0
- package/vendor/symbiote-node/canvas/NodeViewManager.js +584 -0
- package/vendor/symbiote-node/canvas/PinExpansion.js +131 -0
- package/vendor/symbiote-node/canvas/PseudoConnection.js +80 -0
- package/vendor/symbiote-node/canvas/SubgraphManager.js +201 -0
- package/vendor/symbiote-node/canvas/SubgraphRouter.js +443 -0
- package/vendor/symbiote-node/canvas/ViewportActions.js +446 -0
- package/vendor/symbiote-node/core/Connection.js +45 -0
- package/vendor/symbiote-node/core/Editor.js +451 -0
- package/vendor/symbiote-node/core/Frame.js +31 -0
- package/vendor/symbiote-node/core/GraphMermaid.js +348 -0
- package/vendor/symbiote-node/core/GraphText.js +210 -0
- package/vendor/symbiote-node/core/Node.js +143 -0
- package/vendor/symbiote-node/core/Portal.js +104 -0
- package/vendor/symbiote-node/core/Socket.js +185 -0
- package/vendor/symbiote-node/core/SubgraphNode.js +125 -0
- package/vendor/symbiote-node/index.js +103 -0
- package/vendor/symbiote-node/inspector/InspectorPanel/InspectorPanel.css.js +361 -0
- package/vendor/symbiote-node/inspector/InspectorPanel/InspectorPanel.js +332 -0
- package/vendor/symbiote-node/inspector/InspectorPanel/InspectorPanel.tpl.js +96 -0
- package/vendor/symbiote-node/inspector/TemplatePreview/TemplatePreview.css.js +104 -0
- package/vendor/symbiote-node/inspector/TemplatePreview/TemplatePreview.js +133 -0
- package/vendor/symbiote-node/inspector/TemplatePreview/TemplatePreview.tpl.js +33 -0
- package/vendor/symbiote-node/interactions/ConnectFlow.js +307 -0
- package/vendor/symbiote-node/interactions/Drag.js +102 -0
- package/vendor/symbiote-node/interactions/Selector.js +132 -0
- package/vendor/symbiote-node/interactions/SnapGrid.js +65 -0
- package/vendor/symbiote-node/interactions/Zoom.js +140 -0
- package/vendor/symbiote-node/layout/ActionZone/ActionZone.css.js +88 -0
- package/vendor/symbiote-node/layout/ActionZone/ActionZone.js +254 -0
- package/vendor/symbiote-node/layout/ActionZone/ActionZone.tpl.js +11 -0
- package/vendor/symbiote-node/layout/Layout/Layout.css.js +88 -0
- package/vendor/symbiote-node/layout/Layout/Layout.js +622 -0
- package/vendor/symbiote-node/layout/Layout/Layout.tpl.js +25 -0
- package/vendor/symbiote-node/layout/LayoutNode/LayoutNode.css.js +293 -0
- package/vendor/symbiote-node/layout/LayoutNode/LayoutNode.js +467 -0
- package/vendor/symbiote-node/layout/LayoutNode/LayoutNode.tpl.js +33 -0
- package/vendor/symbiote-node/layout/LayoutPreview/LayoutPreview.css.js +46 -0
- package/vendor/symbiote-node/layout/LayoutPreview/LayoutPreview.js +102 -0
- package/vendor/symbiote-node/layout/LayoutPreview/LayoutPreview.tpl.js +6 -0
- package/vendor/symbiote-node/layout/LayoutRouter/LayoutRouter.js +156 -0
- package/vendor/symbiote-node/layout/LayoutRouter/routerSync.js +250 -0
- package/vendor/symbiote-node/layout/LayoutSidebar/LayoutSidebar.css.js +379 -0
- package/vendor/symbiote-node/layout/LayoutSidebar/LayoutSidebar.js +263 -0
- package/vendor/symbiote-node/layout/LayoutSidebar/LayoutSidebar.tpl.js +20 -0
- package/vendor/symbiote-node/layout/LayoutSidebar/SidebarSection.js +183 -0
- package/vendor/symbiote-node/layout/LayoutTree.js +246 -0
- package/vendor/symbiote-node/layout/PanelMenu/PanelMenu.css.js +43 -0
- package/vendor/symbiote-node/layout/PanelMenu/PanelMenu.js +89 -0
- package/vendor/symbiote-node/layout/PanelMenu/PanelMenu.tpl.js +14 -0
- package/vendor/symbiote-node/layout/index.js +16 -0
- package/vendor/symbiote-node/menu/ContextMenu/ContextMenu.css.js +61 -0
- package/vendor/symbiote-node/menu/ContextMenu/ContextMenu.js +79 -0
- package/vendor/symbiote-node/menu/ContextMenu/ContextMenu.tpl.js +19 -0
- package/vendor/symbiote-node/node/CtrlItem/CtrlItem.css.js +41 -0
- package/vendor/symbiote-node/node/CtrlItem/CtrlItem.js +24 -0
- package/vendor/symbiote-node/node/CtrlItem/CtrlItem.tpl.js +16 -0
- package/vendor/symbiote-node/node/GraphFrame/GraphFrame.css.js +65 -0
- package/vendor/symbiote-node/node/GraphFrame/GraphFrame.js +29 -0
- package/vendor/symbiote-node/node/GraphFrame/GraphFrame.tpl.js +13 -0
- package/vendor/symbiote-node/node/GraphNode/GraphNode.css.js +683 -0
- package/vendor/symbiote-node/node/GraphNode/GraphNode.js +92 -0
- package/vendor/symbiote-node/node/GraphNode/GraphNode.tpl.js +17 -0
- package/vendor/symbiote-node/node/NodeSocket/NodeSocket.js +25 -0
- package/vendor/symbiote-node/node/NodeSocket/NodeSocket.tpl.js +7 -0
- package/vendor/symbiote-node/node/PortItem/PortItem.css.js +90 -0
- package/vendor/symbiote-node/node/PortItem/PortItem.js +87 -0
- package/vendor/symbiote-node/node/PortItem/PortItem.tpl.js +10 -0
- package/vendor/symbiote-node/package.json +59 -0
- package/vendor/symbiote-node/palette/PaletteBrowser/PaletteBrowser.css.js +143 -0
- package/vendor/symbiote-node/palette/PaletteBrowser/PaletteBrowser.js +131 -0
- package/vendor/symbiote-node/palette/PaletteBrowser/PaletteBrowser.tpl.js +16 -0
- package/vendor/symbiote-node/plugins/History.js +384 -0
- package/vendor/symbiote-node/plugins/Readonly.js +59 -0
- package/vendor/symbiote-node/shapes/CircleShape.js +80 -0
- package/vendor/symbiote-node/shapes/CommentShape.js +35 -0
- package/vendor/symbiote-node/shapes/DiamondShape.js +115 -0
- package/vendor/symbiote-node/shapes/NodeShape.js +80 -0
- package/vendor/symbiote-node/shapes/PillShape.js +91 -0
- package/vendor/symbiote-node/shapes/RectShape.js +72 -0
- package/vendor/symbiote-node/shapes/SVGShape.js +494 -0
- package/vendor/symbiote-node/shapes/index.js +53 -0
- package/vendor/symbiote-node/themes/Palette.js +32 -0
- package/vendor/symbiote-node/themes/Skin.js +113 -0
- package/vendor/symbiote-node/themes/Theme.js +84 -0
- package/vendor/symbiote-node/themes/carbon.js +137 -0
- package/vendor/symbiote-node/themes/dark.js +137 -0
- package/vendor/symbiote-node/themes/ebook.js +138 -0
- package/vendor/symbiote-node/themes/grey.js +137 -0
- package/vendor/symbiote-node/themes/light.js +137 -0
- package/vendor/symbiote-node/themes/neon.js +138 -0
- package/vendor/symbiote-node/themes/pcb.js +273 -0
- package/vendor/symbiote-node/themes/synthwave.js +137 -0
- package/vendor/symbiote-node/toolbar/QuickToolbar/QuickToolbar.css.js +86 -0
- package/vendor/symbiote-node/toolbar/QuickToolbar/QuickToolbar.js +128 -0
- package/vendor/symbiote-node/toolbar/QuickToolbar/QuickToolbar.tpl.js +29 -0
- package/web/app.js +6 -5
- package/web/components/canvas-graph.js +1666 -0
- package/web/components/event-feed/CodeWidget.js +32 -0
- package/web/components/event-feed/EventWidget.js +97 -0
- package/web/components/event-feed/ListWidget.js +57 -0
- package/web/components/event-feed/MiniGraphWidget.js +69 -0
- package/web/dashboard.js +1 -1
- package/web/index.html +4 -0
- package/web/panels/ActionBoard/ActionBoard.js +1 -1
- package/web/panels/SettingsPanel/SettingsPanel.tpl.js +1 -1
- package/web/panels/code-viewer.js +50 -15
- package/web/panels/dep-graph.js +2712 -7
- package/web/panels/file-tree.js +5 -2
- package/web/panels/live-monitor.js +75 -3
- package/web/style.css +33 -0
- package/docs/img/explorer-compact.jpg +0 -0
- package/docs/img/explorer-expanded.jpg +0 -0
- package/src/.contextignore +0 -22
- package/src/.project-graph-cache.json +0 -1
- package/src/compact/.project-graph-cache.json +0 -1
- package/web/.project-graph-cache.json +0 -1
- package/web/panels/SettingsPanel/.project-graph-cache.json +0 -1
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Light Clean — bright minimal theme
|
|
3
|
+
*
|
|
4
|
+
* Inverted lightness values: bg=95%, surface=100%, text=15%.
|
|
5
|
+
* Same atomic HSL structure as dark theme.
|
|
6
|
+
*
|
|
7
|
+
* @module symbiote-node/themes/light
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
/** @type {import('./Theme.js').ThemeDefinition} */
|
|
11
|
+
export const LIGHT_CLEAN = {
|
|
12
|
+
name: 'light-clean',
|
|
13
|
+
tokens: {
|
|
14
|
+
// === Atomic tokens ===
|
|
15
|
+
|
|
16
|
+
// Hues
|
|
17
|
+
'--sn-hue-base': '220',
|
|
18
|
+
'--sn-hue-accent': '217',
|
|
19
|
+
'--sn-hue-success': '142',
|
|
20
|
+
'--sn-hue-warning': '38',
|
|
21
|
+
'--sn-hue-danger': '0',
|
|
22
|
+
'--sn-hue-data': '262',
|
|
23
|
+
|
|
24
|
+
// Saturation levels
|
|
25
|
+
'--sn-sat': '14%',
|
|
26
|
+
'--sn-sat-vivid': '60%',
|
|
27
|
+
'--sn-sat-muted': '8%',
|
|
28
|
+
|
|
29
|
+
// Lightness levels (inverted for light theme)
|
|
30
|
+
'--sn-lit-bg': '95%',
|
|
31
|
+
'--sn-lit-surface': '100%',
|
|
32
|
+
'--sn-lit-border': '78%',
|
|
33
|
+
'--sn-lit-hover': '90%',
|
|
34
|
+
'--sn-lit-text': '15%',
|
|
35
|
+
'--sn-lit-text-dim': '45%',
|
|
36
|
+
'--sn-lit-accent': '50%',
|
|
37
|
+
|
|
38
|
+
// Alpha levels
|
|
39
|
+
'--sn-alpha-overlay': '0.95',
|
|
40
|
+
'--sn-alpha-subtle': '0.1',
|
|
41
|
+
'--sn-alpha-faint': '0.12',
|
|
42
|
+
|
|
43
|
+
// Semantic state colors (composed from atomics)
|
|
44
|
+
'--sn-danger-color': 'hsl(var(--sn-hue-danger), var(--sn-sat-vivid), var(--sn-lit-accent))',
|
|
45
|
+
'--sn-success-color': 'hsl(var(--sn-hue-success), var(--sn-sat-vivid), var(--sn-lit-accent))',
|
|
46
|
+
'--sn-warning-color': 'hsl(var(--sn-hue-warning), var(--sn-sat-vivid), var(--sn-lit-accent))',
|
|
47
|
+
|
|
48
|
+
// === Composed tokens ===
|
|
49
|
+
|
|
50
|
+
// Canvas
|
|
51
|
+
'--sn-bg': 'hsl(var(--sn-hue-base), var(--sn-sat), var(--sn-lit-bg))',
|
|
52
|
+
'--sn-grid-dot': 'hsla(0, 0%, 0%, var(--sn-alpha-faint))',
|
|
53
|
+
'--sn-grid-size': '20px',
|
|
54
|
+
|
|
55
|
+
// Node
|
|
56
|
+
'--sn-node-bg': 'hsl(0, 0%, var(--sn-lit-surface))',
|
|
57
|
+
'--sn-node-border': 'hsl(var(--sn-hue-base), var(--sn-sat-muted), var(--sn-lit-border))',
|
|
58
|
+
'--sn-node-radius': '10px',
|
|
59
|
+
'--sn-node-shadow': '0 2px 8px rgba(0, 0, 0, 0.08)',
|
|
60
|
+
'--sn-shadow-color': 'rgba(0, 0, 0, 0.12)',
|
|
61
|
+
'--sn-node-selected': 'hsl(var(--sn-hue-accent), var(--sn-sat-vivid), var(--sn-lit-accent))',
|
|
62
|
+
'--sn-node-hover': 'hsl(var(--sn-hue-base), var(--sn-sat-muted), var(--sn-lit-hover))',
|
|
63
|
+
'--sn-node-header-bg': 'hsl(var(--sn-hue-base), var(--sn-sat-muted), 96%)',
|
|
64
|
+
|
|
65
|
+
// Typography
|
|
66
|
+
'--sn-font': "'Inter', sans-serif",
|
|
67
|
+
'--sn-text': 'hsl(var(--sn-hue-base), 10%, var(--sn-lit-text))',
|
|
68
|
+
'--sn-text-dim': 'hsl(var(--sn-hue-base), 8%, var(--sn-lit-text-dim))',
|
|
69
|
+
|
|
70
|
+
// Sockets
|
|
71
|
+
'--sn-socket-size': '12px',
|
|
72
|
+
'--sn-socket-border-width': '2px',
|
|
73
|
+
|
|
74
|
+
// Connections
|
|
75
|
+
'--sn-conn-color': 'hsl(var(--sn-hue-accent), var(--sn-sat-vivid), var(--sn-lit-accent))',
|
|
76
|
+
'--sn-conn-width': '2',
|
|
77
|
+
'--sn-conn-selected': 'hsl(var(--sn-hue-danger), var(--sn-sat-vivid), var(--sn-lit-accent))',
|
|
78
|
+
|
|
79
|
+
// Category accent colors
|
|
80
|
+
'--sn-cat-server': 'hsl(var(--sn-hue-accent), var(--sn-sat-vivid), var(--sn-lit-accent))',
|
|
81
|
+
'--sn-cat-instance': 'hsl(var(--sn-hue-success), var(--sn-sat-vivid), 45%)',
|
|
82
|
+
'--sn-cat-control': 'hsl(var(--sn-hue-warning), var(--sn-sat-vivid), var(--sn-lit-accent))',
|
|
83
|
+
'--sn-cat-data': 'hsl(var(--sn-hue-data), var(--sn-sat-vivid), 55%)',
|
|
84
|
+
'--sn-cat-default': 'hsl(0, 0%, var(--sn-lit-text-dim))',
|
|
85
|
+
|
|
86
|
+
// Context menu
|
|
87
|
+
'--sn-ctx-bg': 'hsl(0, 0%, var(--sn-lit-surface))',
|
|
88
|
+
'--sn-ctx-border': 'hsl(var(--sn-hue-base), var(--sn-sat-muted), var(--sn-lit-hover))',
|
|
89
|
+
'--sn-ctx-color': 'hsl(var(--sn-hue-base), 10%, var(--sn-lit-text))',
|
|
90
|
+
'--sn-ctx-hover': 'hsla(var(--sn-hue-accent), var(--sn-sat-vivid), var(--sn-lit-accent), var(--sn-alpha-subtle))',
|
|
91
|
+
|
|
92
|
+
// Comments
|
|
93
|
+
'--sn-comment-bg': 'hsla(0, 0%, 0%, 0.03)',
|
|
94
|
+
'--sn-comment-border': 'hsla(0, 0%, 0%, 0.08)',
|
|
95
|
+
'--sn-comment-radius': '6px',
|
|
96
|
+
|
|
97
|
+
// Toolbar
|
|
98
|
+
'--sn-toolbar-bg': 'hsla(0, 0%, var(--sn-lit-surface), var(--sn-alpha-overlay))',
|
|
99
|
+
'--sn-toolbar-border': 'hsla(0, 0%, 0%, 0.1)',
|
|
100
|
+
'--sn-toolbar-color': 'hsl(var(--sn-hue-base), 8%, 35%)',
|
|
101
|
+
'--sn-toolbar-hover': 'hsla(var(--sn-hue-accent), var(--sn-sat-vivid), var(--sn-lit-accent), 0.12)',
|
|
102
|
+
'--sn-toolbar-active': 'hsl(var(--sn-hue-base), 10%, var(--sn-lit-text))',
|
|
103
|
+
'--sn-toolbar-danger': 'hsla(var(--sn-hue-danger), var(--sn-sat-vivid), var(--sn-lit-accent), 0.15)',
|
|
104
|
+
'--sn-toolbar-danger-color': 'hsl(var(--sn-hue-danger), var(--sn-sat-vivid), var(--sn-lit-accent))',
|
|
105
|
+
|
|
106
|
+
// Shape fill/stroke
|
|
107
|
+
'--sn-shape-fill': 'var(--sn-node-bg)',
|
|
108
|
+
'--sn-shape-stroke': 'var(--sn-node-border)',
|
|
109
|
+
'--sn-shape-stroke-width': '1.0',
|
|
110
|
+
},
|
|
111
|
+
};
|
|
112
|
+
|
|
113
|
+
/** @type {import('./Palette.js').PaletteDefinition} */
|
|
114
|
+
export const LIGHT_PALETTE = {
|
|
115
|
+
name: 'light',
|
|
116
|
+
colors: {
|
|
117
|
+
'--sn-hue-base': '220',
|
|
118
|
+
'--sn-hue-accent': '217',
|
|
119
|
+
'--sn-hue-success': '142',
|
|
120
|
+
'--sn-hue-warning': '38',
|
|
121
|
+
'--sn-hue-danger': '0',
|
|
122
|
+
'--sn-hue-data': '262',
|
|
123
|
+
'--sn-sat': '14%',
|
|
124
|
+
'--sn-sat-vivid': '60%',
|
|
125
|
+
'--sn-sat-muted': '8%',
|
|
126
|
+
'--sn-lit-bg': '95%',
|
|
127
|
+
'--sn-lit-surface': '100%',
|
|
128
|
+
'--sn-lit-border': '78%',
|
|
129
|
+
'--sn-lit-hover': '90%',
|
|
130
|
+
'--sn-lit-text': '15%',
|
|
131
|
+
'--sn-lit-text-dim': '45%',
|
|
132
|
+
'--sn-lit-accent': '50%',
|
|
133
|
+
'--sn-alpha-overlay': '0.95',
|
|
134
|
+
'--sn-alpha-subtle': '0.1',
|
|
135
|
+
'--sn-alpha-faint': '0.12',
|
|
136
|
+
},
|
|
137
|
+
};
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Neon Glow — electric neon theme with luminous edges
|
|
3
|
+
*
|
|
4
|
+
* Deep black base (hue 230) with electric cyan accent (185).
|
|
5
|
+
* All borders and shapes emit visible glow via elevated alpha
|
|
6
|
+
* and vivid saturation. Designed for maximum visual impact.
|
|
7
|
+
*
|
|
8
|
+
* @module symbiote-node/themes/neon
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
/** @type {import('./Theme.js').ThemeDefinition} */
|
|
12
|
+
export const NEON_GLOW = {
|
|
13
|
+
name: 'neon-glow',
|
|
14
|
+
tokens: {
|
|
15
|
+
// === Atomic tokens ===
|
|
16
|
+
|
|
17
|
+
// Hues
|
|
18
|
+
'--sn-hue-base': '230',
|
|
19
|
+
'--sn-hue-accent': '185',
|
|
20
|
+
'--sn-hue-success': '150',
|
|
21
|
+
'--sn-hue-warning': '50',
|
|
22
|
+
'--sn-hue-danger': '355',
|
|
23
|
+
'--sn-hue-data': '280',
|
|
24
|
+
|
|
25
|
+
// Saturation levels (high neon saturation)
|
|
26
|
+
'--sn-sat': '30%',
|
|
27
|
+
'--sn-sat-vivid': '100%',
|
|
28
|
+
'--sn-sat-muted': '15%',
|
|
29
|
+
|
|
30
|
+
// Lightness levels (very dark base)
|
|
31
|
+
'--sn-lit-bg': '4%',
|
|
32
|
+
'--sn-lit-surface': '8%',
|
|
33
|
+
'--sn-lit-border': '22%',
|
|
34
|
+
'--sn-lit-hover': '14%',
|
|
35
|
+
'--sn-lit-text': '90%',
|
|
36
|
+
'--sn-lit-text-dim': '55%',
|
|
37
|
+
'--sn-lit-accent': '60%',
|
|
38
|
+
|
|
39
|
+
// Alpha levels
|
|
40
|
+
'--sn-alpha-overlay': '0.94',
|
|
41
|
+
'--sn-alpha-subtle': '0.2',
|
|
42
|
+
'--sn-alpha-faint': '0.06',
|
|
43
|
+
|
|
44
|
+
// Semantic state colors
|
|
45
|
+
'--sn-danger-color': 'hsl(var(--sn-hue-danger), var(--sn-sat-vivid), var(--sn-lit-accent))',
|
|
46
|
+
'--sn-success-color': 'hsl(var(--sn-hue-success), var(--sn-sat-vivid), var(--sn-lit-accent))',
|
|
47
|
+
'--sn-warning-color': 'hsl(var(--sn-hue-warning), var(--sn-sat-vivid), var(--sn-lit-accent))',
|
|
48
|
+
|
|
49
|
+
// === Composed tokens ===
|
|
50
|
+
|
|
51
|
+
// Canvas — near-black with cyan grid glow
|
|
52
|
+
'--sn-bg': 'hsl(var(--sn-hue-base), var(--sn-sat), var(--sn-lit-bg))',
|
|
53
|
+
'--sn-grid-dot': 'hsla(var(--sn-hue-accent), var(--sn-sat-vivid), 50%, 0.12)',
|
|
54
|
+
'--sn-grid-size': '22px',
|
|
55
|
+
|
|
56
|
+
// Node — dark glass with neon edge glow
|
|
57
|
+
'--sn-node-bg': 'hsla(var(--sn-hue-base), var(--sn-sat), var(--sn-lit-surface), 0.9)',
|
|
58
|
+
'--sn-node-border': 'hsl(var(--sn-hue-accent), 60%, 30%)',
|
|
59
|
+
'--sn-node-radius': '8px',
|
|
60
|
+
'--sn-node-shadow': '0 0 12px hsla(var(--sn-hue-accent), var(--sn-sat-vivid), 50%, 0.15), 0 4px 16px rgba(0, 0, 0, 0.5)',
|
|
61
|
+
'--sn-shadow-color': 'hsla(var(--sn-hue-accent), var(--sn-sat-vivid), 50%, 0.15)',
|
|
62
|
+
'--sn-node-selected': 'hsl(var(--sn-hue-accent), var(--sn-sat-vivid), 55%)',
|
|
63
|
+
'--sn-node-hover': 'hsl(var(--sn-hue-base), 25%, var(--sn-lit-hover))',
|
|
64
|
+
'--sn-node-header-bg': 'hsla(var(--sn-hue-accent), 40%, 10%, 0.6)',
|
|
65
|
+
|
|
66
|
+
// Typography
|
|
67
|
+
'--sn-font': "'JetBrains Mono', 'Fira Code', monospace",
|
|
68
|
+
'--sn-text': 'hsl(var(--sn-hue-accent), 20%, var(--sn-lit-text))',
|
|
69
|
+
'--sn-text-dim': 'hsl(var(--sn-hue-accent), 15%, var(--sn-lit-text-dim))',
|
|
70
|
+
|
|
71
|
+
// Sockets
|
|
72
|
+
'--sn-socket-size': '12px',
|
|
73
|
+
'--sn-socket-border-width': '2px',
|
|
74
|
+
|
|
75
|
+
// Connections — bright neon wires
|
|
76
|
+
'--sn-conn-color': 'hsl(var(--sn-hue-accent), var(--sn-sat-vivid), 55%)',
|
|
77
|
+
'--sn-conn-width': '2',
|
|
78
|
+
'--sn-conn-selected': 'hsl(var(--sn-hue-danger), var(--sn-sat-vivid), 60%)',
|
|
79
|
+
|
|
80
|
+
// Category accent colors (electric neon palette)
|
|
81
|
+
'--sn-cat-server': 'hsl(var(--sn-hue-accent), var(--sn-sat-vivid), 55%)',
|
|
82
|
+
'--sn-cat-instance': 'hsl(var(--sn-hue-success), var(--sn-sat-vivid), 55%)',
|
|
83
|
+
'--sn-cat-control': 'hsl(var(--sn-hue-warning), var(--sn-sat-vivid), 55%)',
|
|
84
|
+
'--sn-cat-data': 'hsl(var(--sn-hue-data), var(--sn-sat-vivid), 65%)',
|
|
85
|
+
'--sn-cat-default': 'hsl(var(--sn-hue-accent), 30%, 45%)',
|
|
86
|
+
|
|
87
|
+
// Context menu
|
|
88
|
+
'--sn-ctx-bg': 'hsla(var(--sn-hue-base), var(--sn-sat), 6%, 0.96)',
|
|
89
|
+
'--sn-ctx-border': 'hsl(var(--sn-hue-accent), 50%, 25%)',
|
|
90
|
+
'--sn-ctx-color': 'hsl(var(--sn-hue-accent), 20%, var(--sn-lit-text))',
|
|
91
|
+
'--sn-ctx-hover': 'hsla(var(--sn-hue-accent), var(--sn-sat-vivid), 50%, 0.15)',
|
|
92
|
+
|
|
93
|
+
// Comments
|
|
94
|
+
'--sn-comment-bg': 'hsla(var(--sn-hue-accent), 80%, 50%, 0.04)',
|
|
95
|
+
'--sn-comment-border': 'hsla(var(--sn-hue-accent), 80%, 50%, 0.12)',
|
|
96
|
+
'--sn-comment-radius': '6px',
|
|
97
|
+
|
|
98
|
+
// Toolbar — dark glass with neon edge
|
|
99
|
+
'--sn-toolbar-bg': 'hsla(var(--sn-hue-base), var(--sn-sat), 6%, var(--sn-alpha-overlay))',
|
|
100
|
+
'--sn-toolbar-border': 'hsla(var(--sn-hue-accent), 80%, 50%, 0.25)',
|
|
101
|
+
'--sn-toolbar-color': 'hsl(var(--sn-hue-accent), 25%, 60%)',
|
|
102
|
+
'--sn-toolbar-hover': 'hsla(var(--sn-hue-accent), var(--sn-sat-vivid), 50%, 0.18)',
|
|
103
|
+
'--sn-toolbar-active': 'hsl(var(--sn-hue-accent), 40%, var(--sn-lit-text))',
|
|
104
|
+
'--sn-toolbar-danger': 'hsla(var(--sn-hue-danger), var(--sn-sat-vivid), var(--sn-lit-accent), 0.2)',
|
|
105
|
+
'--sn-toolbar-danger-color': 'hsl(var(--sn-hue-danger), var(--sn-sat-vivid), 60%)',
|
|
106
|
+
|
|
107
|
+
// Shape fill/stroke — neon stroke glow
|
|
108
|
+
'--sn-shape-fill': 'var(--sn-node-bg)',
|
|
109
|
+
'--sn-shape-stroke': 'hsl(var(--sn-hue-accent), 60%, 35%)',
|
|
110
|
+
'--sn-shape-stroke-width': '0.5',
|
|
111
|
+
},
|
|
112
|
+
};
|
|
113
|
+
|
|
114
|
+
/** @type {import('./Palette.js').PaletteDefinition} */
|
|
115
|
+
export const NEON_PALETTE = {
|
|
116
|
+
name: 'neon',
|
|
117
|
+
colors: {
|
|
118
|
+
'--sn-hue-base': '230',
|
|
119
|
+
'--sn-hue-accent': '185',
|
|
120
|
+
'--sn-hue-success': '150',
|
|
121
|
+
'--sn-hue-warning': '50',
|
|
122
|
+
'--sn-hue-danger': '355',
|
|
123
|
+
'--sn-hue-data': '280',
|
|
124
|
+
'--sn-sat': '30%',
|
|
125
|
+
'--sn-sat-vivid': '100%',
|
|
126
|
+
'--sn-sat-muted': '15%',
|
|
127
|
+
'--sn-lit-bg': '4%',
|
|
128
|
+
'--sn-lit-surface': '8%',
|
|
129
|
+
'--sn-lit-border': '22%',
|
|
130
|
+
'--sn-lit-hover': '14%',
|
|
131
|
+
'--sn-lit-text': '90%',
|
|
132
|
+
'--sn-lit-text-dim': '55%',
|
|
133
|
+
'--sn-lit-accent': '60%',
|
|
134
|
+
'--sn-alpha-overlay': '0.94',
|
|
135
|
+
'--sn-alpha-subtle': '0.2',
|
|
136
|
+
'--sn-alpha-faint': '0.06',
|
|
137
|
+
},
|
|
138
|
+
};
|
|
@@ -0,0 +1,273 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* PCB Dark — Carbon-based theme with circuit board node styling
|
|
3
|
+
*
|
|
4
|
+
* Extends the Carbon neutral dark palette with PCB-inspired node shapes:
|
|
5
|
+
* - IC chip rectangles with notch markers
|
|
6
|
+
* - Copper-tinted traces for import connections
|
|
7
|
+
* - Pin indicators on sockets
|
|
8
|
+
* - CPU hub styling for high-connectivity nodes
|
|
9
|
+
*
|
|
10
|
+
* Background/surface/text colors match the global Carbon dashboard.
|
|
11
|
+
*
|
|
12
|
+
* @module symbiote-node/themes/pcb
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
/** @type {import('./Theme.js').ThemeDefinition} */
|
|
16
|
+
export const PCB_DARK = {
|
|
17
|
+
name: 'pcb-dark',
|
|
18
|
+
tokens: {
|
|
19
|
+
// === Base: Carbon dark palette ===
|
|
20
|
+
|
|
21
|
+
// Canvas
|
|
22
|
+
'--sn-bg': '#1a1a1a',
|
|
23
|
+
'--sn-grid-dot': 'rgba(255, 255, 255, 0.04)',
|
|
24
|
+
'--sn-grid-size': '20px',
|
|
25
|
+
|
|
26
|
+
// Node / Panels — Carbon surfaces (keep default geometry)
|
|
27
|
+
'--sn-node-bg': '#222222',
|
|
28
|
+
'--sn-node-border': 'rgba(255, 255, 255, 0.12)',
|
|
29
|
+
'--sn-node-shadow': '0 1px 4px rgba(0, 0, 0, 0.5)',
|
|
30
|
+
'--sn-shadow-color': 'rgba(0, 0, 0, 0.5)',
|
|
31
|
+
'--sn-node-header-bg': '#252525',
|
|
32
|
+
'--sn-node-selected': '#d4a04a',
|
|
33
|
+
'--sn-node-hover': '#2d2d2d',
|
|
34
|
+
|
|
35
|
+
// Typography — keep default (Inter)
|
|
36
|
+
'--sn-text': '#e0e0e0',
|
|
37
|
+
'--sn-text-dim': '#888888',
|
|
38
|
+
|
|
39
|
+
// Sockets — pin style
|
|
40
|
+
'--sn-socket-size': '10px',
|
|
41
|
+
'--sn-socket-border-width': '2px',
|
|
42
|
+
|
|
43
|
+
// Connections — copper traces with square caps (PCB)
|
|
44
|
+
'--sn-conn-color': '#c87533',
|
|
45
|
+
'--sn-conn-width': '1.5',
|
|
46
|
+
'--sn-conn-selected': '#d4a04a',
|
|
47
|
+
'--sn-conn-linecap': 'square',
|
|
48
|
+
'--sn-conn-linejoin': 'miter',
|
|
49
|
+
|
|
50
|
+
// Connection dots — solder pads
|
|
51
|
+
'--sn-conn-dot-fill': '#c87533',
|
|
52
|
+
'--sn-conn-dot-stroke': '#222222',
|
|
53
|
+
'--sn-conn-dot-stroke-width': '1',
|
|
54
|
+
'--sn-conn-dot-r': '3.5',
|
|
55
|
+
|
|
56
|
+
// Frames — subdued zones
|
|
57
|
+
'--sn-frame-border-style': 'dashed',
|
|
58
|
+
'--sn-frame-border-width': '1px',
|
|
59
|
+
'--sn-frame-radius': '6px',
|
|
60
|
+
|
|
61
|
+
// Category accent colors
|
|
62
|
+
'--sn-cat-server': '#c87533', // copper — server/routing
|
|
63
|
+
'--sn-cat-instance': '#4caf50', // green — active
|
|
64
|
+
'--sn-cat-control': '#d4a04a', // gold — control/hub
|
|
65
|
+
'--sn-cat-data': '#5c8dbf', // cool blue — data flow
|
|
66
|
+
'--sn-cat-default': '#555555', // neutral
|
|
67
|
+
// Codebase-specific categories
|
|
68
|
+
'--sn-cat-directory': '#f0b840', // amber — folder
|
|
69
|
+
'--sn-cat-file': '#5cb8ff', // sky blue — JS file
|
|
70
|
+
'--sn-cat-function': '#4ade80', // green — function
|
|
71
|
+
'--sn-cat-class': '#a78bfa', // purple — class
|
|
72
|
+
'--sn-cat-module': '#ff6b9d', // pink — entry/index
|
|
73
|
+
'--sn-cat-asset': '#8b8b8b', // gray — non-source asset (.css, .html, .json, .md)
|
|
74
|
+
|
|
75
|
+
// Context menu — matches Carbon
|
|
76
|
+
'--sn-ctx-bg': '#2a2a2a',
|
|
77
|
+
'--sn-ctx-border': 'rgba(255, 255, 255, 0.1)',
|
|
78
|
+
'--sn-ctx-color': '#e0e0e0',
|
|
79
|
+
'--sn-ctx-hover': 'rgba(200, 117, 51, 0.15)',
|
|
80
|
+
|
|
81
|
+
// Comments
|
|
82
|
+
'--sn-comment-bg': 'rgba(255, 255, 255, 0.03)',
|
|
83
|
+
'--sn-comment-border': 'rgba(255, 255, 255, 0.06)',
|
|
84
|
+
'--sn-comment-radius': '2px',
|
|
85
|
+
|
|
86
|
+
// Toolbar — Carbon base with copper accent
|
|
87
|
+
'--sn-toolbar-bg': 'rgba(34, 34, 34, 0.95)',
|
|
88
|
+
'--sn-toolbar-border': 'rgba(255, 255, 255, 0.08)',
|
|
89
|
+
'--sn-toolbar-color': '#888888',
|
|
90
|
+
'--sn-toolbar-hover': 'rgba(200, 117, 51, 0.18)',
|
|
91
|
+
'--sn-toolbar-active': '#e0e0e0',
|
|
92
|
+
'--sn-toolbar-danger': 'rgba(244, 67, 54, 0.22)',
|
|
93
|
+
'--sn-toolbar-danger-color': '#f44336',
|
|
94
|
+
|
|
95
|
+
// Shape fill/stroke
|
|
96
|
+
'--sn-shape-fill': 'var(--sn-node-bg)',
|
|
97
|
+
'--sn-shape-stroke': 'var(--sn-node-border)',
|
|
98
|
+
'--sn-shape-stroke-width': '0.5',
|
|
99
|
+
|
|
100
|
+
// Semantic state
|
|
101
|
+
'--sn-danger-color': '#f44336',
|
|
102
|
+
'--sn-success-color': '#4caf50',
|
|
103
|
+
'--sn-warning-color': '#ff9800',
|
|
104
|
+
|
|
105
|
+
// Atomic hue tokens
|
|
106
|
+
'--sn-hue-base': '0',
|
|
107
|
+
'--sn-hue-accent': '28',
|
|
108
|
+
'--sn-hue-success': '122',
|
|
109
|
+
'--sn-hue-warning': '36',
|
|
110
|
+
'--sn-hue-danger': '4',
|
|
111
|
+
'--sn-hue-data': '210',
|
|
112
|
+
'--sn-sat': '0%',
|
|
113
|
+
'--sn-sat-vivid': '50%',
|
|
114
|
+
'--sn-sat-muted': '0%',
|
|
115
|
+
'--sn-lit-bg': '10%',
|
|
116
|
+
'--sn-lit-surface': '13%',
|
|
117
|
+
'--sn-lit-border': '17%',
|
|
118
|
+
'--sn-lit-hover': '18%',
|
|
119
|
+
'--sn-lit-text': '88%',
|
|
120
|
+
'--sn-lit-text-dim': '53%',
|
|
121
|
+
'--sn-lit-accent': '55%',
|
|
122
|
+
'--sn-alpha-overlay': '0.95',
|
|
123
|
+
'--sn-alpha-subtle': '0.12',
|
|
124
|
+
'--sn-alpha-faint': '0.04',
|
|
125
|
+
},
|
|
126
|
+
|
|
127
|
+
// PCB-specific CSS that can't be expressed as tokens
|
|
128
|
+
// (pseudo-elements, structural selectors, behavioral modes)
|
|
129
|
+
extraCSS: `
|
|
130
|
+
/* ── IC Chip Decorations (SVG shape nodes only) ── */
|
|
131
|
+
|
|
132
|
+
/* Hide Material icons only on SVG shape nodes (they use watermarks) */
|
|
133
|
+
graph-node[data-svg-shape] .sn-node-icon {
|
|
134
|
+
display: none;
|
|
135
|
+
}
|
|
136
|
+
graph-node[data-svg-shape] .sn-shape-watermark {
|
|
137
|
+
display: none;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
/* IC chip notch marker — SVG shape nodes only */
|
|
141
|
+
graph-node[data-svg-shape]::before {
|
|
142
|
+
content: '';
|
|
143
|
+
position: absolute;
|
|
144
|
+
top: -1.5px;
|
|
145
|
+
left: 50%;
|
|
146
|
+
transform: translateX(-50%);
|
|
147
|
+
width: 16px;
|
|
148
|
+
height: 4px;
|
|
149
|
+
background: var(--sn-bg, #1a1a1a);
|
|
150
|
+
border-radius: 0 0 4px 4px;
|
|
151
|
+
border: 1px solid var(--sn-node-border, rgba(255,255,255,0.12));
|
|
152
|
+
border-top: none;
|
|
153
|
+
z-index: 1;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
/* Pin markers on node sides — SVG shape nodes only */
|
|
157
|
+
graph-node[data-svg-shape]::after {
|
|
158
|
+
content: '';
|
|
159
|
+
position: absolute;
|
|
160
|
+
top: 50%;
|
|
161
|
+
left: -5px;
|
|
162
|
+
width: 4px;
|
|
163
|
+
height: 4px;
|
|
164
|
+
background: var(--sn-conn-color, #c87533);
|
|
165
|
+
border-radius: 50%;
|
|
166
|
+
transform: translateY(-50%);
|
|
167
|
+
box-shadow: calc(100% + 6px) 0 0 0 var(--sn-conn-color, #c87533);
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
/* ── Label Visibility Modes ── */
|
|
171
|
+
|
|
172
|
+
/* SVG shape label positioning */
|
|
173
|
+
graph-node[data-svg-shape] .sn-node-header {
|
|
174
|
+
position: absolute;
|
|
175
|
+
top: 50%;
|
|
176
|
+
left: 50%;
|
|
177
|
+
transform: translate(-50%, -50%);
|
|
178
|
+
background: transparent;
|
|
179
|
+
border: none;
|
|
180
|
+
border-radius: 0;
|
|
181
|
+
border-bottom: none;
|
|
182
|
+
padding: 4px 10px;
|
|
183
|
+
white-space: nowrap;
|
|
184
|
+
opacity: 1;
|
|
185
|
+
pointer-events: none;
|
|
186
|
+
z-index: 1;
|
|
187
|
+
font-size: 11px;
|
|
188
|
+
letter-spacing: 0.3px;
|
|
189
|
+
transition: opacity 0.2s ease-in-out;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
/* HOVER MODE */
|
|
193
|
+
node-canvas[data-label-mode="hover"] graph-node[data-svg-shape] .sn-node-header {
|
|
194
|
+
opacity: 0;
|
|
195
|
+
}
|
|
196
|
+
node-canvas[data-label-mode="hover"] graph-node[data-svg-shape]:hover .sn-node-header,
|
|
197
|
+
node-canvas[data-label-mode="hover"] graph-node[data-svg-shape][data-selected] .sn-node-header,
|
|
198
|
+
node-canvas[data-label-mode="hover"] graph-node[data-svg-shape][data-neighbor-focused] .sn-node-header {
|
|
199
|
+
opacity: 1;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
/* FOCUS MODE */
|
|
203
|
+
node-canvas[data-label-mode="focus"] graph-node[data-svg-shape] .sn-node-header {
|
|
204
|
+
opacity: 0;
|
|
205
|
+
}
|
|
206
|
+
node-canvas[data-label-mode="focus"] graph-node[data-svg-shape][data-selected] .sn-node-header,
|
|
207
|
+
node-canvas[data-label-mode="focus"] graph-node[data-svg-shape][data-neighbor-focused] .sn-node-header {
|
|
208
|
+
opacity: 1;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
/* ALWAYS: selected always visible */
|
|
212
|
+
graph-node[data-svg-shape][data-selected] .sn-node-header {
|
|
213
|
+
opacity: 1 !important;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
/* ── Connection Focus States ── */
|
|
217
|
+
|
|
218
|
+
/* Selected node connections — full opacity, gold, thick */
|
|
219
|
+
.sn-conn-path[data-active-conn] {
|
|
220
|
+
opacity: 1 !important;
|
|
221
|
+
stroke-width: 2.5 !important;
|
|
222
|
+
stroke: var(--sn-node-selected, #d4a04a) !important;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
/* Dim non-active connections when a node is selected */
|
|
226
|
+
.sn-conn-path[data-dimmed] {
|
|
227
|
+
opacity: 0.3 !important;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
/* LOD: at low zoom, hide connections but keep active visible */
|
|
231
|
+
[data-lod-dimmed] .sn-conn-path,
|
|
232
|
+
[data-lod-dimmed] .sn-conn-arrow {
|
|
233
|
+
visibility: hidden;
|
|
234
|
+
}
|
|
235
|
+
[data-lod-dimmed] .sn-conn-path[data-active-conn],
|
|
236
|
+
[data-lod-dimmed] .sn-conn-arrow[data-active-conn] {
|
|
237
|
+
visibility: visible;
|
|
238
|
+
opacity: 1 !important;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
/* ── Compact SVG Shape Sizing ── */
|
|
242
|
+
graph-node[data-svg-shape] {
|
|
243
|
+
min-width: 100px;
|
|
244
|
+
min-height: 60px;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
/* Label styling */
|
|
248
|
+
graph-node .sn-node-label {
|
|
249
|
+
font-weight: 500;
|
|
250
|
+
text-shadow: 0 1px 3px rgba(0,0,0,0.6);
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
/* CPU hub (shield shape) — larger, gold accent labels */
|
|
254
|
+
graph-node[node-shape="shield"] .sn-node-label {
|
|
255
|
+
font-size: 11px;
|
|
256
|
+
font-weight: 700;
|
|
257
|
+
color: var(--sn-cat-control, #d4a04a);
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
/* Via connections: cross-directory dashed traces */
|
|
261
|
+
.sn-conn-path[data-via] {
|
|
262
|
+
stroke-dasharray: 6 3;
|
|
263
|
+
opacity: 0.7;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
/* Frame label styling override for PCB silkscreen look */
|
|
267
|
+
graph-frame .sn-frame-label {
|
|
268
|
+
text-transform: uppercase;
|
|
269
|
+
letter-spacing: 1px;
|
|
270
|
+
opacity: 0.6;
|
|
271
|
+
}
|
|
272
|
+
`,
|
|
273
|
+
};
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Synthwave — neon retrowave theme
|
|
3
|
+
*
|
|
4
|
+
* High saturation (60%), purple base hue (270).
|
|
5
|
+
* Neon accents with vivid category colors.
|
|
6
|
+
*
|
|
7
|
+
* @module symbiote-node/themes/synthwave
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
/** @type {import('./Theme.js').ThemeDefinition} */
|
|
11
|
+
export const SYNTHWAVE = {
|
|
12
|
+
name: 'synthwave',
|
|
13
|
+
tokens: {
|
|
14
|
+
// === Atomic tokens ===
|
|
15
|
+
|
|
16
|
+
// Hues
|
|
17
|
+
'--sn-hue-base': '270',
|
|
18
|
+
'--sn-hue-accent': '300',
|
|
19
|
+
'--sn-hue-success': '180',
|
|
20
|
+
'--sn-hue-warning': '60',
|
|
21
|
+
'--sn-hue-danger': '0',
|
|
22
|
+
'--sn-hue-data': '300',
|
|
23
|
+
|
|
24
|
+
// Saturation levels (vivid neon)
|
|
25
|
+
'--sn-sat': '45%',
|
|
26
|
+
'--sn-sat-vivid': '100%',
|
|
27
|
+
'--sn-sat-muted': '25%',
|
|
28
|
+
|
|
29
|
+
// Lightness levels
|
|
30
|
+
'--sn-lit-bg': '6%',
|
|
31
|
+
'--sn-lit-surface': '12%',
|
|
32
|
+
'--sn-lit-border': '25%',
|
|
33
|
+
'--sn-lit-hover': '32%',
|
|
34
|
+
'--sn-lit-text': '88%',
|
|
35
|
+
'--sn-lit-text-dim': '48%',
|
|
36
|
+
'--sn-lit-accent': '55%',
|
|
37
|
+
|
|
38
|
+
// Alpha levels
|
|
39
|
+
'--sn-alpha-overlay': '0.92',
|
|
40
|
+
'--sn-alpha-subtle': '0.2',
|
|
41
|
+
'--sn-alpha-faint': '0.08',
|
|
42
|
+
|
|
43
|
+
// Semantic state colors (composed from atomics)
|
|
44
|
+
'--sn-danger-color': 'hsl(var(--sn-hue-danger), var(--sn-sat-vivid), var(--sn-lit-accent))',
|
|
45
|
+
'--sn-success-color': 'hsl(var(--sn-hue-success), var(--sn-sat-vivid), var(--sn-lit-accent))',
|
|
46
|
+
'--sn-warning-color': 'hsl(var(--sn-hue-warning), var(--sn-sat-vivid), var(--sn-lit-accent))',
|
|
47
|
+
|
|
48
|
+
// === Composed tokens ===
|
|
49
|
+
|
|
50
|
+
// Canvas
|
|
51
|
+
'--sn-bg': 'hsl(var(--sn-hue-base), var(--sn-sat), var(--sn-lit-bg))',
|
|
52
|
+
'--sn-grid-dot': 'hsla(var(--sn-hue-accent), var(--sn-sat-vivid), 50%, var(--sn-alpha-faint))',
|
|
53
|
+
'--sn-grid-size': '24px',
|
|
54
|
+
|
|
55
|
+
// Node
|
|
56
|
+
'--sn-node-bg': 'hsl(var(--sn-hue-base), var(--sn-sat), var(--sn-lit-surface))',
|
|
57
|
+
'--sn-node-border': 'hsl(var(--sn-hue-base), var(--sn-sat-muted), var(--sn-lit-border))',
|
|
58
|
+
'--sn-node-radius': '12px',
|
|
59
|
+
'--sn-node-shadow': '0 4px 20px hsla(var(--sn-hue-base), var(--sn-sat-vivid), 50%, 0.2)',
|
|
60
|
+
'--sn-shadow-color': 'hsla(var(--sn-hue-base), var(--sn-sat-vivid), 50%, 0.2)',
|
|
61
|
+
'--sn-node-selected': 'hsl(var(--sn-hue-accent), var(--sn-sat-vivid), 50%)',
|
|
62
|
+
'--sn-node-hover': 'hsl(var(--sn-hue-base), var(--sn-sat-muted), var(--sn-lit-hover))',
|
|
63
|
+
'--sn-node-header-bg': 'hsl(var(--sn-hue-base), var(--sn-sat), 9%)',
|
|
64
|
+
|
|
65
|
+
// Typography
|
|
66
|
+
'--sn-font': "'Space Grotesk', sans-serif",
|
|
67
|
+
'--sn-text': 'hsl(var(--sn-hue-base), 30%, var(--sn-lit-text))',
|
|
68
|
+
'--sn-text-dim': 'hsl(var(--sn-hue-base), 20%, var(--sn-lit-text-dim))',
|
|
69
|
+
|
|
70
|
+
// Sockets
|
|
71
|
+
'--sn-socket-size': '14px',
|
|
72
|
+
'--sn-socket-border-width': '2px',
|
|
73
|
+
|
|
74
|
+
// Connections
|
|
75
|
+
'--sn-conn-color': 'hsl(var(--sn-hue-accent), var(--sn-sat-vivid), 50%)',
|
|
76
|
+
'--sn-conn-width': '2.5',
|
|
77
|
+
'--sn-conn-selected': 'hsl(var(--sn-hue-success), var(--sn-sat-vivid), 50%)',
|
|
78
|
+
|
|
79
|
+
// Category accent colors (neon)
|
|
80
|
+
'--sn-cat-server': 'hsl(340, 100%, 70%)',
|
|
81
|
+
'--sn-cat-instance': 'hsl(var(--sn-hue-success), var(--sn-sat-vivid), 50%)',
|
|
82
|
+
'--sn-cat-control': 'hsl(var(--sn-hue-warning), var(--sn-sat-vivid), 50%)',
|
|
83
|
+
'--sn-cat-data': 'hsl(var(--sn-hue-data), var(--sn-sat-vivid), 50%)',
|
|
84
|
+
'--sn-cat-default': 'hsl(var(--sn-hue-base), 20%, var(--sn-lit-text-dim))',
|
|
85
|
+
|
|
86
|
+
// Context menu
|
|
87
|
+
'--sn-ctx-bg': 'hsl(var(--sn-hue-base), var(--sn-sat), var(--sn-lit-surface))',
|
|
88
|
+
'--sn-ctx-border': 'hsl(var(--sn-hue-base), var(--sn-sat-muted), var(--sn-lit-border))',
|
|
89
|
+
'--sn-ctx-color': 'hsl(var(--sn-hue-base), 30%, var(--sn-lit-text))',
|
|
90
|
+
'--sn-ctx-hover': 'hsla(var(--sn-hue-accent), var(--sn-sat-vivid), 50%, var(--sn-alpha-subtle))',
|
|
91
|
+
|
|
92
|
+
// Comments
|
|
93
|
+
'--sn-comment-bg': 'hsla(var(--sn-hue-accent), var(--sn-sat-vivid), 50%, 0.05)',
|
|
94
|
+
'--sn-comment-border': 'hsla(var(--sn-hue-accent), var(--sn-sat-vivid), 50%, 0.15)',
|
|
95
|
+
'--sn-comment-radius': '8px',
|
|
96
|
+
|
|
97
|
+
// Toolbar
|
|
98
|
+
'--sn-toolbar-bg': 'hsla(var(--sn-hue-base), var(--sn-sat), var(--sn-lit-surface), var(--sn-alpha-overlay))',
|
|
99
|
+
'--sn-toolbar-border': 'hsla(var(--sn-hue-accent), var(--sn-sat-vivid), 50%, 0.2)',
|
|
100
|
+
'--sn-toolbar-color': 'hsl(var(--sn-hue-base), 20%, 70%)',
|
|
101
|
+
'--sn-toolbar-hover': 'hsla(var(--sn-hue-accent), var(--sn-sat-vivid), 50%, 0.2)',
|
|
102
|
+
'--sn-toolbar-active': 'hsl(var(--sn-hue-base), 30%, var(--sn-lit-text))',
|
|
103
|
+
'--sn-toolbar-danger': 'hsla(var(--sn-hue-danger), var(--sn-sat-vivid), var(--sn-lit-accent), 0.25)',
|
|
104
|
+
'--sn-toolbar-danger-color': 'hsl(var(--sn-hue-danger), 80%, 60%)',
|
|
105
|
+
|
|
106
|
+
// Shape fill/stroke
|
|
107
|
+
'--sn-shape-fill': 'var(--sn-node-bg)',
|
|
108
|
+
'--sn-shape-stroke': 'var(--sn-node-border)',
|
|
109
|
+
'--sn-shape-stroke-width': '0.4',
|
|
110
|
+
},
|
|
111
|
+
};
|
|
112
|
+
|
|
113
|
+
/** @type {import('./Palette.js').PaletteDefinition} */
|
|
114
|
+
export const SYNTHWAVE_PALETTE = {
|
|
115
|
+
name: 'synthwave',
|
|
116
|
+
colors: {
|
|
117
|
+
'--sn-hue-base': '270',
|
|
118
|
+
'--sn-hue-accent': '300',
|
|
119
|
+
'--sn-hue-success': '180',
|
|
120
|
+
'--sn-hue-warning': '60',
|
|
121
|
+
'--sn-hue-danger': '0',
|
|
122
|
+
'--sn-hue-data': '300',
|
|
123
|
+
'--sn-sat': '45%',
|
|
124
|
+
'--sn-sat-vivid': '100%',
|
|
125
|
+
'--sn-sat-muted': '25%',
|
|
126
|
+
'--sn-lit-bg': '6%',
|
|
127
|
+
'--sn-lit-surface': '12%',
|
|
128
|
+
'--sn-lit-border': '25%',
|
|
129
|
+
'--sn-lit-hover': '32%',
|
|
130
|
+
'--sn-lit-text': '88%',
|
|
131
|
+
'--sn-lit-text-dim': '48%',
|
|
132
|
+
'--sn-lit-accent': '55%',
|
|
133
|
+
'--sn-alpha-overlay': '0.92',
|
|
134
|
+
'--sn-alpha-subtle': '0.2',
|
|
135
|
+
'--sn-alpha-faint': '0.08',
|
|
136
|
+
},
|
|
137
|
+
};
|