Skip to content

Commit

Permalink
support darkmode (pydata#4036)
Browse files Browse the repository at this point in the history
* support darkmode but in vscode only

* remove unused space

* support colab (maybe) and whatsnew
  • Loading branch information
fujiisoup committed May 7, 2020
1 parent 0e43ba9 commit 69548df
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
4 changes: 3 additions & 1 deletion doc/whats-new.rst
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,9 @@ New Features

Bug fixes
~~~~~~~~~
- ``ValueError`` is raised when ``fill_value`` is not a scalar in :py:meth:`full_like`. (:issue`3977`)
- Support dark mode in VS code (:issue:`4024`)
By `Keisuke Fujii <https://github.com/fujiisoup>`_.
- ``ValueError`` is raised when ``fill_value`` is not a scalar in :py:meth:`full_like`. (:issue:`3977`)
By `Huite Bootsma <https://github.com/huite>`_.
- Fix wrong order in converting a ``pd.Series`` with a MultiIndex to ``DataArray``. (:issue:`3951`)
By `Keisuke Fujii <https://github.com/fujiisoup>`_.
Expand Down
12 changes: 12 additions & 0 deletions xarray/static/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,18 @@
--xr-background-color-row-odd: var(--jp-layout-color2, #eeeeee);
}

html[theme=dark],
body.vscode-dark {
--xr-font-color0: rgba(255, 255, 255, 1);
--xr-font-color2: rgba(255, 255, 255, 0.54);
--xr-font-color3: rgba(255, 255, 255, 0.38);
--xr-border-color: #1F1F1F;
--xr-disabled-color: #515151;
--xr-background-color: #111111;
--xr-background-color-row-even: #111111;
--xr-background-color-row-odd: #313131;
}

.xr-wrap {
min-width: 300px;
max-width: 700px;
Expand Down

0 comments on commit 69548df

Please sign in to comment.