Open cpcloud opened 10 months ago
Was able to work around this with some SCSS in our theme-dark.scss
stylesheet.
Were you running a custom theme or one of our dark themes?
These are our current theme settings in _quarto.yml
:
format:
html:
theme:
light: [flatly, theme-light.scss]
dark: [darkly, theme-dark.scss]
With the contents of those files as:
❯ git show upstream/main:docs/theme-light.scss
/*-- scss:rules --*/
.quarto-title-banner .quarto-title .title {
color: #ccd1d5;
}
and
❯ git show upstream/main:docs/theme-dark.scss
/*-- scss:defaults --*/
$code-color: #c2d94c;
/*-- scss:defaults --*/
$code-color: #c2d94c;
That's the problem here, that's a light color. You shouldn't use light color there (because the background is still light)
But that's only set for light mode, or at least that is my mental model of how that works.
From reading your comment above, it looks like that is only being set for dark mode (e.g. since it is included in the scss
file customizing the dark theme). I could be misreading...
But that's only set for light mode, or at least that is my mental model of how that works.
You have this: dark: [darkly, theme-dark.scss]
, right?
I believe so: https://github.com/ibis-project/ibis/blob/main/docs/_quarto.yml#L178-L180
format:
html:
theme:
light: [flatly, theme-light.scss]
dark: [darkly, theme-dark.scss]
Bug description
When using quarto 1.4.549 to build the ibis docs, the background color for fixed width fonts seems to have changed and is now very difficult to read given the theme's foreground font color of light green:
That is coming from https://pr-8201-5e936835c5e37b050988a413c3330d9a96d2d324--ibis-quarto.netlify.app/backends/bigquery which is in a PR: https://github.com/ibis-project/ibis/pull/8201
With the current website, built with quarto 1.4.339: https://ibis-project.org/backends/bigquery
Steps to reproduce
Hopefully the PR and links are enough to reproduce, but let me know if they aren't!
Expected behavior
I would not have expected these colors to change between versions.
Actual behavior
See above.
Your environment
Quarto check output
Quarto check for the PR (1.4.549)
Quarto check for ibis@main (1.4.339)