Skip to content

Commit 69548df

Browse files
authored
support darkmode (#4036)
* support darkmode but in vscode only * remove unused space * support colab (maybe) and whatsnew
1 parent 0e43ba9 commit 69548df

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

doc/whats-new.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,9 @@ New Features
7373

7474
Bug fixes
7575
~~~~~~~~~
76-
- ``ValueError`` is raised when ``fill_value`` is not a scalar in :py:meth:`full_like`. (:issue`3977`)
76+
- Support dark mode in VS code (:issue:`4024`)
77+
By `Keisuke Fujii <https://github.com/fujiisoup>`_.
78+
- ``ValueError`` is raised when ``fill_value`` is not a scalar in :py:meth:`full_like`. (:issue:`3977`)
7779
By `Huite Bootsma <https://github.com/huite>`_.
7880
- Fix wrong order in converting a ``pd.Series`` with a MultiIndex to ``DataArray``. (:issue:`3951`)
7981
By `Keisuke Fujii <https://github.com/fujiisoup>`_.

xarray/static/css/style.css

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,18 @@
1313
--xr-background-color-row-odd: var(--jp-layout-color2, #eeeeee);
1414
}
1515

16+
html[theme=dark],
17+
body.vscode-dark {
18+
--xr-font-color0: rgba(255, 255, 255, 1);
19+
--xr-font-color2: rgba(255, 255, 255, 0.54);
20+
--xr-font-color3: rgba(255, 255, 255, 0.38);
21+
--xr-border-color: #1F1F1F;
22+
--xr-disabled-color: #515151;
23+
--xr-background-color: #111111;
24+
--xr-background-color-row-even: #111111;
25+
--xr-background-color-row-odd: #313131;
26+
}
27+
1628
.xr-wrap {
1729
min-width: 300px;
1830
max-width: 700px;

0 commit comments

Comments
 (0)