Editor mode wiki link colour

Hello :slight_smile:

I’m trying to change my internal link colour in editor mode (I managed to change it in preview mode already) because I can hardly see the dark link colours.

I’m new to this and I’ve patched together this attempt from various sources:

/********* CHANGING EDITOR MODE LINK COLOURS **********/

}

.cm-s-obsidian span.cm-link {
  color: #cd071e;
}

.cm-s-obsidian span.cm-hmd-internal-link {
  color: #cd071e;
}

It doesn’t seem to be working…

What am I doing wrong?

The following works in my vault. Different themes might behave differently.

```CSS
/* << EDITING link color INTERNAL >>  */
.cm-s-obsidian span.cm-hmd-internal-link {
  font-weight: 400;
  color: var(--linkpink)  !important;
}

/* << READING link color INTERNAL >>  */
.markdown-preview-view .internal-link {
  font-weight: 400;
  color: var(--linkpink)  !important;
}
```

Angel

2 Likes

Ahh thank you so much Angel :slight_smile: I can read my links!

With a little blind fiddling that worked in my editor too. For some reason I had to take out “(–linkpink)”, I have no idea why:

.cm-s-obsidian span.cm-hmd-internal-link {
  font-weight: 400;
  color: #3399ff  !important;
}

Thank you so much for your knowledge! :beers:

Welcome.

Yes, you would need to customise the colour (get rid of my one) to get the code you want. Glad to hear it is working as you need it to.

Joy.

Angel

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