You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem is that the diagrams use black as the text color — even when the background color is very dark.
The fix is simply to include a style sheet with
svgtext {
fill:var(--fg);
}
I'm not sure where the right place is to add such a CSS rule since mdbook-svgbob is a preprocessor. Perhaps it could be a style="fill: var(--fg)" attribute instead somewhere on the generated SVG?
The text was updated successfully, but these errors were encountered:
I got a PR from @nofurtherinformation to fix the diagram colors when a dark theme is used in mdbook: google/comprehensive-rust#48.
The problem is that the diagrams use black as the text color — even when the background color is very dark.
The fix is simply to include a style sheet with
I'm not sure where the right place is to add such a CSS rule since
mdbook-svgbob
is a preprocessor. Perhaps it could be astyle="fill: var(--fg)"
attribute instead somewhere on the generated SVG?The text was updated successfully, but these errors were encountered: