symbiote-ui 0.3.0-alpha.4
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/CHANGELOG.md +46 -0
- package/LICENSE +21 -0
- package/README.md +76 -0
- package/canvas/AutoLayout.js +731 -0
- package/canvas/Breadcrumb/Breadcrumb.css.js +75 -0
- package/canvas/Breadcrumb/Breadcrumb.js +96 -0
- package/canvas/Breadcrumb/Breadcrumb.tpl.js +7 -0
- package/canvas/CanvasConnectionRenderer.js +971 -0
- package/canvas/CanvasGraph/CanvasGraph.css.js +29 -0
- package/canvas/CanvasGraph/CanvasGraph.js +1697 -0
- package/canvas/CanvasGraph/CanvasGraphDrawState.js +280 -0
- package/canvas/CanvasGraph/CanvasGraphGeometry.js +194 -0
- package/canvas/CanvasViewport.js +550 -0
- package/canvas/ConnectionRenderer.js +1283 -0
- package/canvas/FlowSimulator.js +326 -0
- package/canvas/ForceLayout.js +226 -0
- package/canvas/ForceWorker.js +1303 -0
- package/canvas/FrameManager.js +223 -0
- package/canvas/GraphExplorerShell/GraphExplorerShell.css.js +136 -0
- package/canvas/GraphExplorerShell/GraphExplorerShell.js +129 -0
- package/canvas/GraphExplorerShell/GraphExplorerShell.tpl.js +12 -0
- package/canvas/GraphTabs/GraphTabs.css.js +101 -0
- package/canvas/GraphTabs/GraphTabs.js +189 -0
- package/canvas/GraphTabs/GraphTabs.tpl.js +12 -0
- package/canvas/LODManager.js +88 -0
- package/canvas/Minimap/Minimap.css.js +73 -0
- package/canvas/Minimap/Minimap.js +210 -0
- package/canvas/Minimap/Minimap.tpl.js +7 -0
- package/canvas/NodeCanvas/NodeCanvas.css.js +398 -0
- package/canvas/NodeCanvas/NodeCanvas.js +1499 -0
- package/canvas/NodeCanvas/NodeCanvas.tpl.js +22 -0
- package/canvas/NodeSearch/NodeSearch.css.js +97 -0
- package/canvas/NodeSearch/NodeSearch.js +140 -0
- package/canvas/NodeSearch/NodeSearch.tpl.js +25 -0
- package/canvas/NodeViewManager.js +748 -0
- package/canvas/PcbRouteDiagnostics.js +463 -0
- package/canvas/PcbRouter.js +1127 -0
- package/canvas/PinExpansion.js +134 -0
- package/canvas/PseudoConnection.js +84 -0
- package/canvas/SelectionSync.js +163 -0
- package/canvas/SubgraphManager.js +203 -0
- package/canvas/SubgraphRouter.js +452 -0
- package/canvas/ViewportActions.js +473 -0
- package/canvas/graph-explorer.js +339 -0
- package/canvas/graph-layout.js +148 -0
- package/canvas/graph-model.js +68 -0
- package/canvas/html-in-canvas.js +202 -0
- package/canvas/project-graph-builder.js +440 -0
- package/canvas/project-graph-model.js +183 -0
- package/chat/ChatComposer/ChatComposer.css.js +652 -0
- package/chat/ChatComposer/ChatComposer.js +304 -0
- package/chat/ChatList/ChatList.css.js +102 -0
- package/chat/ChatList/ChatList.js +99 -0
- package/chat/ChatList/ChatList.tpl.js +20 -0
- package/chat/ChatListItem/ChatListItem.css.js +117 -0
- package/chat/ChatListItem/ChatListItem.js +32 -0
- package/chat/ChatListItem/ChatListItem.tpl.js +17 -0
- package/chat/ChatMessageItem/ChatMessageItem.css.js +628 -0
- package/chat/ChatMessageItem/ChatMessageItem.js +156 -0
- package/chat/ChatSidebar/ChatSidebar.css.js +150 -0
- package/chat/ChatSidebar/ChatSidebar.js +230 -0
- package/chat/ChatSidebar/ChatSidebar.tpl.js +18 -0
- package/chat/ChatSidebar/constants.js +11 -0
- package/chat/ChatSidebarItem/ChatSidebarItem.css.js +445 -0
- package/chat/ChatSidebarItem/ChatSidebarItem.js +304 -0
- package/chat/ChatTranscript/ChatTranscript.css.js +90 -0
- package/chat/ChatTranscript/ChatTranscript.js +244 -0
- package/chat/chat-context.js +123 -0
- package/chat/message-model.js +156 -0
- package/cli.js +20 -0
- package/control/Button/Button.css.js +93 -0
- package/control/Button/Button.js +78 -0
- package/control/Button/Button.tpl.js +3 -0
- package/control/Field/Field.css.js +91 -0
- package/control/Field/Field.js +17 -0
- package/control/Field/Field.tpl.js +3 -0
- package/core/Connection.js +47 -0
- package/core/Editor.js +449 -0
- package/core/Frame.js +33 -0
- package/core/GraphMermaid.js +348 -0
- package/core/GraphText.js +228 -0
- package/core/Node.js +145 -0
- package/core/Portal.js +106 -0
- package/core/Socket.js +187 -0
- package/core/SubgraphNode.js +121 -0
- package/core/base-path.js +55 -0
- package/core/dom-utils.js +14 -0
- package/core/index.js +18 -0
- package/core/local-cache.js +26 -0
- package/core/state-sync.js +227 -0
- package/custom-elements.json +6380 -0
- package/discover.js +240 -0
- package/display/Badge/Badge.css.js +44 -0
- package/display/Badge/Badge.js +17 -0
- package/display/Badge/Badge.tpl.js +3 -0
- package/display/Banner/Banner.css.js +61 -0
- package/display/Banner/Banner.js +17 -0
- package/display/Banner/Banner.tpl.js +3 -0
- package/display/CodeBlock/CodeBlock.css.js +194 -0
- package/display/CodeBlock/CodeBlock.js +220 -0
- package/display/CodeBlock/CodeBlock.tpl.js +11 -0
- package/display/DataTable/DataTable.css.js +101 -0
- package/display/DataTable/DataTable.js +136 -0
- package/display/DataTable/DataTable.tpl.js +13 -0
- package/display/EmptyState/EmptyState.css.js +33 -0
- package/display/EmptyState/EmptyState.js +17 -0
- package/display/EmptyState/EmptyState.tpl.js +3 -0
- package/display/EventFeed/EventFeed.css.js +145 -0
- package/display/EventFeed/EventFeed.js +64 -0
- package/display/EventFeed/EventFeed.tpl.js +14 -0
- package/display/EventFeed/EventFeedItem.js +116 -0
- package/display/EventFeed/EventFeedItem.tpl.js +22 -0
- package/display/LoadingOverlay/LoadingOverlay.css.js +91 -0
- package/display/LoadingOverlay/LoadingOverlay.js +48 -0
- package/display/LoadingOverlay/LoadingOverlay.tpl.js +12 -0
- package/display/Metric/Metric.css.js +60 -0
- package/display/Metric/Metric.js +17 -0
- package/display/Metric/Metric.tpl.js +6 -0
- package/display/OutputGraphPreview/OutputGraphPreview.css.js +122 -0
- package/display/OutputGraphPreview/OutputGraphPreview.js +89 -0
- package/display/OutputGraphPreview/OutputGraphPreview.tpl.js +13 -0
- package/display/OutputListPreview/OutputListPreview.css.js +109 -0
- package/display/OutputListPreview/OutputListPreview.js +77 -0
- package/display/OutputListPreview/OutputListPreview.tpl.js +13 -0
- package/display/SourceEditor/SourceEditor.css.js +39 -0
- package/display/SourceEditor/SourceEditor.js +129 -0
- package/display/SourceEditor/SourceEditor.tpl.js +10 -0
- package/display/SourceViewer/SourceViewer.css.js +80 -0
- package/display/SourceViewer/SourceViewer.js +418 -0
- package/display/SourceViewer/SourceViewer.tpl.js +17 -0
- package/display/StatusRibbon/StatusRibbon.css.js +73 -0
- package/display/StatusRibbon/StatusRibbon.js +87 -0
- package/display/StatusRibbon/StatusRibbon.tpl.js +7 -0
- package/display/event-feed-adapter.js +72 -0
- package/display/format-utils.js +29 -0
- package/display/highlight.js +659 -0
- package/display/icons.js +37 -0
- package/display/markdown-formatter.js +60 -0
- package/display/network-approval-page.js +487 -0
- package/display/output-preview.js +261 -0
- package/effects/CellBg/CellBg.css.js +33 -0
- package/effects/CellBg/CellBg.js +410 -0
- package/effects/CellBg/CellBg.tpl.js +5 -0
- package/graph/canvas-adapter.js +223 -0
- package/graph/graph-algorithms.js +31 -0
- package/graph/index.js +46 -0
- package/graph/model.js +176 -0
- package/graph/project-graph-build.js +66 -0
- package/graph/project-graph-metadata.js +253 -0
- package/graph/project-package.js +128 -0
- package/graph/project-runtime.js +116 -0
- package/graph/project-transaction.js +284 -0
- package/graph/skeleton-utils.js +84 -0
- package/graph/theme-contract.js +36 -0
- package/graph/transaction-parser.js +56 -0
- package/icons/MaterialSymbols.js +69 -0
- package/icons/material-symbols-outlined-400.ttf +0 -0
- package/icons/material-symbols.css +24 -0
- package/index.js +95 -0
- package/inspector/InspectorPanel/InspectorPanel.css.js +375 -0
- package/inspector/InspectorPanel/InspectorPanel.js +368 -0
- package/inspector/InspectorPanel/InspectorPanel.tpl.js +96 -0
- package/inspector/TemplatePreview/TemplatePreview.css.js +104 -0
- package/inspector/TemplatePreview/TemplatePreview.js +145 -0
- package/inspector/TemplatePreview/TemplatePreview.tpl.js +33 -0
- package/interactions/ConnectFlow.js +304 -0
- package/interactions/Drag.js +104 -0
- package/interactions/Selector.js +133 -0
- package/interactions/SnapGrid.js +66 -0
- package/interactions/Zoom.js +139 -0
- package/layout/ActionZone/ActionZone.css.js +88 -0
- package/layout/ActionZone/ActionZone.js +261 -0
- package/layout/ActionZone/ActionZone.tpl.js +11 -0
- package/layout/CrossLayoutPortalBridge/CrossLayoutPortalBridge.js +255 -0
- package/layout/Layout/Layout.css.js +91 -0
- package/layout/Layout/Layout.js +637 -0
- package/layout/Layout/Layout.tpl.js +27 -0
- package/layout/LayoutNode/LayoutNode.css.js +302 -0
- package/layout/LayoutNode/LayoutNode.js +509 -0
- package/layout/LayoutNode/LayoutNode.tpl.js +39 -0
- package/layout/LayoutPreview/LayoutPreview.css.js +46 -0
- package/layout/LayoutPreview/LayoutPreview.js +102 -0
- package/layout/LayoutPreview/LayoutPreview.tpl.js +6 -0
- package/layout/LayoutRouter/LayoutRouter.js +274 -0
- package/layout/LayoutRouter/SectionRegistry.js +135 -0
- package/layout/LayoutRouter/routerSync.js +250 -0
- package/layout/LayoutSidebar/LayoutSidebar.css.js +411 -0
- package/layout/LayoutSidebar/LayoutSidebar.js +368 -0
- package/layout/LayoutSidebar/LayoutSidebar.tpl.js +26 -0
- package/layout/LayoutSidebar/SidebarSection.css.js +20 -0
- package/layout/LayoutSidebar/SidebarSection.js +184 -0
- package/layout/LayoutSidebar/SidebarSection.tpl.js +22 -0
- package/layout/LayoutTree.js +373 -0
- package/layout/PanelMenu/PanelMenu.css.js +43 -0
- package/layout/PanelMenu/PanelMenu.js +95 -0
- package/layout/PanelMenu/PanelMenu.tpl.js +17 -0
- package/layout/ProjectTabs/ProjectTabs.css.js +188 -0
- package/layout/ProjectTabs/ProjectTabs.js +77 -0
- package/layout/ProjectTabs/ProjectTabs.tpl.js +15 -0
- package/layout/index.js +40 -0
- package/list/ListDetailShell/ListDetailShell.css.js +128 -0
- package/list/ListDetailShell/ListDetailShell.js +72 -0
- package/list/ListDetailShell/ListDetailShell.tpl.js +36 -0
- package/list/ListItem/ListItem.css.js +111 -0
- package/list/ListItem/ListItem.js +66 -0
- package/list/ListItem/ListItem.tpl.js +18 -0
- package/locale/index.js +503 -0
- package/manifest/component-registry.js +2446 -0
- package/manifest/graph-schema.js +285 -0
- package/manifest/index.js +6 -0
- package/manifest/project-schema-catalog.js +246 -0
- package/manifest/rule-catalog.js +201 -0
- package/manifest/theme-catalog.js +2149 -0
- package/manifest/ui-schema-catalog.js +334 -0
- package/menu/ContextMenu/ContextMenu.css.js +61 -0
- package/menu/ContextMenu/ContextMenu.js +82 -0
- package/menu/ContextMenu/ContextMenu.tpl.js +19 -0
- package/navigation/QuickOpen/QuickOpen.css.js +92 -0
- package/navigation/QuickOpen/QuickOpen.js +185 -0
- package/navigation/QuickOpen/QuickOpen.tpl.js +15 -0
- package/navigation/quick-open-utils.js +101 -0
- package/node/CtrlItem/CtrlItem.css.js +41 -0
- package/node/CtrlItem/CtrlItem.js +24 -0
- package/node/CtrlItem/CtrlItem.tpl.js +17 -0
- package/node/GraphFrame/GraphFrame.css.js +66 -0
- package/node/GraphFrame/GraphFrame.js +32 -0
- package/node/GraphFrame/GraphFrame.tpl.js +13 -0
- package/node/GraphNode/GraphNode.css.js +815 -0
- package/node/GraphNode/GraphNode.js +173 -0
- package/node/GraphNode/GraphNode.tpl.js +33 -0
- package/node/NodeCallout/NodeCallout.css.js +91 -0
- package/node/NodeCallout/NodeCallout.js +281 -0
- package/node/NodeCallout/NodeCallout.tpl.js +8 -0
- package/node/NodeSocket/NodeSocket.css.js +68 -0
- package/node/NodeSocket/NodeSocket.js +26 -0
- package/node/NodeSocket/NodeSocket.tpl.js +7 -0
- package/node/PortItem/PortItem.css.js +93 -0
- package/node/PortItem/PortItem.js +87 -0
- package/node/PortItem/PortItem.tpl.js +10 -0
- package/package.json +165 -0
- package/palette/PaletteBrowser/PaletteBrowser.css.js +143 -0
- package/palette/PaletteBrowser/PaletteBrowser.js +152 -0
- package/palette/PaletteBrowser/PaletteBrowser.tpl.js +23 -0
- package/plugins/History.js +408 -0
- package/plugins/Readonly.js +60 -0
- package/rules/symbiote-3x.json +170 -0
- package/schemas/component-descriptor-v1.json +91 -0
- package/schemas/component-descriptor-v2.json +145 -0
- package/schemas/graph-model-v1.json +179 -0
- package/schemas/graph-v1.json +91 -0
- package/schemas/project-package-v1.json +102 -0
- package/schemas/project-transaction-v1.json +114 -0
- package/schemas/runtime-ui-v1.json +80 -0
- package/schemas/theme-rule-block-v1.json +73 -0
- package/shapes/CircleShape.js +79 -0
- package/shapes/CommentShape.js +35 -0
- package/shapes/DiamondShape.js +130 -0
- package/shapes/NodeShape.js +79 -0
- package/shapes/PillShape.js +91 -0
- package/shapes/RectShape.js +84 -0
- package/shapes/SVGShape.js +525 -0
- package/shapes/index.js +63 -0
- package/surface/Card/Card.css.js +57 -0
- package/surface/Card/Card.js +17 -0
- package/surface/Card/Card.tpl.js +3 -0
- package/themes/Palette.js +30 -0
- package/themes/Skin.js +113 -0
- package/themes/Theme.js +82 -0
- package/themes/carbon.js +135 -0
- package/themes/dark.js +140 -0
- package/themes/default-dark.js +714 -0
- package/themes/default-provider.css +635 -0
- package/themes/default-provider.js +718 -0
- package/themes/ebook.js +136 -0
- package/themes/grey.js +137 -0
- package/themes/light.js +139 -0
- package/themes/neon.js +138 -0
- package/themes/pcb.js +273 -0
- package/themes/synthwave.js +138 -0
- package/tokens/base.json +29 -0
- package/tokens/themes/carbon.json +11 -0
- package/tokens/themes/dark.json +12 -0
- package/tokens/themes/default-dark.json +1543 -0
- package/tokens/themes/default-provider.json +1543 -0
- package/tokens/themes/ebook.json +11 -0
- package/tokens/themes/grey.json +11 -0
- package/tokens/themes/light.json +12 -0
- package/tokens/themes/neon.json +11 -0
- package/tokens/themes/pcb.json +11 -0
- package/tokens/themes/synthwave.json +11 -0
- package/toolbar/QuickToolbar/QuickToolbar.css.js +152 -0
- package/toolbar/QuickToolbar/QuickToolbar.js +529 -0
- package/toolbar/QuickToolbar/QuickToolbar.tpl.js +34 -0
- package/tree/TreePanel/TreePanel.css.js +112 -0
- package/tree/TreePanel/TreePanel.js +147 -0
- package/tree/TreePanel/TreePanel.tpl.js +18 -0
- package/tree/TreeView/TreeView.css.js +122 -0
- package/tree/TreeView/TreeView.js +365 -0
- package/tree/TreeView/TreeView.tpl.js +10 -0
- package/ui/dialogs.js +221 -0
- package/ui/host-adapters.js +114 -0
- package/ui/index.js +660 -0
- package/ui/locale.js +50 -0
- package/ui/overlay-stack.js +89 -0
- package/ui/shared-styles.js +26 -0
- package/webmcp.js +37 -0
- package/xr/deep-graph.js +646 -0
- package/xr/emulation.js +198 -0
- package/xr/gesture.js +228 -0
- package/xr/html-canvas-renderer.js +472 -0
- package/xr/index.js +15 -0
- package/xr/layout-projection.js +1046 -0
- package/xr/panel-frame.js +128 -0
- package/xr/panel-host.js +267 -0
- package/xr/pointer.js +258 -0
- package/xr/scene-controller.js +242 -0
- package/xr/spatial-scene.js +212 -0
- package/xr/theme-bridge.js +105 -0
- package/xr/three-webxr-adapter.js +3439 -0
- package/xr/webgl-layer-renderer.js +419 -0
- package/xr/webxr.js +679 -0
- package/xr/workbench.js +516 -0
package/themes/pcb.js
ADDED
|
@@ -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 let PCB_DARK = {
|
|
17
|
+
name: 'pcb-dark',
|
|
18
|
+
tokens: {
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
'--sn-bg': '#1a1a1a',
|
|
22
|
+
'--sn-grid-dot': 'rgba(255, 255, 255, 0.04)',
|
|
23
|
+
'--sn-grid-size': '20px',
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
'--sn-node-bg': '#222222',
|
|
27
|
+
'--sn-node-border': 'rgba(255, 255, 255, 0.12)',
|
|
28
|
+
'--sn-node-shadow': '0 1px 4px rgba(0, 0, 0, 0.5)',
|
|
29
|
+
'--sn-shadow-color': 'rgba(0, 0, 0, 0.5)',
|
|
30
|
+
'--sn-node-header-bg': '#252525',
|
|
31
|
+
'--sn-node-selected': '#d4a04a',
|
|
32
|
+
'--sn-node-hover': '#2d2d2d',
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
'--sn-font': "'Inter', sans-serif",
|
|
36
|
+
'--sn-text': '#e0e0e0',
|
|
37
|
+
'--sn-text-dim': '#888888',
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
'--sn-socket-size': '10px',
|
|
41
|
+
'--sn-socket-border-width': '2px',
|
|
42
|
+
|
|
43
|
+
|
|
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
|
+
|
|
51
|
+
'--sn-conn-dot-fill': '#c87533',
|
|
52
|
+
'--sn-conn-dot-stroke': '#222222',
|
|
53
|
+
'--sn-conn-dot-stroke-width': 'var(--sn-socket-border-width)',
|
|
54
|
+
'--sn-conn-dot-r': 'calc((var(--sn-socket-size) + var(--sn-conn-dot-stroke-width)) / 2)',
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
'--sn-frame-border-style': 'dashed',
|
|
58
|
+
'--sn-frame-border-width': '1px',
|
|
59
|
+
'--sn-frame-radius': '6px',
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
'--sn-cat-server': '#c87533',
|
|
63
|
+
'--sn-cat-instance': '#4caf50',
|
|
64
|
+
'--sn-cat-control': '#d4a04a',
|
|
65
|
+
'--sn-cat-data': '#5c8dbf',
|
|
66
|
+
'--sn-cat-default': '#555555',
|
|
67
|
+
'--sn-subgraph-accent': 'var(--sn-cat-data)',
|
|
68
|
+
|
|
69
|
+
'--sn-cat-directory': '#f0b840',
|
|
70
|
+
'--sn-cat-file': '#5cb8ff',
|
|
71
|
+
'--sn-cat-function': '#4ade80',
|
|
72
|
+
'--sn-cat-class': '#a78bfa',
|
|
73
|
+
'--sn-cat-module': '#ff6b9d',
|
|
74
|
+
'--sn-cat-asset': '#8b8b8b',
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
'--sn-ctx-bg': '#2a2a2a',
|
|
78
|
+
'--sn-ctx-border': 'rgba(255, 255, 255, 0.1)',
|
|
79
|
+
'--sn-ctx-color': '#e0e0e0',
|
|
80
|
+
'--sn-ctx-hover': 'rgba(200, 117, 51, 0.15)',
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
'--sn-comment-bg': 'rgba(255, 255, 255, 0.03)',
|
|
84
|
+
'--sn-comment-border': 'rgba(255, 255, 255, 0.06)',
|
|
85
|
+
'--sn-comment-radius': '2px',
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
'--sn-toolbar-bg': 'rgba(34, 34, 34, 0.95)',
|
|
89
|
+
'--sn-toolbar-border': 'rgba(255, 255, 255, 0.08)',
|
|
90
|
+
'--sn-toolbar-color': '#888888',
|
|
91
|
+
'--sn-toolbar-hover': 'rgba(200, 117, 51, 0.18)',
|
|
92
|
+
'--sn-toolbar-active': '#e0e0e0',
|
|
93
|
+
'--sn-toolbar-danger': 'rgba(244, 67, 54, 0.22)',
|
|
94
|
+
'--sn-toolbar-danger-color': '#f44336',
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
'--sn-shape-fill': 'var(--sn-node-bg)',
|
|
98
|
+
'--sn-shape-stroke': 'var(--sn-node-border)',
|
|
99
|
+
'--sn-shape-stroke-width': '0.5',
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
'--sn-danger-color': '#f44336',
|
|
103
|
+
'--sn-success-color': '#4caf50',
|
|
104
|
+
'--sn-warning-color': '#ff9800',
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
'--sn-hue-base': '0',
|
|
108
|
+
'--sn-hue-accent': '28',
|
|
109
|
+
'--sn-hue-success': '122',
|
|
110
|
+
'--sn-hue-warning': '36',
|
|
111
|
+
'--sn-hue-danger': '4',
|
|
112
|
+
'--sn-hue-data': '210',
|
|
113
|
+
'--sn-sat': '0%',
|
|
114
|
+
'--sn-sat-vivid': '50%',
|
|
115
|
+
'--sn-sat-muted': '0%',
|
|
116
|
+
'--sn-lit-bg': '10%',
|
|
117
|
+
'--sn-lit-surface': '13%',
|
|
118
|
+
'--sn-lit-border': '17%',
|
|
119
|
+
'--sn-lit-hover': '18%',
|
|
120
|
+
'--sn-lit-text': '88%',
|
|
121
|
+
'--sn-lit-text-dim': '53%',
|
|
122
|
+
'--sn-lit-accent': '55%',
|
|
123
|
+
'--sn-alpha-overlay': '0.95',
|
|
124
|
+
'--sn-alpha-subtle': '0.12',
|
|
125
|
+
'--sn-alpha-faint': '0.04',
|
|
126
|
+
},
|
|
127
|
+
|
|
128
|
+
|
|
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,138 @@
|
|
|
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 let SYNTHWAVE = {
|
|
12
|
+
name: 'synthwave',
|
|
13
|
+
tokens: {
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
'--sn-hue-base': '270',
|
|
17
|
+
'--sn-hue-accent': '300',
|
|
18
|
+
'--sn-hue-success': '180',
|
|
19
|
+
'--sn-hue-warning': '60',
|
|
20
|
+
'--sn-hue-danger': '0',
|
|
21
|
+
'--sn-hue-data': '300',
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
'--sn-sat': '45%',
|
|
25
|
+
'--sn-sat-vivid': '100%',
|
|
26
|
+
'--sn-sat-muted': '25%',
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
'--sn-lit-bg': '6%',
|
|
30
|
+
'--sn-lit-surface': '12%',
|
|
31
|
+
'--sn-lit-border': '25%',
|
|
32
|
+
'--sn-lit-hover': '32%',
|
|
33
|
+
'--sn-lit-text': '88%',
|
|
34
|
+
'--sn-lit-text-dim': '48%',
|
|
35
|
+
'--sn-lit-accent': '55%',
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
'--sn-alpha-overlay': '0.92',
|
|
39
|
+
'--sn-alpha-subtle': '0.2',
|
|
40
|
+
'--sn-alpha-faint': '0.08',
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
'--sn-danger-color': 'hsl(var(--sn-hue-danger), var(--sn-sat-vivid), var(--sn-lit-accent))',
|
|
44
|
+
'--sn-success-color': 'hsl(var(--sn-hue-success), var(--sn-sat-vivid), var(--sn-lit-accent))',
|
|
45
|
+
'--sn-warning-color': 'hsl(var(--sn-hue-warning), var(--sn-sat-vivid), var(--sn-lit-accent))',
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
'--sn-bg': 'hsl(var(--sn-hue-base), var(--sn-sat), var(--sn-lit-bg))',
|
|
49
|
+
'--sn-grid-dot': 'hsla(var(--sn-hue-accent), var(--sn-sat-vivid), 50%, var(--sn-alpha-faint))',
|
|
50
|
+
'--sn-grid-size': '24px',
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
'--sn-node-bg': 'hsl(var(--sn-hue-base), var(--sn-sat), var(--sn-lit-surface))',
|
|
54
|
+
'--sn-node-border': 'hsl(var(--sn-hue-base), var(--sn-sat-muted), var(--sn-lit-border))',
|
|
55
|
+
'--sn-node-radius': '12px',
|
|
56
|
+
'--sn-node-shadow': '0 4px 20px hsla(var(--sn-hue-base), var(--sn-sat-vivid), 50%, 0.2)',
|
|
57
|
+
'--sn-shadow-color': 'hsla(var(--sn-hue-base), var(--sn-sat-vivid), 50%, 0.2)',
|
|
58
|
+
'--sn-node-selected': 'hsl(var(--sn-hue-accent), var(--sn-sat-vivid), 50%)',
|
|
59
|
+
'--sn-node-hover': 'hsl(var(--sn-hue-base), var(--sn-sat-muted), var(--sn-lit-hover))',
|
|
60
|
+
'--sn-node-header-bg': 'hsl(var(--sn-hue-base), var(--sn-sat), 9%)',
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
'--sn-font': "'Space Grotesk', sans-serif",
|
|
64
|
+
'--sn-text': 'hsl(var(--sn-hue-base), 30%, var(--sn-lit-text))',
|
|
65
|
+
'--sn-text-dim': 'hsl(var(--sn-hue-base), 20%, var(--sn-lit-text-dim))',
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
'--sn-socket-size': '14px',
|
|
69
|
+
'--sn-socket-border-width': '2px',
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
'--sn-conn-color': 'hsl(var(--sn-hue-accent), var(--sn-sat-vivid), 50%)',
|
|
73
|
+
'--sn-conn-width': '2.5',
|
|
74
|
+
'--sn-conn-selected': 'hsl(var(--sn-hue-success), var(--sn-sat-vivid), 50%)',
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
'--sn-cat-server': 'hsl(340, 100%, 70%)',
|
|
78
|
+
'--sn-cat-instance': 'hsl(var(--sn-hue-success), var(--sn-sat-vivid), 50%)',
|
|
79
|
+
'--sn-cat-control': 'hsl(var(--sn-hue-warning), var(--sn-sat-vivid), 50%)',
|
|
80
|
+
'--sn-cat-data': 'hsl(var(--sn-hue-data), var(--sn-sat-vivid), 50%)',
|
|
81
|
+
'--sn-cat-default': 'hsl(var(--sn-hue-base), 20%, var(--sn-lit-text-dim))',
|
|
82
|
+
'--sn-subgraph-accent': 'var(--sn-cat-data)',
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
'--sn-ctx-bg': 'hsl(var(--sn-hue-base), var(--sn-sat), var(--sn-lit-surface))',
|
|
86
|
+
'--sn-ctx-border': 'hsl(var(--sn-hue-base), var(--sn-sat-muted), var(--sn-lit-border))',
|
|
87
|
+
'--sn-ctx-color': 'hsl(var(--sn-hue-base), 30%, var(--sn-lit-text))',
|
|
88
|
+
'--sn-ctx-hover':
|
|
89
|
+
'hsla(var(--sn-hue-accent), var(--sn-sat-vivid), 50%, var(--sn-alpha-subtle))',
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
'--sn-comment-bg': 'hsla(var(--sn-hue-accent), var(--sn-sat-vivid), 50%, 0.05)',
|
|
93
|
+
'--sn-comment-border': 'hsla(var(--sn-hue-accent), var(--sn-sat-vivid), 50%, 0.15)',
|
|
94
|
+
'--sn-comment-radius': '8px',
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
'--sn-toolbar-bg':
|
|
98
|
+
'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':
|
|
104
|
+
'hsla(var(--sn-hue-danger), var(--sn-sat-vivid), var(--sn-lit-accent), 0.25)',
|
|
105
|
+
'--sn-toolbar-danger-color': 'hsl(var(--sn-hue-danger), 80%, 60%)',
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
'--sn-shape-fill': 'var(--sn-node-bg)',
|
|
109
|
+
'--sn-shape-stroke': 'var(--sn-node-border)',
|
|
110
|
+
'--sn-shape-stroke-width': '0.4',
|
|
111
|
+
},
|
|
112
|
+
};
|
|
113
|
+
|
|
114
|
+
/** @type {import('./Palette.js').PaletteDefinition} */
|
|
115
|
+
export let SYNTHWAVE_PALETTE = {
|
|
116
|
+
name: 'synthwave',
|
|
117
|
+
colors: {
|
|
118
|
+
'--sn-hue-base': '270',
|
|
119
|
+
'--sn-hue-accent': '300',
|
|
120
|
+
'--sn-hue-success': '180',
|
|
121
|
+
'--sn-hue-warning': '60',
|
|
122
|
+
'--sn-hue-danger': '0',
|
|
123
|
+
'--sn-hue-data': '300',
|
|
124
|
+
'--sn-sat': '45%',
|
|
125
|
+
'--sn-sat-vivid': '100%',
|
|
126
|
+
'--sn-sat-muted': '25%',
|
|
127
|
+
'--sn-lit-bg': '6%',
|
|
128
|
+
'--sn-lit-surface': '12%',
|
|
129
|
+
'--sn-lit-border': '25%',
|
|
130
|
+
'--sn-lit-hover': '32%',
|
|
131
|
+
'--sn-lit-text': '88%',
|
|
132
|
+
'--sn-lit-text-dim': '48%',
|
|
133
|
+
'--sn-lit-accent': '55%',
|
|
134
|
+
'--sn-alpha-overlay': '0.92',
|
|
135
|
+
'--sn-alpha-subtle': '0.2',
|
|
136
|
+
'--sn-alpha-faint': '0.08',
|
|
137
|
+
},
|
|
138
|
+
};
|
package/tokens/base.json
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://design-tokens.github.io/community-group/format/",
|
|
3
|
+
"color": {
|
|
4
|
+
"background": { "$type": "color", "$value": "var(--sn-bg)" },
|
|
5
|
+
"surface": { "$type": "color", "$value": "var(--sn-node-bg)" },
|
|
6
|
+
"border": { "$type": "color", "$value": "var(--sn-node-border)" },
|
|
7
|
+
"text": { "$type": "color", "$value": "var(--sn-text)" },
|
|
8
|
+
"textDim": { "$type": "color", "$value": "var(--sn-text-dim)" },
|
|
9
|
+
"accent": { "$type": "color", "$value": "var(--sn-node-selected)" },
|
|
10
|
+
"success": { "$type": "color", "$value": "var(--sn-success-color)" },
|
|
11
|
+
"warning": { "$type": "color", "$value": "var(--sn-warning-color)" },
|
|
12
|
+
"danger": { "$type": "color", "$value": "var(--sn-danger-color)" }
|
|
13
|
+
},
|
|
14
|
+
"size": {
|
|
15
|
+
"grid": { "$type": "dimension", "$value": "var(--sn-grid-size)" },
|
|
16
|
+
"socket": { "$type": "dimension", "$value": "var(--sn-socket-size)" },
|
|
17
|
+
"socketBorder": { "$type": "dimension", "$value": "var(--sn-socket-border-width)" }
|
|
18
|
+
},
|
|
19
|
+
"radius": {
|
|
20
|
+
"node": { "$type": "dimension", "$value": "var(--sn-node-radius)" },
|
|
21
|
+
"comment": { "$type": "dimension", "$value": "var(--sn-comment-radius)" }
|
|
22
|
+
},
|
|
23
|
+
"shadow": {
|
|
24
|
+
"node": { "$type": "shadow", "$value": "var(--sn-node-shadow)" }
|
|
25
|
+
},
|
|
26
|
+
"font": {
|
|
27
|
+
"family": { "$type": "fontFamily", "$value": "var(--sn-font)" }
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "carbon",
|
|
3
|
+
"extends": "../base.json",
|
|
4
|
+
"color": {
|
|
5
|
+
"background": { "$type": "color", "$value": "hsl(220, 13%, 9%)" },
|
|
6
|
+
"surface": { "$type": "color", "$value": "hsl(220, 13%, 14%)" },
|
|
7
|
+
"border": { "$type": "color", "$value": "hsl(220, 10%, 24%)" },
|
|
8
|
+
"text": { "$type": "color", "$value": "hsl(210, 16%, 92%)" },
|
|
9
|
+
"accent": { "$type": "color", "$value": "hsl(196, 100%, 55%)" }
|
|
10
|
+
}
|
|
11
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "dark",
|
|
3
|
+
"extends": "../base.json",
|
|
4
|
+
"color": {
|
|
5
|
+
"background": { "$type": "color", "$value": "hsl(230, 30%, 12%)" },
|
|
6
|
+
"surface": { "$type": "color", "$value": "hsl(230, 30%, 18%)" },
|
|
7
|
+
"border": { "$type": "color", "$value": "hsl(230, 15%, 22%)" },
|
|
8
|
+
"text": { "$type": "color", "$value": "hsl(230, 15%, 89%)" },
|
|
9
|
+
"textDim": { "$type": "color", "$value": "hsl(230, 15%, 63%)" },
|
|
10
|
+
"accent": { "$type": "color", "$value": "hsl(215, 60%, 65%)" }
|
|
11
|
+
}
|
|
12
|
+
}
|