I’ve created these two CSS snippets.
They do work, but I’m a noob to both CSS and Obsidian theming. Not sure if these are the best/proper ways to achieve these changes. Not sure I’m selecting only the necessary and sufficient classes, etc.
Can you let me know if there are any mistakes or redundancies, and if so, what I did wrong? I’d like to make sure I’m doing this right before I create more snippets.
Thank you!!
1. Change the color of links in highlighted (==) text
.cm-s-obsidian span.cm-highlight .cm-s-obsidian span.cm-link, .cm-s-obsidian span.cm-hmd-internal-link {
color: rgba(21, 146, 255, 1);
}
2. Change the highlight color of searched text
.cm-s-obsidian span.obsidian-search-match-highlight {
background-color: rgba(233, 45, 228, 0.3);
}
Btw, I think these would be relatively uncontroversial, clear improvements to the default theme. I’ve previously suggested both but nothing came of it: