supermemory icon indicating copy to clipboard operation
supermemory copied to clipboard

Make memory graph cluster colors configurable

Open advaitpaliwal opened this issue 5 months ago • 0 comments

Summary

  • add clusterColors to the memory graph theme contract
  • read cluster palettes from --graph-cluster-colors or colors.clusterColors
  • use the configured palette for node cluster assignment and legend swatches

Why

Consumers can already override most graph colors through CSS variables or the colors prop, but cluster colors were still hard-coded in graph data and legend rendering. This lets host apps fully align the graph palette without patching package internals.

Validation

  • bunx biome check packages/memory-graph/src/types.ts packages/memory-graph/src/constants.ts packages/memory-graph/src/hooks/use-graph-theme.ts packages/memory-graph/src/hooks/use-graph-data.ts packages/memory-graph/src/components/legend.tsx
  • bun run check-types in packages/memory-graph
  • bun run test in packages/memory-graph (172 passed)

advaitpaliwal avatar Jun 25 '26 02:06 advaitpaliwal