r-lib / pkgdown

Generate static html documentation for an R package
https://pkgdown.r-lib.org/
Other
713 stars 335 forks source link

bslib link-color does not affect auto-links #2766

Open aravind-j opened 4 weeks ago

aravind-j commented 4 weeks ago

I am trying to customise a pkgdown site with bslib variables (https://aravind-j.github.io/rpcss/). I am able to successfully change the link colour using the variable link-color.

bslib:
  link-color: "#ff0f0f"

But none of the auto-links in the site are modified. Is this the expected behaviour ?

aravind-j commented 4 weeks ago

I was able to change the colours of the auto-links with the following scss modifiers in extra.scss.

code a {
  color: $link-color !important;
}

But now in dark-mode, it seems that link-color is modified for better contrast (via shift-color ?), but is not inherited when using scss modifiers.