diff --git a/src/components/editor/Editor.tsx b/src/components/editor/Editor.tsx index f6a118f..f366ee5 100644 --- a/src/components/editor/Editor.tsx +++ b/src/components/editor/Editor.tsx @@ -1,10 +1,10 @@ import { useEditor } from "@hooks/use-editor"; import MonacoEditor, { OnMount } from "@monaco-editor/react"; -import React, { Fragment, useMemo } from "react"; -import { useTypedSelector } from "../../lib/store/store"; +import React, { Fragment } from "react"; import { onBeforeEditorMount } from "../../lib/monaco/plugins"; -import theme from "../../lib/monaco/themes/night_owl.json"; -import WelcomeScreen from "./WelcomeScreen"; +import theme from "../../lib/monaco/themes/night-owl.json"; +import { useTypedSelector } from "../../lib/store/store"; + const Editor: React.FC = () => { const options = useTypedSelector((s) => s.editor.options); diff --git a/src/lib/monaco/plugins/typings.plugin.ts b/src/lib/monaco/plugins/typings.plugin.ts index cf49f9f..b4c5d8f 100644 --- a/src/lib/monaco/plugins/typings.plugin.ts +++ b/src/lib/monaco/plugins/typings.plugin.ts @@ -21,13 +21,10 @@ const plugin = (monaco: Monaco, deps: Record) => { let timeout: void | NodeJS.Timeout = setTimeout(stop, 2500); - - console.log(deps); - Object.keys(deps).forEach((name) => { count++; store.dispatch(START_TYPE_FETCH()); - console.log(name); + worker.postMessage({ name, version: deps[name], @@ -40,7 +37,6 @@ const plugin = (monaco: Monaco, deps: Record) => { // typings: result, const entries = Object.keys(event.data.typings); - console.log(entries); const types = entries.reduce((acc, curr) => { const libUri = `file:///${curr}`; @@ -66,8 +62,6 @@ const plugin = (monaco: Monaco, deps: Record) => { return acc; }, {}); - console.log(types); - count--; if (count < 1) { stop(); @@ -99,5 +93,3 @@ const plugin = (monaco: Monaco, deps: Record) => { }; export default plugin; - - diff --git a/src/lib/monaco/themes/night-owl.json b/src/lib/monaco/themes/night-owl.json new file mode 100644 index 0000000..8d1bd48 --- /dev/null +++ b/src/lib/monaco/themes/night-owl.json @@ -0,0 +1,1715 @@ +{ + "base": "vs-dark", + "inherit": true, + "rules": [ + { + "background": "011627", + "token": "", + "foreground": "#a2bffc" + }, + { + "foreground": "637777", + "token": "comment" + }, + { + "foreground": "addb67", + "token": "string" + }, + { + "foreground": "ecc48d", + "token": "vstring.quoted" + }, + { + "foreground": "ecc48d", + "token": "variable.other.readwrite.js" + }, + { + "foreground": "5ca7e4", + "token": "string.regexp" + }, + { + "foreground": "5ca7e4", + "token": "string.regexp keyword.other", + "fontStyle": "" + }, + { + "foreground": "5f7e97", + "token": "meta.function punctuation.separator.comma" + }, + { + "foreground": "f78c6c", + "token": "constant.numeric" + }, + { + "foreground": "f78c6c", + "token": "constant.character.numeric" + }, + { + "foreground": "addb67", + "token": "variable" + }, + { + "foreground": "c792ea", + "token": "keyword", + "fontStyle": "" + }, + { + "foreground": "c792ea", + "token": "punctuation.accessor", + "fontStyle": "" + }, + { + "foreground": "c792ea", + "token": "storage" + }, + { + "foreground": "c792ea", + "token": "meta.var.expr" + }, + { + "foreground": "c792ea", + "token": "meta.class meta.method.declaration meta.var.expr storage.type.jsm" + }, + { + "foreground": "c792ea", + "token": "storage.type.property.js" + }, + { + "foreground": "c792ea", + "token": "storage.type.property.ts" + }, + { + "foreground": "c792ea", + "token": "storage.type.property.tsx" + }, + { + "foreground": "82aaff", + "token": "storage.type" + }, + { + "foreground": "ffcb8b", + "token": "entity.name.class" + }, + { + "foreground": "ffcb8b", + "token": "meta.class entity.name.type.class" + }, + { + "foreground": "addb67", + "token": "entity.other.inherited-class" + }, + { + "foreground": "82aaff", + "token": "entity.name.function", + "fontStyle": "" + }, + { + "foreground": "addb67", + "token": "punctuation.definition.variable", + "fontStyle": "" + }, + { + "foreground": "d3423e", + "token": "punctuation.section.embedded", + "fontStyle": "" + }, + { + "foreground": "d6deeb", + "token": "punctuation.terminator.expression", + "fontStyle": "" + }, + { + "foreground": "d6deeb", + "token": "punctuation.definition.arguments", + "fontStyle": "" + }, + { + "foreground": "d6deeb", + "token": "punctuation.definition.array", + "fontStyle": "" + }, + { + "foreground": "d6deeb", + "token": "punctuation.section.array", + "fontStyle": "" + }, + { + "foreground": "d6deeb", + "token": "meta.array", + "fontStyle": "" + }, + { + "foreground": "d9f5dd", + "token": "punctuation.definition.list.begin" + }, + { + "foreground": "d9f5dd", + "token": "punctuation.definition.list.end", + "fontStyle": "" + }, + { + "foreground": "d9f5dd", + "token": "punctuation.separator.arguments" + }, + { + "foreground": "d9f5dd", + "token": "punctuation.definition.list" + }, + { + "foreground": "d3423e", + "token": "string.template meta.template.expression" + }, + { + "foreground": "d6deeb", + "token": "string.template punctuation.definition.string", + "fontStyle": "" + }, + { + "foreground": "c792ea", + "fontStyle": "italic", + "token": "italic" + }, + { + "foreground": "addb67", + "fontStyle": "bold", + "token": "bold" + }, + { + "foreground": "82aaff", + "token": "constant.language", + "fontStyle": "" + }, + { + "foreground": "82aaff", + "token": "punctuation.definition.constant", + "fontStyle": "" + }, + { + "foreground": "82aaff", + "token": "variable.other.constant", + "fontStyle": "" + }, + { + "foreground": "7fdbca", + "token": "support.function.construct", + "fontStyle": "" + }, + { + "foreground": "7fdbca", + "token": "keyword.other.new", + "fontStyle": "" + }, + { + "foreground": "82aaff", + "token": "constant.character", + "fontStyle": "" + }, + { + "foreground": "82aaff", + "token": "constant.other", + "fontStyle": "" + }, + { + "foreground": "f78c6c", + "token": "constant.character.escape", + "fontStyle": "" + }, + { + "foreground": "addb67", + "token": "entity.other.inherited-class", + "fontStyle": "" + }, + { + "foreground": "d7dbe0", + "token": "variable.parameter", + "fontStyle": "" + }, + { + "foreground": "7fdbca", + "token": "entity.name.tag", + "fontStyle": "" + }, + { + "foreground": "cc2996", + "token": "punctuation.definition.tag.html" + }, + { + "foreground": "cc2996", + "token": "punctuation.definition.tag.begin" + }, + { + "foreground": "cc2996", + "token": "punctuation.definition.tag.end" + }, + { + "foreground": "addb67", + "token": "entity.other.attribute-name" + }, + { + "foreground": "addb67", + "token": "entity.name.tag.custom" + }, + { + "foreground": "82aaff", + "token": "support.function" + }, + { + "foreground": "82aaff", + "token": "support.constant" + }, + { + "foreground": "7fdbca", + "token": "upport.constant.meta.property-value", + "background": "#ff2c83" + }, + { + "foreground": "addb67", + "token": "support.type", + "background": "#d3423e" + }, + { + "foreground": "addb67", + "token": "support.class", + "fontStyle": "" + }, + { + "foreground": "addb67", + "token": "support.variable.dom", + "fontStyle": "" + }, + { + "foreground": "7fdbca", + "token": "support.constant" + }, + { + "foreground": "7fdbca", + "token": "keyword.other.special-method" + }, + { + "foreground": "7fdbca", + "token": "keyword.other.new" + }, + { + "foreground": "7fdbca", + "token": "keyword.other.debugger" + }, + { + "foreground": "7fdbca", + "token": "keyword.control" + }, + { + "foreground": "c792ea", + "token": "keyword.operator.comparison" + }, + { + "foreground": "c792ea", + "token": "keyword.control.flow.js" + }, + { + "foreground": "c792ea", + "token": "keyword.control.flow.ts" + }, + { + "foreground": "c792ea", + "token": "keyword.control.flow.tsx" + }, + { + "foreground": "c792ea", + "token": "keyword.control.ruby", + "fontStyle": "" + }, + { + "foreground": "c792ea", + "token": "keyword.control.module.ruby" + }, + { + "foreground": "c792ea", + "token": "keyword.control.class.ruby" + }, + { + "foreground": "c792ea", + "token": "keyword.control.def.ruby" + }, + { + "foreground": "c792ea", + "token": "keyword.control.loop.js" + }, + { + "foreground": "c792ea", + "token": "keyword.control.loop.ts", + "fontStyle": "" + }, + { + "foreground": "c792ea", + "token": "keyword.control.import.js", + "fontStyle": "" + }, + { + "foreground": "c792ea", + "token": "keyword.control.import.ts", + "fontStyle": "" + }, + { + "foreground": "c792ea", + "token": "keyword.control.import.tsx", + "fontStyle": "" + }, + { + "foreground": "c792ea", + "token": "keyword.control.from.js", + "fontStyle": "" + }, + { + "foreground": "c792ea", + "token": "keyword.control.from.ts" + }, + { + "foreground": "c792ea", + "token": "keyword.control.from.tsx" + }, + { + "foreground": "ffffff", + "background": "ff2c83", + "token": "invalid" + }, + { + "foreground": "ffffff", + "background": "d3423e", + "token": "invalid.deprecated" + }, + { + "foreground": "7fdbca", + "token": "keyword.operator", + "fontStyle": "" + }, + { + "foreground": "c792ea", + "token": "keyword.operator.relational" + }, + { + "foreground": "c792ea", + "token": "keyword.operator.assignement" + }, + { + "foreground": "c792ea", + "token": "keyword.operator.arithmetic", + "fontStyle": "" + }, + { + "foreground": "c792ea", + "token": "keyword.operator.bitwise", + "fontStyle": "" + }, + { + "foreground": "c792ea", + "token": "keyword.operator.increment" + }, + { + "foreground": "c792ea", + "token": "keyword.operator.ternary" + }, + { + "foreground": "637777", + "token": "comment.line.double-slash", + "fontStyle": "" + }, + { + "foreground": "cdebf7", + "token": "object" + }, + { + "foreground": "ff5874", + "token": "constant.language.null" + }, + { + "foreground": "d6deeb", + "token": "meta.brace" + }, + { + "foreground": "c792ea", + "token": "meta.delimiter.period" + }, + { + "foreground": "d9f5dd", + "token": "punctuation.definition.string" + }, + { + "foreground": "ff5874", + "token": "constant.language.boolean", + "fontStyle": "" + }, + { + "foreground": "ffffff", + "token": "object.comma", + "fontStyle": "" + }, + { + "foreground": "7fdbca", + "token": "variable.parameter.function", + "fontStyle": "" + }, + { + "foreground": "80cbc4", + "token": "support.type.vendor.property-name", + "fontStyle": "" + }, + { + "foreground": "80cbc4", + "token": "support.constant.vendor.property-value", + "fontStyle": "" + }, + { + "foreground": "80cbc4", + "token": "support.type.property-name", + "fontStyle": "" + }, + { + "foreground": "80cbc4", + "token": "meta.property-list entity.name.tag", + "fontStyle": "" + }, + { + "foreground": "57eaf1", + "token": "meta.property-list entity.name.tag.reference", + "fontStyle": "" + }, + { + "foreground": "f78c6c", + "token": "constant.other.color.rgb-value punctuation.definition.constant", + "fontStyle": "" + }, + { + "foreground": "ffeb95", + "token": "constant.other.color", + "fontStyle": "" + }, + { + "foreground": "ffeb95", + "token": "keyword.other.unit", + "fontStyle": "" + }, + { + "foreground": "c792ea", + "token": "meta.selector", + "fontStyle": "" + }, + { + "foreground": "fad430", + "token": "entity.other.attribute-name.id", + "fontStyle": "" + }, + { + "foreground": "80cbc4", + "token": "meta.property-name", + "fontStyle": "" + }, + { + "foreground": "c792ea", + "token": "entity.name.tag.doctype", + "fontStyle": "" + }, + { + "foreground": "c792ea", + "token": "meta.tag.sgml.doctype", + "fontStyle": "" + }, + { + "foreground": "d9f5dd", + "token": "punctuation.definition.parameters", + "fontStyle": "" + }, + { + "foreground": "ecc48d", + "token": "string.quoted", + "fontStyle": "" + }, + { + "foreground": "ecc48d", + "token": "string.quoted.double", + "fontStyle": "" + }, + { + "foreground": "ecc48d", + "token": "string.quoted.single", + "fontStyle": "" + }, + { + "foreground": "addb67", + "token": "support.constant.math", + "fontStyle": "" + }, + { + "foreground": "addb67", + "token": "support.type.property-name.json", + "fontStyle": "" + }, + { + "foreground": "addb67", + "token": "support.constant.json", + "fontStyle": "" + }, + { + "foreground": "c789d6", + "token": "meta.structure.dictionary.value.json string.quoted.double", + "fontStyle": "" + }, + { + "foreground": "80cbc4", + "token": "string.quoted.double.json punctuation.definition.string.json", + "fontStyle": "" + }, + { + "foreground": "ff5874", + "token": "meta.structure.dictionary.json meta.structure.dictionary.value constant.language" + }, + { + "foreground": "d6deeb", + "token": "variable.other.ruby" + }, + { + "foreground": "ecc48d", + "token": "entity.name.type.class.ruby" + }, + { + "foreground": "ecc48d", + "token": "keyword.control.class.ruby" + }, + { + "foreground": "ecc48d", + "token": "meta.class.ruby" + }, + { + "foreground": "7fdbca", + "token": "constant.language.symbol.hashkey.ruby" + }, + { + "foreground": "e0eddd", + "background": "a57706", + "fontStyle": "italic", + "token": "meta.diff" + }, + { + "foreground": "e0eddd", + "background": "a57706", + "fontStyle": "italic", + "token": "meta.diff.header" + }, + { + "foreground": "ef535090", + "fontStyle": "italic", + "token": "markup.deleted", + "background": "#ec5f67" + }, + { + "foreground": "a2bffc", + "fontStyle": "italic", + "token": "markup.changed" + }, + { + "foreground": "a2bffc", + "fontStyle": "italic", + "token": "meta.diff.header.git" + }, + { + "foreground": "a2bffc", + "fontStyle": "italic", + "token": "meta.diff.header.from-file" + }, + { + "foreground": "a2bffc", + "fontStyle": "italic", + "token": "meta.diff.header.to-file" + }, + { + "foreground": "219186", + "background": "eae3ca", + "token": "markup.inserted" + }, + { + "foreground": "d3201f", + "token": "other.package.exclude" + }, + { + "foreground": "d3201f", + "token": "other.remove" + }, + { + "foreground": "269186", + "token": "other.add" + }, + { + "foreground": "ff5874", + "token": "constant.language.python" + }, + { + "foreground": "82aaff", + "token": "variable.parameter.function.python" + }, + { + "foreground": "82aaff", + "token": "meta.function-call.arguments.python" + }, + { + "foreground": "b2ccd6", + "token": "meta.function-call.python" + }, + { + "foreground": "b2ccd6", + "token": "meta.function-call.generic.python" + }, + { + "foreground": "d6deeb", + "token": "punctuation.python" + }, + { + "foreground": "addb67", + "token": "entity.name.function.decorator.python" + }, + { + "foreground": "8eace3", + "token": "source.python variable.language.special" + }, + { + "foreground": "82b1ff", + "token": "markup.heading.markdown" + }, + { + "foreground": "c792ea", + "fontStyle": "italic", + "token": "markup.italic.markdown" + }, + { + "foreground": "addb67", + "fontStyle": "bold", + "token": "markup.bold.markdown" + }, + { + "foreground": "697098", + "token": "markup.quote.markdown", + "fontStyle": "" + }, + { + "foreground": "80cbc4", + "token": "markup.inline.raw.markdown" + }, + { + "foreground": "ff869a", + "token": "markup.underline.link.markdown" + }, + { + "foreground": "ff869a", + "token": "markup.underline.link.image.markdown" + }, + { + "foreground": "d6deeb", + "token": "string.other.link.title.markdown" + }, + { + "foreground": "d6deeb", + "token": "string.other.link.description.markdown" + }, + { + "foreground": "82b1ff", + "token": "punctuation.definition.string.markdown" + }, + { + "foreground": "82b1ff", + "token": "punctuation.definition.string.begin.markdown" + }, + { + "foreground": "82b1ff", + "token": "punctuation.definition.string.end.markdown" + }, + { + "foreground": "82b1ff", + "token": "meta.link.inline.markdown punctuation.definition.string" + }, + { + "foreground": "7fdbca", + "token": "punctuation.definition.metadata.markdown", + "fontStyle": "bold" + }, + { + "foreground": "82b1ff", + "token": "beginning.punctuation.definition.list.markdown", + "fontStyle": "bold" + }, + { + "foreground": "#ffcb8b", + "fontStyle": "bold", + "token": "keyword.preprocessor.endregion.cs" + }, + { + "foreground": "#B2CCD6", + "token": "variable.other.object.cs" + }, + { + "foreground": "#c5e478", + "token": "entity.name.type.enum.cs" + }, + { + "foreground": "#FFCB8B", + "token": "string.interpolated.single.dart" + }, + { + "foreground": "#FFCB8B", + "token": "string.interpolated.double.dart" + }, + { + "foreground": "#FFCB8B", + "token": "support.class.dart" + }, + { + "foreground": "#ff6363", + "fontStyle": "", + "token": "entity.name.tag.css" + }, + { + "foreground": "#ff6363", + "fontStyle": "", + "token": "entity.name.tag.less" + }, + { + "foreground": "#ff6363", + "fontStyle": "", + "token": "entity.name.tag.custom.css" + }, + { + "foreground": "#ff6363", + "fontStyle": "", + "token": "support.constant.property-value.css" + }, + { + "foreground": "#7fdbca", + "token": "entity.name.tag.wildcard.css" + }, + { + "foreground": "#7fdbca", + "token": "entity.name.tag.wildcard.less" + }, + { + "foreground": "#7fdbca", + "token": "entity.name.tag.wildcard.scss" + }, + { + "foreground": "#7fdbca", + "token": "entity.name.tag.wildcard.sass" + }, + { + "foreground": "#FFEB95", + "token": "keyword.other.unit.css" + }, + { + "foreground": "#F78C6C", + "token": "meta.attribute-selector.css entity.other.attribute-name.attribute" + }, + { + "foreground": "#F78C6C", + "token": "variable.other.readwrite.js" + }, + { + "foreground": "#82AAFF", + "token": "source.elixir support.type.elixir" + }, + { + "foreground": "#82AAFF", + "token": "source.elixir meta.module.elixir entity.name.class.elixir" + }, + { + "foreground": "#c5e478", + "token": "source.elixir entity.name.function" + }, + { + "foreground": "#82AAFF", + "token": "source.elixir constant.other.symbol.elixir" + }, + { + "foreground": "#82AAFF", + "token": "source.elixir constant.other.keywords.elixir" + }, + { + "foreground": "#c5e478", + "token": "source.elixir punctuation.definition.string" + }, + { + "foreground": "#c5e478", + "token": "source.elixir variable.other.readwrite.module.elixir" + }, + { + "foreground": "#c5e478", + "token": "source.elixir variable.other.readwrite.module.elixir punctuation.definition.variable.elixir" + }, + { + "foreground": "#c792ea", + "fontStyle": "", + "token": "source.elixir .punctuation.binary.elixir" + }, + { + "foreground": "#7fdbca", + "token": "constant.keyword.clojure" + }, + { + "foreground": "#DDDDDD", + "token": "source.go meta.function-call.go" + }, + { + "foreground": "#c792ea", + "token": "source.go keyword.package.go" + }, + { + "foreground": "#c792ea", + "token": "source.go keyword.import.go" + }, + { + "foreground": "#c792ea", + "token": "source.go keyword.function.go" + }, + { + "foreground": "#c792ea", + "token": "source.go keyword.type.go" + }, + { + "foreground": "#c792ea", + "token": "source.go keyword.struct.go" + }, + { + "foreground": "#c792ea", + "token": "source.go keyword.interface.go" + }, + { + "foreground": "#c792ea", + "token": "source.go keyword.const.go" + }, + { + "foreground": "#c792ea", + "token": "source.go keyword.var.go" + }, + { + "foreground": "#c792ea", + "token": "source.go keyword.map.go" + }, + { + "foreground": "#c792ea", + "token": "source.go keyword.channel.go" + }, + { + "foreground": "#c792ea", + "token": "source.go keyword.control.go" + }, + { + "foreground": "#ff5874", + "token": "source.go constant.language.go" + }, + { + "foreground": "#ff5874", + "token": "source.go constant.other.placeholder.go" + }, + { + "foreground": "#7fdbcaff", + "token": "entity.name.function.preprocessor.cpp" + }, + { + "foreground": "#7fdbcaff", + "token": "entity.scope.name.cpp" + }, + { + "foreground": "#e0dec6", + "token": "meta.namespace-block.cpp" + }, + { + "foreground": "#ff5874", + "token": "storage.type.language.primitive.cpp" + }, + { + "foreground": "#d6deeb", + "token": "meta.preprocessor.macro.cpp" + }, + { + "foreground": "#ffcb8b", + "token": "variable.parameter" + }, + { + "foreground": "#82AAFF", + "token": "variable.other.readwrite.powershell" + }, + { + "foreground": "#7fdbcaff", + "token": "support.function.powershell" + }, + { + "foreground": "#c5e478", + "token": "entity.other.attribute-name.id.html" + }, + { + "foreground": "#6ae9f0", + "token": "punctuation.definition.tag.html" + }, + { + "foreground": "#c792ea", + "fontStyle": "", + "token": "meta.tag.sgml.doctype.html" + }, + { + "foreground": "#ffcb8b", + "token": "meta.class entity.name.type.class.js" + }, + { + "foreground": "#82AAFF", + "token": "meta.method.declaration storage.type.js" + }, + { + "foreground": "#d6deeb", + "token": "terminator.js" + }, + { + "foreground": "#d6deeb", + "token": "meta.js punctuation.definition.js" + }, + { + "foreground": "#5f7e97", + "token": "entity.name.type.instance.jsdoc" + }, + { + "foreground": "#5f7e97", + "token": "entity.name.type.instance.phpdoc" + }, + { + "foreground": "#78ccf0", + "token": "variable.other.jsdoc" + }, + { + "foreground": "#78ccf0", + "token": "variable.other.phpdoc" + }, + { + "foreground": "#d6deeb", + "token": "variable.other.meta.import.js" + }, + { + "foreground": "#d6deeb", + "token": "meta.import.js variable.other" + }, + { + "foreground": "#d6deeb", + "token": "variable.other.meta.export.js" + }, + { + "foreground": "#d6deeb", + "token": "meta.export.js variable.other" + }, + { + "foreground": "#7986E7", + "token": "variable.parameter.function.js" + }, + { + "foreground": "#d6deeb", + "token": "variable.other.object.js" + }, + { + "foreground": "#d6deeb", + "token": "variable.other.object.jsx" + }, + { + "foreground": "#d6deeb", + "token": "variable.object.property.js" + }, + { + "foreground": "#d6deeb", + "token": "variable.object.property.jsx" + }, + { + "foreground": "#d6deeb", + "token": "variable.js" + }, + { + "foreground": "#d6deeb", + "token": "variable.other.js" + }, + { + "foreground": "#ffcb8b", + "fontStyle": "", + "token": "entity.name.type.js" + }, + { + "foreground": "#ffcb8b", + "fontStyle": "", + "token": "entity.name.type.module.js" + }, + { + "foreground": "#d6deeb", + "token": "support.class.js" + }, + { + "foreground": "#7fdbca", + "token": "support.type.property-name.json" + }, + { + "foreground": "#c5e478", + "token": "support.constant.json" + }, + { + "foreground": "#c789d6", + "token": "meta.structure.dictionary.value.json string.quoted.double" + }, + { + "foreground": "#80CBC4", + "token": "string.quoted.double.json punctuation.definition.string.json" + }, + { + "foreground": "#ff5874", + "token": "meta.structure.dictionary.json meta.structure.dictionary.value constant.language" + }, + { + "foreground": "#7fdbca", + "token": "variable.other.object.js" + }, + { + "foreground": "#d6deeb", + "token": "variable.other.ruby" + }, + { + "foreground": "#ecc48d", + "token": "entity.name.type.class.ruby" + }, + { + "foreground": "#7fdbca", + "token": "constant.language.symbol.hashkey.ruby" + }, + { + "foreground": "#7fdbca", + "token": "entity.name.tag.less" + }, + { + "foreground": "#FFEB95", + "token": "keyword.other.unit.css" + }, + { + "foreground": "#F78C6C", + "token": "meta.attribute-selector.less entity.other.attribute-name.attribute" + }, + { + "foreground": "#82b1ff", + "token": "markup.heading.markdown" + }, + { + "foreground": "#82b1ff", + "token": "markup.heading.setext.1.markdown" + }, + { + "foreground": "#82b1ff", + "token": "markup.heading.setext.2.markdown" + }, + { + "foreground": "#c792ea", + "fontStyle": "italic", + "token": "markup.italic.markdown" + }, + { + "foreground": "#c5e478", + "fontStyle": "bold", + "token": "markup.bold.markdown" + }, + { + "foreground": "#697098", + "fontStyle": "", + "token": "markup.quote.markdown" + }, + { + "foreground": "#80CBC4", + "token": "markup.inline.raw.markdown" + }, + { + "foreground": "#ff869a", + "token": "markup.underline.link.markdown" + }, + { + "foreground": "#ff869a", + "token": "markup.underline.link.image.markdown" + }, + { + "foreground": "#d6deeb", + "token": "string.other.link.title.markdown" + }, + { + "foreground": "#d6deeb", + "token": "string.other.link.description.markdown" + }, + { + "foreground": "#82b1ff", + "token": "punctuation.definition.string.markdown" + }, + { + "foreground": "#82b1ff", + "token": "punctuation.definition.string.begin.markdown" + }, + { + "foreground": "#82b1ff", + "token": "punctuation.definition.string.end.markdown" + }, + { + "foreground": "#82b1ff", + "token": "meta.link.inline.markdown punctuation.definition.string" + }, + { + "foreground": "#7fdbca", + "token": "punctuation.definition.metadata.markdown" + }, + { + "foreground": "#82b1ff", + "token": "beginning.punctuation.definition.list.markdown" + }, + { + "foreground": "#c5e478", + "token": "markup.inline.raw.string.markdown" + }, + { + "foreground": "#bec5d4", + "token": "variable.other.php" + }, + { + "foreground": "#ffcb8b", + "token": "support.class.php" + }, + { + "foreground": "#d6deeb", + "token": "meta.function-call.php punctuation" + }, + { + "foreground": "#c5e478", + "token": "variable.other.global.php" + }, + { + "foreground": "#c5e478", + "token": "variable.other.global.php punctuation.definition.variable" + }, + { + "foreground": "#ff5874", + "token": "constant.language.python" + }, + { + "foreground": "#82AAFF", + "token": "variable.parameter.function.python" + }, + { + "foreground": "#82AAFF", + "token": "meta.function-call.arguments.python" + }, + { + "foreground": "#B2CCD6", + "token": "meta.function-call.python" + }, + { + "foreground": "#B2CCD6", + "token": "meta.function-call.generic.python" + }, + { + "foreground": "#d6deeb", + "token": "punctuation.python" + }, + { + "foreground": "#c5e478", + "token": "entity.name.function.decorator.python" + }, + { + "foreground": "#8EACE3", + "token": "source.python variable.language.special" + }, + { + "foreground": "#c792ea", + "token": "keyword.control" + }, + { + "foreground": "#c5e478", + "token": "variable.scss" + }, + { + "foreground": "#c5e478", + "token": "variable.sass" + }, + { + "foreground": "#c5e478", + "token": "variable.parameter.url.scss" + }, + { + "foreground": "#c5e478", + "token": "variable.parameter.url.sass" + }, + { + "foreground": "#82AAFF", + "token": "source.css.scss meta.at-rule variable" + }, + { + "foreground": "#82AAFF", + "token": "source.css.sass meta.at-rule variable" + }, + { + "foreground": "#bec5d4", + "token": "source.css.scss meta.at-rule variable" + }, + { + "foreground": "#bec5d4", + "token": "source.css.sass meta.at-rule variable" + }, + { + "foreground": "#F78C6C", + "token": "meta.attribute-selector.scss entity.other.attribute-name.attribute" + }, + { + "foreground": "#F78C6C", + "token": "meta.attribute-selector.sass entity.other.attribute-name.attribute" + }, + { + "foreground": "#7fdbca", + "token": "entity.name.tag.scss" + }, + { + "foreground": "#7fdbca", + "token": "entity.name.tag.sass" + }, + { + "foreground": "#FFEB95", + "token": "keyword.other.unit.scss" + }, + { + "foreground": "#FFEB95", + "token": "keyword.other.unit.sass" + }, + { + "foreground": "#d6deeb", + "token": "variable.other.readwrite.alias.ts" + }, + { + "foreground": "#d6deeb", + "token": "variable.other.readwrite.alias.tsx" + }, + { + "foreground": "#d6deeb", + "token": "variable.other.readwrite.ts" + }, + { + "foreground": "#d6deeb", + "token": "variable.other.readwrite.tsx" + }, + { + "foreground": "#d6deeb", + "token": "variable.other.object.ts" + }, + { + "foreground": "#d6deeb", + "token": "variable.other.object.tsx" + }, + { + "foreground": "#d6deeb", + "token": "variable.object.property.ts" + }, + { + "foreground": "#d6deeb", + "token": "variable.object.property.tsx" + }, + { + "foreground": "#d6deeb", + "token": "variable.other.ts" + }, + { + "foreground": "#d6deeb", + "token": "variable.other.tsx" + }, + { + "foreground": "#d6deeb", + "token": "variable.tsx" + }, + { + "foreground": "#d6deeb", + "token": "variable.ts" + }, + { + "foreground": "#ffcb8b", + "token": "entity.name.type.ts" + }, + { + "foreground": "#ffcb8b", + "token": "entity.name.type.tsx" + }, + { + "foreground": "#82AAFF", + "token": "support.class.node.ts" + }, + { + "foreground": "#82AAFF", + "token": "support.class.node.tsx" + }, + { + "foreground": "#5f7e97", + "token": "meta.type.parameters.ts entity.name.type" + }, + { + "foreground": "#5f7e97", + "token": "meta.type.parameters.tsx entity.name.type" + }, + { + "foreground": "#d6deeb", + "token": "meta.import.ts punctuation.definition.block" + }, + { + "foreground": "#d6deeb", + "token": "meta.import.tsx punctuation.definition.block" + }, + { + "foreground": "#d6deeb", + "token": "meta.export.ts punctuation.definition.block" + }, + { + "foreground": "#d6deeb", + "token": "meta.export.tsx punctuation.definition.block" + }, + { + "foreground": "#82AAFF", + "token": "meta.decorator punctuation.decorator.ts" + }, + { + "foreground": "#82AAFF", + "token": "meta.decorator punctuation.decorator.tsx" + }, + { + "foreground": "#82AAFF", + "token": "meta.tag.js meta.jsx.children.tsx" + }, + { + "foreground": "#7fdbca", + "token": "entity.name.tag.yaml" + }, + { + "foreground": "#d7dbe0", + "token": "variable.other.readwrite.js" + }, + { + "foreground": "#d7dbe0", + "token": "variable.parameter" + }, + { + "foreground": "#f78c6c", + "fontStyle": "", + "token": "support.class.component.js" + }, + { + "foreground": "#f78c6c", + "fontStyle": "", + "token": "support.class.component.tsx" + }, + { + "foreground": "#d6deeb", + "token": "meta.jsx.children" + }, + { + "foreground": "#d6deeb", + "token": "meta.jsx.children.js" + }, + { + "foreground": "#d6deeb", + "token": "meta.jsx.children.tsx" + }, + { + "foreground": "#ffcb8b", + "token": "meta.class entity.name.type.class.tsx" + }, + { + "foreground": "#ffcb8b", + "token": "entity.name.type.tsx" + }, + { + "foreground": "#ffcb8b", + "token": "entity.name.type.module.tsx" + }, + { + "foreground": "#C792EA", + "token": "meta.class.ts meta.var.expr.ts storage.type.ts" + }, + { + "foreground": "#C792EA", + "token": "meta.class.tsx meta.var.expr.tsx storage.type.tsx" + }, + { + "foreground": "#82AAFF", + "token": "meta.method.declaration storage.type.ts" + }, + { + "foreground": "#82AAFF", + "token": "meta.method.declaration storage.type.tsx" + }, + { + "fontStyle": "", + "token": "meta.property-list.css meta.property-value.css variable.other.less" + }, + { + "fontStyle": "", + "token": "meta.property-list.scss variable.scss" + }, + { + "fontStyle": "", + "token": "meta.property-list.sass variable.sass" + }, + { + "fontStyle": "", + "token": "meta.brace" + }, + { + "fontStyle": "", + "token": "keyword.operator.operator" + }, + { + "fontStyle": "", + "token": "keyword.operator.or.regexp" + }, + { + "fontStyle": "", + "token": "keyword.operator.expression.in" + }, + { + "fontStyle": "", + "token": "keyword.operator.relational" + }, + { + "fontStyle": "", + "token": "keyword.operator.assignment" + }, + { + "fontStyle": "", + "token": "keyword.operator.comparison" + }, + { + "fontStyle": "", + "token": "keyword.operator.type" + }, + { + "fontStyle": "", + "token": "keyword.operator" + }, + { + "fontStyle": "", + "token": "keyword" + }, + { + "fontStyle": "", + "token": "punctuation.definintion.string" + }, + { + "fontStyle": "", + "token": "punctuation" + }, + { + "fontStyle": "", + "token": "variable.other.readwrite.js" + }, + { + "fontStyle": "", + "token": "storage.type" + }, + { + "fontStyle": "", + "token": "source.css" + }, + { + "fontStyle": "", + "token": "string.quoted" + } + ], + "colors": { + "editor.foreground": "#d6deeb", + "editor.background": "#011627", + "editor.selectionBackground": "#5f7e9779", + "editor.lineHighlightBackground": "#010E17", + "editorCursor.foreground": "#80a4c2", + "editorWhitespace.foreground": "#2e2040", + "editorIndentGuide.background": "#5e81ce52", + "editor.selectionHighlightBorder": "#122d42", + "contrastBorder": "#122d42", + "focusBorder": "#122d42", + "foreground": "#d6deeb", + "widget.shadow": "#011627", + "selection.background": "#4373c2", + "errorForeground": "#EF5350", + "button.background": "#7e57c2cc", + "button.foreground": "#ffffffcc", + "button.hoverBackground": "#7e57c2", + "dropdown.background": "#011627", + "dropdown.border": "#5f7e97", + "dropdown.foreground": "#ffffffcc", + "input.background": "#0b253a", + "input.border": "#5f7e97", + "input.foreground": "#ffffffcc", + "input.placeholderForeground": "#5f7e97", + "inputOption.activeBorder": "#ffffffcc", + "punctuation.definition.generic.begin.html": "#ef5350f2", + "inputValidation.errorBackground": "#AB0300F2", + "inputValidation.errorBorder": "#EF5350", + "inputValidation.infoBackground": "#00589EF2", + "inputValidation.infoBorder": "#64B5F6", + "inputValidation.warningBackground": "#675700F2", + "inputValidation.warningBorder": "#FFCA28", + "scrollbar.shadow": "#010b14", + "scrollbarSlider.activeBackground": "#084d8180", + "scrollbarSlider.background": "#084d8180", + "scrollbarSlider.hoverBackground": "#084d8180", + "badge.background": "#5f7e97", + "badge.foreground": "#ffffff", + "progress.background": "#7e57c2", + "breadcrumb.foreground": "#A599E9", + "breadcrumb.focusForeground": "#ffffff", + "breadcrumb.activeSelectionForeground": "#FFFFFF", + "breadcrumbPicker.background": "#001122", + "list.activeSelectionBackground": "#234d708c", + "list.activeSelectionForeground": "#ffffff", + "list.invalidItemForeground": "#975f94", + "list.dropBackground": "#011627", + "list.focusBackground": "#010d18", + "list.focusForeground": "#ffffff", + "list.highlightForeground": "#ffffff", + "list.hoverBackground": "#011627", + "list.hoverForeground": "#ffffff", + "list.inactiveSelectionBackground": "#0e293f", + "list.inactiveSelectionForeground": "#5f7e97", + "activityBar.background": "#011627", + "activityBar.dropBackground": "#5f7e97", + "activityBar.foreground": "#5f7e97", + "activityBar.border": "#011627", + "activityBarBadge.background": "#44596b", + "activityBarBadge.foreground": "#ffffff", + "sideBar.background": "#011627", + "sideBar.foreground": "#89a4bb", + "sideBar.border": "#011627", + "sideBarTitle.foreground": "#5f7e97", + "sideBarSectionHeader.background": "#011627", + "sideBarSectionHeader.foreground": "#5f7e97", + "editorGroup.emptyBackground": "#011627", + "editorGroup.border": "#011627", + "editorGroup.dropBackground": "#7e57c273", + "editorGroupHeader.noTabsBackground": "#011627", + "editorGroupHeader.tabsBackground": "#011627", + "editorGroupHeader.tabsBorder": "#262A39", + "tab.activeBackground": "#0b2942", + "tab.activeForeground": "#d2dee7", + "tab.border": "#272B3B", + "tab.activeBorder": "#262A39", + "tab.unfocusedActiveBorder": "#262A39", + "tab.inactiveBackground": "#01111d", + "tab.inactiveForeground": "#5f7e97", + "tab.unfocusedActiveForeground": "#5f7e97", + "tab.unfocusedInactiveForeground": "#5f7e97", + "editorLineNumber.foreground": "#4b6479", + "editorLineNumber.activeForeground": "#C5E4FD", + "editor.selectionHighlightBackground": "#5f7e9779", + "editor.inactiveSelectionBackground": "#7e57c25a", + "editor.wordHighlightBackground": "#f6bbe533", + "editor.wordHighlightStrongBackground": "#e2a2f433", + "editor.findMatchBackground": "#5f7e9779", + "editor.findMatchHighlightBackground": "#1085bb5d", + "editor.hoverHighlightBackground": "#7e57c25a", + "editor.rangeHighlightBackground": "#7e57c25a", + "editorIndentGuide.activeBackground": "#7E97AC", + "editorRuler.foreground": "#5e81ce52", + "editorCodeLens.foreground": "#5e82ceb4", + "editorBracketMatch.background": "#5f7e974d", + "editorOverviewRuler.currentContentForeground": "#7e57c2", + "editorOverviewRuler.incomingContentForeground": "#7e57c2", + "editorOverviewRuler.commonContentForeground": "#7e57c2", + "editorError.foreground": "#EF5350", + "editorWarning.foreground": "#b39554", + "editorGutter.background": "#011627", + "editorGutter.modifiedBackground": "#e2b93d", + "editorGutter.addedBackground": "#9CCC65", + "editorGutter.deletedBackground": "#EF5350", + "diffEditor.insertedTextBackground": "#99b76d23", + "diffEditor.insertedTextBorder": "#c5e47833", + "diffEditor.removedTextBackground": "#ef535033", + "diffEditor.removedTextBorder": "#ef53504d", + "editorWidget.background": "#021320", + "editorWidget.border": "#5f7e97", + "editorSuggestWidget.background": "#2C3043", + "editorSuggestWidget.border": "#2B2F40", + "editorSuggestWidget.foreground": "#d6deeb", + "editorSuggestWidget.highlightForeground": "#ffffff", + "editorSuggestWidget.selectedBackground": "#5f7e97", + "editorHoverWidget.background": "#011627", + "editorHoverWidget.border": "#5f7e97", + "debugExceptionWidget.background": "#011627", + "debugExceptionWidget.border": "#5f7e97", + "editorMarkerNavigation.background": "#0b2942", + "editorMarkerNavigationError.background": "#EF5350", + "editorMarkerNavigationWarning.background": "#FFCA28", + "peekView.border": "#5f7e97", + "peekViewEditor.background": "#011627", + "peekViewEditor.matchHighlightBackground": "#7e57c25a", + "peekViewResult.background": "#011627", + "peekViewResult.fileForeground": "#5f7e97", + "peekViewResult.lineForeground": "#5f7e97", + "peekViewResult.matchHighlightBackground": "#ffffffcc", + "peekViewResult.selectionBackground": "#2E3250", + "peekViewResult.selectionForeground": "#5f7e97", + "peekViewTitle.background": "#011627", + "peekViewTitleDescription.foreground": "#697098", + "peekViewTitleLabel.foreground": "#5f7e97", + "merge.currentHeaderBackground": "#5f7e97", + "merge.incomingHeaderBackground": "#7e57c25a", + "panel.background": "#011627", + "panel.border": "#5f7e97", + "panelTitle.activeBorder": "#5f7e97", + "panelTitle.activeForeground": "#ffffffcc", + "panelTitle.inactiveForeground": "#d6deeb80", + "statusBar.background": "#011627", + "statusBar.foreground": "#5f7e97", + "statusBar.border": "#262A39", + "statusBar.debuggingBackground": "#202431", + "statusBar.debuggingBorder": "#1F2330", + "statusBar.noFolderBackground": "#011627", + "statusBar.noFolderBorder": "#25293A", + "statusBarItem.activeBackground": "#202431", + "statusBarItem.hoverBackground": "#202431", + "statusBarItem.prominentBackground": "#202431", + "statusBarItem.prominentHoverBackground": "#202431", + "titleBar.activeBackground": "#011627", + "titleBar.activeForeground": "#eeefff", + "titleBar.inactiveBackground": "#010e1a", + "notifications.background": "#01111d", + "notifications.border": "#262a39", + "notificationCenter.border": "#262a39", + "notificationToast.border": "#262a39", + "notifications.foreground": "#ffffffcc", + "notificationLink.foreground": "#80CBC4", + "extensionButton.prominentForeground": "#ffffffcc", + "extensionButton.prominentBackground": "#7e57c2cc", + "extensionButton.prominentHoverBackground": "#7e57c2", + "pickerGroup.foreground": "#d1aaff", + "pickerGroup.border": "#011627", + "terminal.ansiWhite": "#ffffff", + "terminal.ansiBlack": "#011627", + "terminal.ansiBlue": "#82AAFF", + "terminal.ansiCyan": "#21c7a8", + "terminal.ansiGreen": "#22da6e", + "terminal.ansiMagenta": "#C792EA", + "terminal.ansiRed": "#EF5350", + "terminal.ansiYellow": "#c5e478", + "terminal.ansiBrightWhite": "#ffffff", + "terminal.ansiBrightBlack": "#575656", + "terminal.ansiBrightBlue": "#82AAFF", + "terminal.ansiBrightCyan": "#7fdbca", + "terminal.ansiBrightGreen": "#22da6e", + "terminal.ansiBrightMagenta": "#C792EA", + "terminal.ansiBrightRed": "#EF5350", + "terminal.ansiBrightYellow": "#ffeb95", + "terminal.selectionBackground": "#1b90dd4d", + "terminalCursor.background": "#234d70", + "textCodeBlock.background": "#4f4f4f", + "debugToolBar.background": "#011627", + "welcomePage.buttonBackground": "#011627", + "welcomePage.buttonHoverBackground": "#011627", + "walkThrough.embeddedEditorBackground": "#011627", + "gitDecoration.modifiedResourceForeground": "#a2bffc", + "gitDecoration.deletedResourceForeground": "#EF535090", + "gitDecoration.untrackedResourceForeground": "#c5e478ff", + "gitDecoration.ignoredResourceForeground": "#395a75", + "gitDecoration.conflictingResourceForeground": "#ffeb95cc", + "source.elm": "#5f7e97", + "string.quoted.single.js": "#ffffff", + "meta.objectliteral.js": "#82AAFF" + } +} diff --git a/src/lib/monaco/themes/night_owl.json b/src/lib/monaco/themes/night_owl.json deleted file mode 100644 index 9d2fc20..0000000 --- a/src/lib/monaco/themes/night_owl.json +++ /dev/null @@ -1,680 +0,0 @@ -{ - "base": "vs-dark", - "inherit": true, - "rules": [ - { - "background": "011627", - "token": "" - }, - { - "foreground": "637777", - "token": "comment" - }, - { - "foreground": "addb67", - "token": "string" - }, - { - "foreground": "ecc48d", - "token": "vstring.quoted" - }, - { - "foreground": "ecc48d", - "token": "variable.other.readwrite.js" - }, - { - "foreground": "5ca7e4", - "token": "string.regexp" - }, - { - "foreground": "5ca7e4", - "token": "string.regexp keyword.other" - }, - { - "foreground": "5f7e97", - "token": "meta.function punctuation.separator.comma" - }, - { - "foreground": "f78c6c", - "token": "constant.numeric" - }, - { - "foreground": "f78c6c", - "token": "constant.character.numeric" - }, - { - "foreground": "addb67", - "token": "variable" - }, - { - "foreground": "c792ea", - "token": "keyword" - }, - { - "foreground": "c792ea", - "token": "punctuation.accessor" - }, - { - "foreground": "c792ea", - "token": "storage" - }, - { - "foreground": "c792ea", - "token": "meta.var.expr" - }, - { - "foreground": "c792ea", - "token": "meta.class meta.method.declaration meta.var.expr storage.type.jsm" - }, - { - "foreground": "c792ea", - "token": "storage.type.property.js" - }, - { - "foreground": "c792ea", - "token": "storage.type.property.ts" - }, - { - "foreground": "c792ea", - "token": "storage.type.property.tsx" - }, - { - "foreground": "82aaff", - "token": "storage.type" - }, - { - "foreground": "ffcb8b", - "token": "entity.name.class" - }, - { - "foreground": "ffcb8b", - "token": "meta.class entity.name.type.class" - }, - { - "foreground": "addb67", - "token": "entity.other.inherited-class" - }, - { - "foreground": "82aaff", - "token": "entity.name.function" - }, - { - "foreground": "addb67", - "token": "punctuation.definition.variable" - }, - { - "foreground": "d3423e", - "token": "punctuation.section.embedded" - }, - { - "foreground": "d6deeb", - "token": "punctuation.terminator.expression" - }, - { - "foreground": "d6deeb", - "token": "punctuation.definition.arguments" - }, - { - "foreground": "d6deeb", - "token": "punctuation.definition.array" - }, - { - "foreground": "d6deeb", - "token": "punctuation.section.array" - }, - { - "foreground": "d6deeb", - "token": "meta.array" - }, - { - "foreground": "d9f5dd", - "token": "punctuation.definition.list.begin" - }, - { - "foreground": "d9f5dd", - "token": "punctuation.definition.list.end" - }, - { - "foreground": "d9f5dd", - "token": "punctuation.separator.arguments" - }, - { - "foreground": "d9f5dd", - "token": "punctuation.definition.list" - }, - { - "foreground": "d3423e", - "token": "string.template meta.template.expression" - }, - { - "foreground": "d6deeb", - "token": "string.template punctuation.definition.string" - }, - { - "foreground": "c792ea", - "fontStyle": "italic", - "token": "italic" - }, - { - "foreground": "addb67", - "fontStyle": "bold", - "token": "bold" - }, - { - "foreground": "82aaff", - "token": "constant.language" - }, - { - "foreground": "82aaff", - "token": "punctuation.definition.constant" - }, - { - "foreground": "82aaff", - "token": "variable.other.constant" - }, - { - "foreground": "7fdbca", - "token": "support.function.construct" - }, - { - "foreground": "7fdbca", - "token": "keyword.other.new" - }, - { - "foreground": "82aaff", - "token": "constant.character" - }, - { - "foreground": "82aaff", - "token": "constant.other" - }, - { - "foreground": "f78c6c", - "token": "constant.character.escape" - }, - { - "foreground": "addb67", - "token": "entity.other.inherited-class" - }, - { - "foreground": "d7dbe0", - "token": "variable.parameter" - }, - { - "foreground": "7fdbca", - "token": "entity.name.tag" - }, - { - "foreground": "cc2996", - "token": "punctuation.definition.tag.html" - }, - { - "foreground": "cc2996", - "token": "punctuation.definition.tag.begin" - }, - { - "foreground": "cc2996", - "token": "punctuation.definition.tag.end" - }, - { - "foreground": "addb67", - "token": "entity.other.attribute-name" - }, - { - "foreground": "addb67", - "token": "entity.name.tag.custom" - }, - { - "foreground": "82aaff", - "token": "support.function" - }, - { - "foreground": "82aaff", - "token": "support.constant" - }, - { - "foreground": "7fdbca", - "token": "upport.constant.meta.property-value" - }, - { - "foreground": "addb67", - "token": "support.type" - }, - { - "foreground": "addb67", - "token": "support.class" - }, - { - "foreground": "addb67", - "token": "support.variable.dom" - }, - { - "foreground": "7fdbca", - "token": "support.constant" - }, - { - "foreground": "7fdbca", - "token": "keyword.other.special-method" - }, - { - "foreground": "7fdbca", - "token": "keyword.other.new" - }, - { - "foreground": "7fdbca", - "token": "keyword.other.debugger" - }, - { - "foreground": "7fdbca", - "token": "keyword.control" - }, - { - "foreground": "c792ea", - "token": "keyword.operator.comparison" - }, - { - "foreground": "c792ea", - "token": "keyword.control.flow.js" - }, - { - "foreground": "c792ea", - "token": "keyword.control.flow.ts" - }, - { - "foreground": "c792ea", - "token": "keyword.control.flow.tsx" - }, - { - "foreground": "c792ea", - "token": "keyword.control.ruby" - }, - { - "foreground": "c792ea", - "token": "keyword.control.module.ruby" - }, - { - "foreground": "c792ea", - "token": "keyword.control.class.ruby" - }, - { - "foreground": "c792ea", - "token": "keyword.control.def.ruby" - }, - { - "foreground": "c792ea", - "token": "keyword.control.loop.js" - }, - { - "foreground": "c792ea", - "token": "keyword.control.loop.ts" - }, - { - "foreground": "c792ea", - "token": "keyword.control.import.js" - }, - { - "foreground": "c792ea", - "token": "keyword.control.import.ts" - }, - { - "foreground": "c792ea", - "token": "keyword.control.import.tsx" - }, - { - "foreground": "c792ea", - "token": "keyword.control.from.js" - }, - { - "foreground": "c792ea", - "token": "keyword.control.from.ts" - }, - { - "foreground": "c792ea", - "token": "keyword.control.from.tsx" - }, - { - "foreground": "ffffff", - "background": "ff2c83", - "token": "invalid" - }, - { - "foreground": "ffffff", - "background": "d3423e", - "token": "invalid.deprecated" - }, - { - "foreground": "7fdbca", - "token": "keyword.operator" - }, - { - "foreground": "c792ea", - "token": "keyword.operator.relational" - }, - { - "foreground": "c792ea", - "token": "keyword.operator.assignement" - }, - { - "foreground": "c792ea", - "token": "keyword.operator.arithmetic" - }, - { - "foreground": "c792ea", - "token": "keyword.operator.bitwise" - }, - { - "foreground": "c792ea", - "token": "keyword.operator.increment" - }, - { - "foreground": "c792ea", - "token": "keyword.operator.ternary" - }, - { - "foreground": "637777", - "token": "comment.line.double-slash" - }, - { - "foreground": "cdebf7", - "token": "object" - }, - { - "foreground": "ff5874", - "token": "constant.language.null" - }, - { - "foreground": "d6deeb", - "token": "meta.brace" - }, - { - "foreground": "c792ea", - "token": "meta.delimiter.period" - }, - { - "foreground": "d9f5dd", - "token": "punctuation.definition.string" - }, - { - "foreground": "ff5874", - "token": "constant.language.boolean" - }, - { - "foreground": "ffffff", - "token": "object.comma" - }, - { - "foreground": "7fdbca", - "token": "variable.parameter.function" - }, - { - "foreground": "80cbc4", - "token": "support.type.vendor.property-name" - }, - { - "foreground": "80cbc4", - "token": "support.constant.vendor.property-value" - }, - { - "foreground": "80cbc4", - "token": "support.type.property-name" - }, - { - "foreground": "80cbc4", - "token": "meta.property-list entity.name.tag" - }, - { - "foreground": "57eaf1", - "token": "meta.property-list entity.name.tag.reference" - }, - { - "foreground": "f78c6c", - "token": "constant.other.color.rgb-value punctuation.definition.constant" - }, - { - "foreground": "ffeb95", - "token": "constant.other.color" - }, - { - "foreground": "ffeb95", - "token": "keyword.other.unit" - }, - { - "foreground": "c792ea", - "token": "meta.selector" - }, - { - "foreground": "fad430", - "token": "entity.other.attribute-name.id" - }, - { - "foreground": "80cbc4", - "token": "meta.property-name" - }, - { - "foreground": "c792ea", - "token": "entity.name.tag.doctype" - }, - { - "foreground": "c792ea", - "token": "meta.tag.sgml.doctype" - }, - { - "foreground": "d9f5dd", - "token": "punctuation.definition.parameters" - }, - { - "foreground": "ecc48d", - "token": "string.quoted" - }, - { - "foreground": "ecc48d", - "token": "string.quoted.double" - }, - { - "foreground": "ecc48d", - "token": "string.quoted.single" - }, - { - "foreground": "addb67", - "token": "support.constant.math" - }, - { - "foreground": "addb67", - "token": "support.type.property-name.json" - }, - { - "foreground": "addb67", - "token": "support.constant.json" - }, - { - "foreground": "c789d6", - "token": "meta.structure.dictionary.value.json string.quoted.double" - }, - { - "foreground": "80cbc4", - "token": "string.quoted.double.json punctuation.definition.string.json" - }, - { - "foreground": "ff5874", - "token": "meta.structure.dictionary.json meta.structure.dictionary.value constant.language" - }, - { - "foreground": "d6deeb", - "token": "variable.other.ruby" - }, - { - "foreground": "ecc48d", - "token": "entity.name.type.class.ruby" - }, - { - "foreground": "ecc48d", - "token": "keyword.control.class.ruby" - }, - { - "foreground": "ecc48d", - "token": "meta.class.ruby" - }, - { - "foreground": "7fdbca", - "token": "constant.language.symbol.hashkey.ruby" - }, - { - "foreground": "e0eddd", - "background": "a57706", - "fontStyle": "italic", - "token": "meta.diff" - }, - { - "foreground": "e0eddd", - "background": "a57706", - "fontStyle": "italic", - "token": "meta.diff.header" - }, - { - "foreground": "ef535090", - "fontStyle": "italic", - "token": "markup.deleted" - }, - { - "foreground": "a2bffc", - "fontStyle": "italic", - "token": "markup.changed" - }, - { - "foreground": "a2bffc", - "fontStyle": "italic", - "token": "meta.diff.header.git" - }, - { - "foreground": "a2bffc", - "fontStyle": "italic", - "token": "meta.diff.header.from-file" - }, - { - "foreground": "a2bffc", - "fontStyle": "italic", - "token": "meta.diff.header.to-file" - }, - { - "foreground": "219186", - "background": "eae3ca", - "token": "markup.inserted" - }, - { - "foreground": "d3201f", - "token": "other.package.exclude" - }, - { - "foreground": "d3201f", - "token": "other.remove" - }, - { - "foreground": "269186", - "token": "other.add" - }, - { - "foreground": "ff5874", - "token": "constant.language.python" - }, - { - "foreground": "82aaff", - "token": "variable.parameter.function.python" - }, - { - "foreground": "82aaff", - "token": "meta.function-call.arguments.python" - }, - { - "foreground": "b2ccd6", - "token": "meta.function-call.python" - }, - { - "foreground": "b2ccd6", - "token": "meta.function-call.generic.python" - }, - { - "foreground": "d6deeb", - "token": "punctuation.python" - }, - { - "foreground": "addb67", - "token": "entity.name.function.decorator.python" - }, - { - "foreground": "8eace3", - "token": "source.python variable.language.special" - }, - { - "foreground": "82b1ff", - "token": "markup.heading.markdown" - }, - { - "foreground": "c792ea", - "fontStyle": "italic", - "token": "markup.italic.markdown" - }, - { - "foreground": "addb67", - "fontStyle": "bold", - "token": "markup.bold.markdown" - }, - { - "foreground": "697098", - "token": "markup.quote.markdown" - }, - { - "foreground": "80cbc4", - "token": "markup.inline.raw.markdown" - }, - { - "foreground": "ff869a", - "token": "markup.underline.link.markdown" - }, - { - "foreground": "ff869a", - "token": "markup.underline.link.image.markdown" - }, - { - "foreground": "d6deeb", - "token": "string.other.link.title.markdown" - }, - { - "foreground": "d6deeb", - "token": "string.other.link.description.markdown" - }, - { - "foreground": "82b1ff", - "token": "punctuation.definition.string.markdown" - }, - { - "foreground": "82b1ff", - "token": "punctuation.definition.string.begin.markdown" - }, - { - "foreground": "82b1ff", - "token": "punctuation.definition.string.end.markdown" - }, - { - "foreground": "82b1ff", - "token": "meta.link.inline.markdown punctuation.definition.string" - }, - { - "foreground": "7fdbca", - "token": "punctuation.definition.metadata.markdown" - }, - { - "foreground": "82b1ff", - "token": "beginning.punctuation.definition.list.markdown" - } - ], - "colors": { - "editor.foreground": "#d6deeb", - "editor.background": "#011627", - "editor.selectionBackground": "#5f7e9779", - "editor.lineHighlightBackground": "#010E17", - "editorCursor.foreground": "#80a4c2", - "editorWhitespace.foreground": "#2e2040", - "editorIndentGuide.background": "#5e81ce52", - "editor.selectionHighlightBorder": "#122d42" - } -} diff --git a/src/lib/store/thunks.ts b/src/lib/store/thunks.ts index 3deb9cd..ff19c74 100644 --- a/src/lib/store/thunks.ts +++ b/src/lib/store/thunks.ts @@ -9,7 +9,7 @@ import { nanoid } from "nanoid"; import { createProjectName, createStorage, toGitRaw } from ".."; import Bundler, { BuildInput } from "../../bundler"; import { isEntryName } from "../fs/filesystem"; -import nightOwl from "../monaco/themes/night_owl.json"; +import nightOwl from "../monaco/themes/night-owl.json"; import { REACT_JS, REACT_TS, VANILLA_JS, VANILLA_TS } from "../templates"; import { CLOSE_ALL_TABS, UPDATE_ROOT_DIR } from "./slices/editor"; import { UPDATE_SOURCE } from "./slices/preview"; diff --git a/src/styles/syntax.css b/src/styles/syntax.css index 6731e6c..01019d2 100644 --- a/src/styles/syntax.css +++ b/src/styles/syntax.css @@ -1,154 +1,16 @@ /* Dark theme overrides */ - -.ayu-dark .JsxText { - color: #d9d7ce; -} - -.ayu-dark .JsxSelfClosingElement, -.ayu-dark .JsxOpeningElement, -.ayu-dark .JsxClosingElement, -.ayu-dark .tagName-of-JsxOpeningElement, -.ayu-dark .tagName-of-JsxClosingElement, -.ayu-dark .tagName-of-JsxSelfClosingElement { - color: #5ccfe6; -} - -.ayu-dark .name-of-JsxAttribute { - color: #ffcf71; -} - -.ayu-dark .name-of-PropertyAssignment { - color: #bae67e; -} - -.ayu-dark .name-of-PropertyAccessExpression { - color: #ffcf71; -} - - -/* Common overrides */ -.monaco-editor .line-numbers { - color: currentColor; - opacity: 0.5; -} - -/* Light theme overrides */ -.ayu-light .JsxText { - color: #5c6773; -} - -.ayu-light .JsxSelfClosingElement, -.ayu-light .JsxOpeningElement, -.ayu-light .JsxClosingElement, -.ayu-light .tagName-of-JsxOpeningElement, -.ayu-light .tagName-of-JsxClosingElement, -.ayu-light .tagName-of-JsxSelfClosingElement { - color: #41a6d9 !important; -} - -.ayu-light .name-of-JsxAttribute { - color: #f08c36 !important; -} - -.ayu-light .name-of-PropertyAssignment { - color: #86b300; -} - -.ayu-light .name-of-PropertyAccessExpression { - color: #f08c36; -} - -/* Dark theme overrides */ -.ayu-dark .JsxText { - color: #d9d7ce; -} - -.ayu-dark .JsxSelfClosingElement, -.ayu-dark .JsxOpeningElement, -.ayu-dark .JsxClosingElement, -.ayu-dark .tagName-of-JsxOpeningElement, -.ayu-dark .tagName-of-JsxClosingElement, -.ayu-dark .tagName-of-JsxSelfClosingElement { - color: #5ccfe6; -} - -.ayu-dark .name-of-JsxAttribute { - color: #ffcf71; -} - -.ayu-dark .name-of-PropertyAssignment { - color: #bae67e; -} - -.ayu-dark .name-of-PropertyAccessExpression { - color: #ffcf71; -} - -.JsxText { - color: #5c6773; -} - -.JsxSelfClosingElement, -.JsxOpeningElement, -.JsxClosingElement, -.tagName-of-JsxOpeningElement, -.tagName-of-JsxClosingElement, -.tagName-of-JsxSelfClosingElement { - color: #41a6d9; -} - -.expression-of-PropertyAccessExpression { - color: #4cf8d9 !important; -} - -.Idetifier.tagName-of-JsxSelfClosingElement { - color: #baec5c !important; -} - -.Identifier.name-of-PropertyAccessExpression { - color: #ffad65 !important; -} - -.Identifier.name-of-ImportClause { - color: #d57df0; +.mtk56 { + color: #1bc5d7 !important; } -.ImportDeclaration { - color: #5bbdce !important; +.mtk30 { + color: #dec619 !important; } -.name-of-PropertyAssignment { - color: #86b300; -} - -.mtk58.Identifier.tagName-of-JsxSelfClosingElement { - color: #1ca1d6; -} - -.name-of-PropertyAccessExpression { - color: #edf036; -} - -.mtk17.ArrowFunction.initializer-of-VariableDeclaration { - color: #edf036; +.mtk55 { + color: #dec619 !important; } .mtk1 { - color: #accada; -} - -.mtk1.Identifier.tagName-of-JsxClosingElement { - color: #41a6d9; -} - -.mtk1.Identifier.tagName-of-JsxOpeningElement { - color: #41a6d9; -} - -.mtk17.EqualsGreaterThanToken.equalsGreaterThanToken-of-ArrowFunction { - color: #a4a9f3 !important; -} - -.mtk17.VariableDeclaration { - color: #a4a9f3 !important; -} + color: #c792ea !important; +} \ No newline at end of file diff --git a/workers/prettier.worker.js b/workers/prettier.worker.js index 985631e..674dfbf 100644 --- a/workers/prettier.worker.js +++ b/workers/prettier.worker.js @@ -10,8 +10,8 @@ const options = { parser: "html", htmlWhitespaceSensitivity: "strict", plugins: [await import("prettier/parser-html")], - printWidth: 100000, - tabWidth: 2, + printWidth: 100, + tabWidth: 1, }), css: async () => ({ parser: "css",