Change graph text colour with tags

I would like to change the colour of my graph view’s text for spoiler tags

Hi, I have been looking to make an obsidian for a D&D campaign, and for the prospect of sharing screenshots of my graph with my players, I was looking for a way to make the text colour match the background colour, where there’s already support for changing the node colour.

The goal is to be able to tag something with #spoiler and to make the text of the node match the graph background or to be blacked out with css properties. I’m not opposed to learning other methods or downloading any plugins that have already solved this, but I’d prefer CSS if only for posterity’s sake.

Things I have tried

color: #2a2a2a;

This changed the text colour for all of the nodes, but I’d like for there to be a mix of visible and invisible text.

color: #2a2a2a;

I tried referencing a previous thread about changing components in the graph view, but to no avail. I believe this syntax is only available for changing the node colour.

.graph-view.color-text .tag[href=“#spoiler”]{
color: #2a2a2a;

This one is based on a thread where you could change the view mode colour of tags, and also didn’t work for graph mode.

Hi spoony0board,
Any chance you found a solution to your problem ? I’m trying to solve it too.

I tried targeting the notes I want to see with a custom text color in graph using frontmatter, but without success either :frowning:

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.