Skip to content

Commit cb6030d

Browse files
author
Ives van Hoorne
committed
Cleanup themes
1 parent be4e80b commit cb6030d

File tree

8 files changed

+4
-11
lines changed

8 files changed

+4
-11
lines changed

packages/app/src/app/pages/Sandbox/Editor/utils/get-vscode-theme.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import JSON from 'json5';
22

33
import codesandbox from 'common/themes/codesandbox.json';
44

5-
import themes from './themes';
5+
import themes from 'common/themes';
66

77
const editorBackground = 'editor.background';
88
const editorForeground = 'editor.foreground';

packages/app/src/app/pages/common/Modals/PreferencesModal/Appearance/index.js

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import React from 'react';
22
import { inject, observer } from 'mobx-react';
3+
import themes from 'common/themes';
34

45
import PreferenceText from 'common/components/Preference/PreferenceText';
56
import {
@@ -25,15 +26,7 @@ function EditorSettings({ store, signals }) {
2526
});
2627

2728
const fontOptions = ['Menlo', 'Dank Mono', 'Source Code Pro'];
28-
const themeOptions = [
29-
'CodeSandbox',
30-
'Night Owl',
31-
'Night Owl (No Italics)',
32-
'Atom Dark',
33-
'High Contrast',
34-
'VSCode Light',
35-
'Atom Light',
36-
];
29+
const themeOptions = themes.map(t => t.name);
3730

3831
return (
3932
<div>

packages/app/src/app/pages/Sandbox/Editor/utils/themes/atom-dark.json renamed to packages/common/themes/atom-dark.json

File renamed without changes.

packages/app/src/app/pages/Sandbox/Editor/utils/themes/atom-light.json renamed to packages/common/themes/atom-light.json

File renamed without changes.

packages/app/src/app/pages/Sandbox/Editor/utils/themes/high-contrast.json renamed to packages/common/themes/high-contrast.json

File renamed without changes.

packages/app/src/app/pages/Sandbox/Editor/utils/themes/index.js renamed to packages/common/themes/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import codesandbox from 'common/themes/codesandbox.json';
1+
import codesandbox from './codesandbox.json';
22

33
export default [
44
{

packages/app/src/app/pages/Sandbox/Editor/utils/themes/night-owl.json renamed to packages/common/themes/night-owl.json

File renamed without changes.

packages/app/src/app/pages/Sandbox/Editor/utils/themes/vscode-light.js renamed to packages/common/themes/vscode-light.js

File renamed without changes.

0 commit comments

Comments
 (0)