"How to achieve" CSS code snippets

Change colour of external links and highlight not-existing notes

I only found out about CSS recently and this feature makes my notes much tidier, love it! Thanks @Klaas for this collection.

The instructions to add a CSS snipet.
However, some of it doesn’t work completly as I would wish:

  • It only works in edit mode, not view.
  • Changing the internal link colour does not seem to work the same way
.cm-s-obsidian span.cm-hmd-internal-link {
    color: #6d7df2;
}

.cm-s-obsidian span.is-unresolved {
    color: #e44949;
    opacity: 1 !important;
}
.is-unresolved::after {
  content: "⚠"; 
}

.cm-s-obsidian span.cm-link {
    color: #81f26d;
}
1 Like