-
Notifications
You must be signed in to change notification settings - Fork 0
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
how to make colors work with theme switching #2
Comments
Those are virtually impossible to handle in BookML, because LaTeXML uses inline CSS for those colours. I'll try to intercept some of the inline CSS in XSLT and replace it with classes, but only in fairly generic cases (e.g. recognise black/white colour, border, background). Best I can suggest is to attach an extra class to your frame using |
That's what I though to to (ie don't set the color in LaTeX but attach a class to the right thing) but I was wondering if it's documented somewhere (maybe in bookdown?) what the CSS should look like so it will properly invert. Say, if I say in CSS |
You'll have to provide additional styles for when the Lines 100 to 108 in 38c6174
BookML applies filters only to images and to elements that have an explicit |
Major changes - compute colors for sepia and dark mode (fix #2)
Major changes - compute colors for sepia and dark mode (fix #2)
Major changes - compute colors for sepia and dark mode (fix #2)
I couldn't figure out how I'd have to provide color information in the LaTeX source and/or added/custom CSS to make sure they work properly in night mode. Two examples:
framed.sty
's environmentshaded
with a light background shade. In night mode the text inverts but the shade stays the same.\fbox
stays black in night mode.The text was updated successfully, but these errors were encountered: