← ClaudeAtlas

obsidian-graph-colorslisted

Apply color groups to Obsidian's graph view so each topic branch has a distinct color. Use when the user says "color the graph", "graph colors", "update graph colors", "add topic color", or after creating new topic folders that need a color assignment.
odere-pro/claude-wiki-pages-plugin · ★ 1 · AI & Automation · score 60
Install: claude install-skill odere-pro/claude-wiki-pages-plugin
# Graph Colors Apply per-topic color groups to the Obsidian graph view using the internal graph plugin API via `obsidian eval`. ## How it works Obsidian's graph view supports **color groups** — search queries paired with colors. Notes matching a query render in that color. Groups are matched top-down (first match wins), so more specific paths must come before less specific ones. The API path: ``` app.internalPlugins.plugins['graph'].instance.options.colorGroups ``` ## Workflow ### 1. Discover topic folders ```bash find vault/wiki -mindepth 1 -maxdepth 1 -type d | sort ``` Also find subtopic folders (depth 2) that warrant their own color: ```bash find vault/wiki -mindepth 2 -maxdepth 2 -type d -not -path '*/_sources' -not -path '*/_synthesis' | sort ``` ### 2. Read current color groups ```bash obsidian eval code="JSON.stringify(app.internalPlugins.plugins['graph'].instance.options.colorGroups, null, 2)" ``` ### 3. Build the color palette Assign a unique color to each topic branch. Use this default palette for consistency — extend it when more topics are added: | Index | Hex | RGB int | Use for | | ----- | ------- | -------- | --------------------------------- | | 0 | #3498DB | 3447003 | 1st subtopic (blue) | | 1 | #FFA500 | 16750848 | 2nd subtopic (orange) | | 2 | #A020F0 | 10494192 | 3rd subtopic (purple) | | 3 | #57E567 | 5763719 | parent topic (green) | | 4