-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Diagrams don't use theme colors #22
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: