Skip to content

Commit 389e778

Browse files
authored
Merge pull request #28 from rundevs/development
Add more themes on workbench
2 parents 767f1b1 + 68a9edd commit 389e778

File tree

8 files changed

+1062
-22
lines changed

8 files changed

+1062
-22
lines changed

components/Playground/Editor/Editor.jsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import React, { useCallback, useRef } from 'react'
22
import EditorCode from '@monaco-editor/react'
33
import useThemes from '../../../hooks/useThemes'
4-
import onedark from './onedark.json'
4+
import onedark from './themes/onedark.json'
5+
import onelight from './themes/onelight.json'
56
import style from './editor.module.css'
67
import useSettings from 'hooks/useSettings'
78

@@ -19,6 +20,7 @@ const Editor = ({ initialDoc, onChange }) => {
1920
const handleEditorDidMount = (editor, monaco) => {
2021
editorRef.current = editor
2122
monaco.editor.defineTheme("atom-one-dark", onedark)
23+
monaco.editor.defineTheme("atom-one-light", onelight)
2224
monaco.editor.setTheme(colorTheme === '' ? themeSystem : colorTheme)
2325
}
2426

File renamed without changes.

0 commit comments

Comments
 (0)