Skip to content
This repository was archived by the owner on May 7, 2026. It is now read-only.

Commit 6bc5c48

Browse files
committed
fix: Add VS Code specific CSS variables for proper dark mode support
1 parent 30d177a commit 6bc5c48

1 file changed

Lines changed: 16 additions & 7 deletions

File tree

bigframes/display/table_widget.css

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,10 @@
2626

2727
.bigframes-widget .footer {
2828
align-items: center;
29-
color: var(--colab-primary-text-color, var(--jp-ui-font-color0, black));
29+
color: var(
30+
--colab-primary-text-color,
31+
var(--jp-ui-font-color0, var(--vscode-editor-foreground, black))
32+
);
3033
display: flex;
3134
font-family:
3235
"-apple-system", "BlinkMacSystemFont", "Segoe UI", "Roboto", sans-serif;
@@ -70,14 +73,17 @@
7073

7174
.bigframes-widget table {
7275
border-collapse: collapse;
73-
color: var(--colab-primary-text-color, var(--jp-ui-font-color0, black));
76+
color: var(
77+
--colab-primary-text-color,
78+
var(--jp-ui-font-color0, var(--vscode-editor-foreground, black))
79+
);
7480
text-align: left;
7581
}
7682

7783
.bigframes-widget th {
7884
background-color: var(
7985
--colab-primary-surface-color,
80-
var(--jp-layout-color0, white)
86+
var(--jp-layout-color0, var(--vscode-editor-background, white))
8187
);
8288
padding: 0;
8389
position: sticky;
@@ -149,20 +155,23 @@
149155
.bigframes-widget td.row-hover {
150156
background-color: var(
151157
--colab-hover-surface-color,
152-
var(--jp-layout-color2, #f5f5f5)
158+
var(--jp-layout-color2, var(--vscode-list-hoverBackground, #f5f5f5))
153159
);
154160
}
155161

156162
@media (prefers-color-scheme: dark) {
157163
.bigframes-widget .footer,
158164
.bigframes-widget table {
159-
color: var(--colab-primary-text-color, var(--jp-ui-font-color0, white));
165+
color: var(
166+
--colab-primary-text-color,
167+
var(--jp-ui-font-color0, var(--vscode-editor-foreground, white))
168+
);
160169
}
161170

162171
.bigframes-widget th {
163172
background-color: var(
164173
--colab-primary-surface-color,
165-
var(--jp-layout-color0, #383838)
174+
var(--jp-layout-color0, var(--vscode-editor-background, #383838))
166175
);
167176
}
168177

@@ -180,7 +189,7 @@
180189
.bigframes-widget td.row-hover {
181190
background-color: var(
182191
--colab-hover-surface-color,
183-
var(--jp-layout-color2, #444)
192+
var(--jp-layout-color2, var(--vscode-list-hoverBackground, #444))
184193
);
185194
}
186195
}

0 commit comments

Comments
 (0)