-
-
Notifications
You must be signed in to change notification settings - Fork 41
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
Adaptive theme #27
base: master
Are you sure you want to change the base?
Adaptive theme #27
Conversation
Thanks for your contribution @s-rog ! This indeed looks great! |
@karolzak Seems like it's pretty trivial to add a default/fallback property, let me know if anything breaks! |
I assume there are style vars for these as well, but I'm not sure if you can automatically determine from from within python... maybe env vars? Or perhaps the platform can simply be user specified. |
In this stackoverflow post:
So we can have a prioritized style order according to the order on your README |
Nice, that's exactly what we need. I'll snoop around and see what kind of vars we can use on different platforms |
Can this PR be merged first with the other platforms added in subsequent PRs? |
I'm currently using the following css to make the ipyplot html match the user jupyter theme as well as make the text visible in dark themes (dracula shown below).
Before:
After:
This PR should make this the default. The only concern I have is usage outside of the jupyter environment or versions missing these vars. The above screenshots are from the latest jupyter lab 3.x, built-in dark and light modes look correct as well.