How to change the link color that has not been hovered over? #8390
-
I was looking into tweaking the default dark theme colors for our own use. Everything else is working by setting the corresponding color variable defined in this file. But I was stuck while trying to change the "background" link (i.e. the link that has not been hovered by the cursor) colors. For example, this is the color (light blue) of a link while it has not been hovered by a cursor: Which color variable controls each link color? Thank you! P.S. I've tried |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hello @Guangzhen-Jin, ![]() ![]() |
Beta Was this translation helpful? Give feedback.
Yes, you're correct, thanks for pointing this out.
The SCSS for this specific scheme color is scoped to the primary color too. So in the inspector it's shown that the applied override is crossed off. And this selector for the color definition has higher Specificity,
[data-md-color-scheme="slate"][data-md-color-primary="black"]
. You can add one more attribute without a value to override it properly.