From 7001509de3e6d1d0f7e86b858a2d5e5b1bb03358 Mon Sep 17 00:00:00 2001 From: "Jan T. Sott" Date: Mon, 17 Jul 2017 18:07:42 +0200 Subject: [PATCH] switch to JSON theme format --- package.json | 7 +- themes/hopscotch.json | 342 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 348 insertions(+), 1 deletion(-) create mode 100644 themes/hopscotch.json diff --git a/package.json b/package.json index 541450d..2e52529 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,12 @@ "contributes": { "themes": [ { - "label": "Hopscotch (Syntax Theme)", + "label": "Hopscotch", + "uiTheme": "vs-dark", + "path": "./themes/hopscotch.json" + }, + { + "label": "Hopscotch (TextMate Theme)", "uiTheme": "vs-dark", "path": "./themes/hopscotch.tmTheme" } diff --git a/themes/hopscotch.json b/themes/hopscotch.json new file mode 100644 index 0000000..bf30375 --- /dev/null +++ b/themes/hopscotch.json @@ -0,0 +1,342 @@ +{ + "name": "Hopscotch", + "type": "dark", + "colors": { + "editor.background": "#322931", + "editor.foreground": "#b9b5b8" + }, + "tokenColors": [ + { + "settings": { + "background": "#322931", + "foreground": "#b9b5b8" + } + }, + { + "name": "Text", + "scope": "variable.parameter.function", + "settings": { + "foreground": "#b9b5b8" + } + }, + { + "name": "Comments", + "scope": [ + "comment", + "punctuation.definition.comment" + ], + "settings": { + "foreground": "#797379" + } + }, + { + "name": "Punctuation", + "scope": [ + "punctuation.definition.string", + "punctuation.definition.variable", + "punctuation.definition.string", + "punctuation.definition.parameters", + "punctuation.definition.string", + "punctuation.definition.array" + ], + "settings": { + "foreground": "#b9b5b8" + } + }, + { + "name": "Delimiters", + "scope": "none", + "settings": { + "foreground": "#b9b5b8" + } + }, + { + "name": "Operators", + "scope": "keyword.operator", + "settings": { + "foreground": "#b9b5b8" + } + }, + { + "name": "Keywords", + "scope": [ + "keyword", + "keyword.control" + ], + "settings": { + "foreground": "#c85e7c" + } + }, + { + "name": "Variables", + "scope": "variable", + "settings": { + "foreground": "#dd464c" + } + }, + { + "name": "Functions", + "scope": [ + "entity.name.function", + "meta.require", + "support.function.any-method" + ], + "settings": { + "foreground": "#1290bf" + } + }, + { + "name": "Classes", + "scope": [ + "support.class", + "entity.name.class", + "entity.name.type" + ], + "settings": { + "foreground": "#fdcc59" + } + }, + { + "name": "Methods", + "scope": "keyword.other.special-method", + "settings": { + "foreground": "#1290bf" + } + }, + { + "name": "Storage", + "scope": "storage", + "settings": { + "foreground": "#c85e7c" + } + }, + { + "name": "Support", + "scope": "support.function", + "settings": { + "foreground": "#7e602c" + } + }, + { + "name": "Strings, Inherited Class", + "scope": [ + "string", + "constant.other.symbol", + "entity.other.inherited-class" + ], + "settings": { + "foreground": "#8fc13e" + } + }, + { + "name": "Integers", + "scope": "constant.numeric", + "settings": { + "foreground": "#fd8b19" + } + }, + { + "name": "Floats", + "scope": "none", + "settings": { + "foreground": "#fd8b19" + } + }, + { + "name": "Boolean", + "scope": "none", + "settings": { + "foreground": "#fd8b19" + } + }, + { + "name": "Constants", + "scope": "constant", + "settings": { + "foreground": "#fd8b19" + } + }, + { + "name": "Tags", + "scope": "entity.name.tag", + "settings": { + "foreground": "#dd464c" + } + }, + { + "name": "Attributes", + "scope": "entity.other.attribute-name", + "settings": { + "foreground": "#fd8b19" + } + }, + { + "name": "Attribute IDs", + "scope": [ + "entity.other.attribute-name.id", + "punctuation.definition.entity" + ], + "settings": { + "foreground": "#1290bf" + } + }, + { + "name": "Selector", + "scope": "meta.selector", + "settings": { + "foreground": "#c85e7c" + } + }, + { + "name": "Values", + "scope": "none", + "settings": { + "foreground": "#fd8b19" + } + }, + { + "name": "Headings", + "scope": [ + "markup.heading", + "markup.heading.setext", + "punctuation.definition.heading", + "entity.name.section" + ], + "settings": { + "fontStyle": "", + "foreground": "#1290bf" + } + }, + { + "name": "Units", + "scope": "keyword.other.unit", + "settings": { + "foreground": "#fd8b19" + } + }, + { + "name": "Bold", + "scope": [ + "markup.bold", + "punctuation.definition.bold" + ], + "settings": { + "fontStyle": "bold", + "foreground": "#fdcc59" + } + }, + { + "name": "Italic", + "scope": [ + "markup.italic", + "punctuation.definition.italic" + ], + "settings": { + "fontStyle": "italic", + "foreground": "#c85e7c" + } + }, + { + "name": "Code", + "scope": "markup.inline.raw", + "settings": { + "foreground": "#8fc13e" + } + }, + { + "name": "Link Text", + "scope": "string.other.link", + "settings": { + "foreground": "#dd464c" + } + }, + { + "name": "Link Url", + "scope": "meta.link", + "settings": { + "foreground": "#fd8b19" + } + }, + { + "name": "Lists", + "scope": "markup.list", + "settings": { + "foreground": "#dd464c" + } + }, + { + "name": "Quotes", + "scope": "markup.quote", + "settings": { + "foreground": "#fd8b19" + } + }, + { + "name": "Separator", + "scope": "meta.separator", + "settings": { + "background": "#5c545b", + "foreground": "#b9b5b8" + } + }, + { + "name": "Inserted", + "scope": "markup.inserted", + "settings": { + "foreground": "#8fc13e" + } + }, + { + "name": "Deleted", + "scope": "markup.deleted", + "settings": { + "foreground": "#dd464c" + } + }, + { + "name": "Changed", + "scope": "markup.changed", + "settings": { + "foreground": "#c85e7c" + } + }, + { + "name": "Colors", + "scope": "constant.other.color", + "settings": { + "foreground": "#7e602c" + } + }, + { + "name": "Regular Expressions", + "scope": "string.regexp", + "settings": { + "foreground": "#7e602c" + } + }, + { + "name": "Escape Characters", + "scope": "constant.character.escape", + "settings": { + "foreground": "#7e602c" + } + }, + { + "name": "Embedded", + "scope": [ + "punctuation.section.embedded", + "variable.interpolation" + ], + "settings": { + "foreground": "#149b93" + } + }, + { + "name": "Invalid", + "scope": "invalid.illegal", + "settings": { + "foreground": "#dd464c" + } + } + ] +} \ No newline at end of file