Skip to content

Commit fb28303

Browse files
authored
Revert "Fix bug in polyfill + change terminal color" (codesandbox#3581)
This reverts commit 5b29fce.
1 parent 5b29fce commit fb28303

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

packages/common/src/themes/codesandbox-black.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ const colors = {
250250
unfocusedInactiveForeground: tokens.grays[400],
251251
},
252252
terminal: {
253-
background: tokens.grays[700],
253+
background: tokens.grays[900],
254254
foreground: tokens.white,
255255
ansiBrightBlack: tokens.blues[700],
256256
ansiBrightRed: tokens.reds[500],

packages/components/src/utils/polyfill-theme.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,8 @@ const polyfillTheme = vsCodeTheme => {
4040

4141
const type = vsCodeTheme.type || guessType(vsCodeTheme);
4242

43-
// Step 0: Clone theme to make sure we don't modify the source
44-
const clonedVsCodeTheme = deepmerge({ colors: {} }, vsCodeTheme.colors || {});
45-
4643
// Step 1: Initialise with vscode theme
47-
const vsCodeColors = dot.object(clonedVsCodeTheme.colors);
44+
const vsCodeColors = dot.object(vsCodeTheme.colors || {});
4845
uiColors = deepmerge(uiColors, vsCodeColors);
4946

5047
// Step 2: Fill missing values from existing values or codesandbox dark/light
@@ -165,7 +162,6 @@ const polyfillTheme = vsCodeTheme => {
165162
selectedForeground: uiColors.sideBar.foreground,
166163
inactiveForeground: mutedForeground,
167164
hoverBackground: uiColors.sideBar.border,
168-
border: uiColors.sideBar.border,
169165
},
170166
avatar: { border: uiColors.sideBar.border },
171167
sideBar: { hoverBackground: uiColors.sideBar.border },

0 commit comments

Comments
 (0)