Skip to content

Commit 645d2bb

Browse files
authored
write black theme as well (codesandbox#3608)
1 parent e9ced17 commit 645d2bb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

packages/app/src/app/overmind/effects/vscode/initializers.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import codeSandboxTheme from '@codesandbox/common/lib/themes/codesandbox.json';
2+
import codeSandboxBlackTheme from '@codesandbox/common/lib/themes/codesandbox-black';
23

34
export function initializeThemeCache() {
45
try {
@@ -81,6 +82,11 @@ export function initializeCodeSandboxTheme() {
8182
'/extensions/ngryman.codesandbox-theme-0.0.1/themes/CodeSandbox-color-theme.json',
8283
JSON.stringify(codeSandboxTheme)
8384
);
85+
86+
fs.writeFileSync(
87+
'/extensions/codesandbox-black-0.0.1/themes/codesandbox-black.json',
88+
JSON.stringify(codeSandboxBlackTheme)
89+
);
8490
}
8591

8692
export function installCustomTheme(id: string, name: string, theme: string) {

0 commit comments

Comments
 (0)