How to remove underline in links?

Didn’t see much about this for post-1.0 Obsidian.

What I’m trying to do

ITT, I plan to have links highlighted only by accent color. Underlines are too distracting.


What theme do you use?

A customized version of Typewriter. There’s no style settings, so I’d like to know how to do this via CSS.

This seems to work:

.theme-light, .theme-dark {
  --link-decoration: none;
  --link-decoration-hover: none;
  /* --link-external-decoration: underline; 
  --link-external-decoration-hover: underline; */
1 Like

That did the trick, thanks!

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