Skip to content

Graphs that teach > graphs that impress. Turn any code into an interactive knowledge graph you can explore, search, and ask questions about. Works with Claude Code, Codex, Cursor, Copilot, Gemini CLI, and more.

feat(dashboard): node colors for design node types

gruming12dfa20f539c
diff --git a/understand-anything-plugin/packages/dashboard/src/components/CustomNode.tsx b/understand-anything-plugin/packages/dashboard/src/components/CustomNode.tsx
index 5dffd2df..a0f8ca20 100644
--- a/understand-anything-plugin/packages/dashboard/src/components/CustomNode.tsx
+++ b/understand-anything-plugin/packages/dashboard/src/components/CustomNode.tsx
@@ -27,6 +27,12 @@ const typeColors: Record<NodeType, string> = {
topic: "var(--color-node-topic)",
claim: "var(--color-node-claim)",
source: "var(--color-node-source)",
+ page: "var(--color-node-concept)",
+ screen: "var(--color-node-service)",
+ component: "var(--color-node-class)",
+ componentSet: "var(--color-node-module)",
+ instance: "var(--color-node-function)",
+ token: "var(--color-node-config)",
};
const typeTextColors: Record<NodeType, string> = {
@@ -51,6 +57,12 @@ const typeTextColors: Record<NodeType, string> = {
topic: "text-node-topic",
claim: "text-node-claim",
source: "text-node-source",
+ page: "text-node-concept",
+ screen: "text-node-service",
+ component: "text-node-class",
+ componentSet: "text-node-module",
+ instance: "text-node-function",
+ token: "text-node-config",
};
const complexityColors: Record<string, string> = {