Initial RuneStone project
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
import * as monaco from "monaco-editor";
|
||||
import "monaco-editor-css";
|
||||
import editorWorkerUrl from "monaco-editor/editor/editor.worker.js?url";
|
||||
|
||||
self.MonacoEnvironment = {
|
||||
getWorker() {
|
||||
return new Worker(editorWorkerUrl, { type: "module" });
|
||||
},
|
||||
};
|
||||
|
||||
monaco.editor.defineTheme("runestone-dark", {
|
||||
base: "vs-dark",
|
||||
inherit: true,
|
||||
rules: [],
|
||||
colors: {
|
||||
"editor.background": "#141414",
|
||||
"editor.foreground": "#e6e6e6",
|
||||
"editor.lineHighlightBackground": "#ffffff0d",
|
||||
"editor.selectionBackground": "#264f78",
|
||||
"editorCursor.foreground": "#82aaff",
|
||||
"editorLineNumber.foreground": "#5a5a5a",
|
||||
"editorLineNumber.activeForeground": "#c8c8c8",
|
||||
"editorGutter.background": "#141414",
|
||||
"editorWidget.background": "#1c1c1c",
|
||||
"editorWidget.border": "#2e2e2e",
|
||||
"minimap.background": "#1c1c1c",
|
||||
"editorIndentGuide.background1": "#2e2e2e",
|
||||
"editorIndentGuide.activeBackground1": "#3e3e3e",
|
||||
},
|
||||
});
|
||||
|
||||
export { monaco };
|
||||
Reference in New Issue
Block a user