supermemory
supermemory copied to clipboard
Make memory graph cluster colors configurable
Summary
- add
clusterColorsto the memory graph theme contract - read cluster palettes from
--graph-cluster-colorsorcolors.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.tsxbun run check-typesinpackages/memory-graphbun run testinpackages/memory-graph(172 passed)