First, search the help docs and this forum. Maybe your question has been answered! The debugging steps can help, too. Still stuck? Delete this line and proceed.
What I’m trying to do
The link color by default is purple, my color picker shows it is #8b6cef
I can change it in Settings | Appearance | Accent Color BUT if I do it also changes the interface buttons/sliders/etc.
How can I change JUST the link color and not the interface color?
That snippet worked great for me. Thanks so much @ariehen.
Not that it matters now but just for completeness sake. I did forget to mention I wanted to color the links in a dataview which your css (–link-color) does fine for me. I have it pulling characters etc for writing.
I am using the default theme in dark mode but with a lot of custom snippets including a dataview one (with color changes) from this post: css-stylesheet-for-dataview-table and wanted to make the color of the links fit better with what I chose as a background.
Example
Before:
Now:
I realize there are 2 modified columns, I am still leaning dataview and templater and other things like that.