Skip to content

Jupyter Notebook theming is not responsive to auto setting #790

Discussion options

You must be logged in to vote

A patch for this is given in this comment. Copied the text below:

It is not the prettiest solution, since it requires redefining the xarray theme variables in the body tag, since "dark_css_variables" in the config only sets the variables in the body:

body {
  --xr-font-color0: var(--jp-content-font-color0, rgba(0, 0, 0, 1));
  --xr-font-color2: var(--jp-content-font-color2, rgba(0, 0, 0, 0.54));
  --xr-font-color3: var(--jp-content-font-color3, rgba(0, 0, 0, 0.38));
  --xr-border-color: var(--jp-border-color2, #e0e0e0);
  --xr-disabled-color: var(--jp-layout-color3, #bdbdbd);
  --xr-background-color: var(--jp-layout-color0, white);
  --xr-background-color-row-even: var(--jp-layout-color1,…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@pradyunsg
Comment options

Answer selected by pradyunsg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants