# Customize Graph node appearance via YAML frontmatter

**URL:** <https://forum.obsidian.md/t/customize-graph-node-appearance-via-yaml-frontmatter/5402>\
**Category:** Feature requests\
**Tags:** graph-view\
**Created:** [September 8, 2020, 7:46am UTC](https://forum.obsidian.md/t/customize-graph-node-appearance-via-yaml-frontmatter/5402 "2020-09-08T07:46:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![thek3nger](https://forum.obsidian.md/user_avatar/forum.obsidian.md/thek3nger/32/312_2.png) [@thek3nger](https://forum.obsidian.md/u/thek3nger)\
**Post date:** [September 8, 2020, 7:46am UTC](https://forum.obsidian.md/t/customize-graph-node-appearance-via-yaml-frontmatter/5402/1 "2020-09-08T07:46:00Z")

</div>

Now that Obsidian supports a YAML frontmatter, I thought it would be cool if we could use it to customize the appearance of the note’s appearance in Graph View.

For instance, imagine I have a MOC note for currently on going projects. I would like to have this note to stand out in the Graph View, for instance, by having this note’s node colored red in the Graph View. I could write something on the frontmatter like:

```auto
---
node_color: #FF0000
---

```

And Obsidian will fill this node with a bright red. Similarly, we could have a `graph_hidden: true` to hide the node from Graph View. You get the idea.

---

<div class="post-metadata">

**Author:** ![haiku](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/h/edb3f5/32.png) [@haiku](https://forum.obsidian.md/u/haiku)\
**Post date:** [November 25, 2020, 5:27pm UTC](https://forum.obsidian.md/t/customize-graph-node-appearance-via-yaml-frontmatter/5402/2 "2020-11-25T17:27:34Z")

</div>

I had the same idea as thek3nger, using YAML frontmatter to condition appearances in the graph view. The above post was written a while ago and no one has replied, is there good reason for this approach to be discounted, or is it addressed elsewhere?

In addition, I thought you could also apply special conditions to the forces and display settings that certain nodes exerted. For example something like:

node\_repelforce: 0.75 global setting  
node\_size: 2 x global setting

---

<div class="post-metadata">

**Author:** ![lcp27](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/l/f6c823/32.png) [@lcp27](https://forum.obsidian.md/u/lcp27)\
**Post date:** [November 28, 2020, 11:44am UTC](https://forum.obsidian.md/t/customize-graph-node-appearance-via-yaml-frontmatter/5402/3 "2020-11-28T11:44:02Z")

</div>

Yeah, this feature would also be a game-changer for me!

---

<div class="post-metadata">

**Author:** ![DandyLyons](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/d/48db29/32.png) [@DandyLyons](https://forum.obsidian.md/u/DandyLyons)\
**Post date:** [December 18, 2020, 8:45pm UTC](https://forum.obsidian.md/t/customize-graph-node-appearance-via-yaml-frontmatter/5402/4 "2020-12-18T20:45:15Z")

</div>

Interesting idea. What if there was a way to wrap these YAML parameters into something kind of like a CSS class? Like if we could define any note that has `#fooHashtag` also obeys our appearance customizations in the graph view.

For example, what if the UI in `Graph` had an extra dropdown menu under `Filters`, `Display`, and `Forces` called something like `Groups`.

Then within `Groups` there would be an `add Group` button. Each custom group would have a customizable “filter” like `Has Tag:`. And if it matches that filter then the group would add whatever customizable appearance changes you made like `node_color: #FF0000` You could even add multiple appearance changes to the same group. Then any note that matches that filter query (e.g. any note that has #fooHashtag) now would automatically get all of those appearance changes within the graph.
