GOOSE
March 10, 2022, 7:27pm
#1
Hello
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?
Angel
March 10, 2022, 7:46pm
#2
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
GOOSE
March 10, 2022, 8:07pm
#3
Ahh thank you so much Angel 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!
Angel
March 10, 2022, 8:11pm
#4
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
system
closed
March 17, 2022, 8:11pm
#5
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.