Skip to content
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

Display style #37

Closed
psychemedia opened this issue Apr 29, 2020 · 1 comment
Closed

Display style #37

psychemedia opened this issue Apr 29, 2020 · 1 comment
Labels

Comments

@psychemedia
Copy link

The colour theme in the animation offers low contrast displays when stepping through the trace. Is there an easy way of setting background and font colours, or selecting a high contrast / websafe / colourblind safe palette?

@lgpage
Copy link
Owner

lgpage commented Jul 29, 2021

With #44 it is possible to update color variables either by adding custom css to the Jupyter folder (see https://stackoverflow.com/a/52816576) or by using the %%html magic. The variables are

%%html
<style>
:root {
  --nbt-canvas-background: #f7f7f7;
  --nbt-object-background: #ffffff;

  --nbt-frame-text: #000000;
  --nbt-frame-background: #ffffff;
  --nbt-frame-active-text: pink;
  --nbt-frame-active-background: #4682b4;

  --nbt-connector: #005566;
  --nbt-hover-text: #ffffff;
  --nbt-hover-background: #6610f2;

  --nbt-gutter-previous: #0000ff;
  --nbt-gutter-current: #008000;
  --nbt-gutter-next: #6610f2
}
</style>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants