From 566bbb3f7fa21d5170bfeb789e0d242c7a628066 Mon Sep 17 00:00:00 2001 From: Chiru B <33750251+itsezc@users.noreply.github.com> Date: Sun, 21 Aug 2022 04:26:14 +0530 Subject: [PATCH 1/2] Add Cosmos theme and OpenVSX registry (#6) * remove(theme): moon * add: OpenVSX registry * update: Github workflow reuse extension package * update(icons): theme name to cosmos * add(theme): Cosmos with @Vrishtrix --- .github/workflows/marketplace.yml | 6 + package.json | 6 +- themes/cosmos.json | 784 ++++++++++++++++++++++++++++++ themes/moon.json | 47 -- 4 files changed, 793 insertions(+), 50 deletions(-) create mode 100644 themes/cosmos.json delete mode 100644 themes/moon.json diff --git a/.github/workflows/marketplace.yml b/.github/workflows/marketplace.yml index ab2c8c0..1101e7d 100644 --- a/.github/workflows/marketplace.yml +++ b/.github/workflows/marketplace.yml @@ -14,8 +14,14 @@ jobs: node-version: latest - run: npm ci - run: npm run prepublish + - name: Publish to OpenVSX Registry + id: publishToOpenVSX + uses: HaaLeo/publish-vscode-extension@v1 + with: + pat: ${{ secrets.OPEN_VSX_TOKEN }} - name: Publish to VSCode Marketplace uses: HaaLeo/publish-vscode-extension@v1 with: pat: ${{ secrets.VS_MARKETPLACE_TOKEN }} registryUrl: https://marketplace.visualstudio.com + extensionFile: ${{ steps.publishToOpenVSX.outputs.vsixPath }} diff --git a/package.json b/package.json index 28e107c..33de8c5 100644 --- a/package.json +++ b/package.json @@ -313,15 +313,15 @@ "iconThemes": [ { "id": "foretag-default-icons", - "label": "Foretag: Icons", + "label": "Foretag: Cosmos", "path": "./build/icons.json" } ], "themes": [ { - "label": "Foretag: Moon", + "label": "Foretag: Cosmos", "uiTheme": "vs-dark", - "path": "./themes/moon.json" + "path": "./themes/cosmos.json" }, { "label": "Foretag: Indigo", diff --git a/themes/cosmos.json b/themes/cosmos.json new file mode 100644 index 0000000..85c06bf --- /dev/null +++ b/themes/cosmos.json @@ -0,0 +1,784 @@ +{ + "name": "Cosmos", + "type": "dark", + "colors": { + // Basics + "progressBar.background": "#5D21D2", + "list.focusBackground": "#191919", + "list.activeSelectionForeground": "#f2eeff", + "list.hoverBackground": "#1C1C1C", + "list.activeSelectionBackground": "#303030", + "list.inactiveSelectionBackground": "#303030", + // Scrollbar slider + "scrollbarSlider.background": "#191919", + "scrollbarSlider.activeBackground": "#303030", + "scrollbarSlider.hoverBackground": "#303030", + // Editor + "editor.background": "#1C1C1C", + "editor.foreground": "#DAD6DA", + "editor.hoverHighlightBackground": "#211F39", + "editor.selectionHighlightBackground": "#38335e", + "editor.selectionBackground": "#6A6793", + "editorLineNumber.foreground": "#303030", + "editorLineNumber.activeForeground": "#7B797B", + "editor.lineHighlightBorder": "#303030", + "editor.lineHighlightBackground": "#303030", + "editorSuggestWidget.background": "#161526", + "editorSuggestWidget.selectedBackground": "#1C1D30", + "editor.wordHighlightBackground": "#4c496b", + "editor.findMatchBackground": "#534f79", + "editorMarkerNavigation.background": "#161526", + // Shadow + "scrollbar.shadow": "#00000000", + "widget.shadow": "#00000000", + // Editor Brackets + "editorBracketMatch.background": "#303030", + "editorBracketMatch.border": "#303030", + // Editor lines + "editorIndentGuide.background": "#303030", + "editorIndentGuide.activeBackground": "#7B797B", + "editorRuler.foreground": "#303030", + // Breadcrumb + "breadcrumb.background": "#1C1C1C", + "breadcrumb.foreground": "#7B797B", + "breadcrumb.focusForeground": "#F1EDF1", + // Widgets + "editorWidget.background": "#303030", + "pickerGroup.foreground": "#191919", + // Sidebar + "sideBarTitle.foreground": "#fff", + "sideBar.border": "#191919", + "sideBarSectionHeader.background": "#1C1C1C", + "sideBarSectionHeader.border": "#1C1C1C", + "sideBar.background": "#191919", + "sideBar.foreground": "#e7e3f5ef", + // Tabs + "tab.border": "#191919", + "tab.inactiveForeground": "#ddd9ee8a", + "tab.hoverForeground": "#d3cfe5", + "tab.hoverBackground": "#303030", + "tab.activeBackground": "#1C1C1C", + "tab.inactiveBackground": "#191919", + "editorGroupHeader.tabsBackground": "#191919", + // Titlebar + "titleBar.activeBackground": "#191919", + "titleBar.activeForeground": "#f1e8ff", + "titleBar.inactiveBackground": "#161526", + "titleBar.inactiveForeground": "#f1e8ff", + // Menubar + "menu.background": "#303030", + // Activitybar + "activityBarBadge.background": "#5D21D2", + "activityBarBadge.foreground": "#F1EDF1", + "activityBar.foreground": "#FFCFD4", + "activityBar.background": "#191919", + "activityBar.border": "#191919", + // Statusbar + "statusBar.background": "#191919", + // Input + "input.background": "#23263C", + "input.placeholderForeground": "#b7b5d49c", + // Debug and misc + "debugToolBar.background": "#171529f6", + "gitDecoration.ignoredResourceForeground": "#69698f", + "terminal.background": "#161526", + "panel.border": "#191919", + "panelTitle.activeForeground": "#feeeff", + "statusBarItem.remoteBackground": "#303030", + "statusBarItem.remoteForeground": "#ccc" + }, + "tokenColors": [ + { + "name": "Comment", + "scope": [ + "comment", + "punctuation.definition.comment" + ], + "settings": { + "fontStyle": "italic", + "foreground": "#f0fff850" + } + }, + { + "name": "Variables", + "scope": [ + "variable", + "string constant.other.placeholder", + "meta.function-call" + ], + "settings": { + "foreground": "#f6f3fc" + } + }, + { + "name": "Colors", + "scope": [ + "constant.other.color" + ], + "settings": { + "foreground": "#310000" + } + }, + { + "name": "Invalid", + "scope": [ + "invalid", + "invalid.illegal" + ], + "settings": { + "foreground": "#FF5370" + } + }, + { + "name": "Keyword, Storage", + "scope": [ + "keyword", + "storage.type", + "storage.modifier" + ], + "settings": { + "foreground": "#B289F1" + } + }, + { + "name": "Keyword, Storage", + "scope": [ + "keyword.control" + ], + "settings": { + "fontStyle": "" + } + }, + { + "name": "Operator, Misc", + "scope": [ + "punctuation", + "punctuation.separator.inheritance.php", + "punctuation.definition.tag.html", + "punctuation.definition.tag.begin.html", + "punctuation.definition.tag.end.html", + "punctuation.section.embedded", + "keyword.other.template", + "keyword.control", + "constant.other.color", + "keyword.other.substitution" + ], + "settings": { + "foreground": "#B289F1" + } + }, + { + "name": "Operator, Misc", + "scope": [ + "punctuation.separator" + ], + "settings": { + "foreground": "#f6f3fc" + } + }, + { + "name": "Operator, Misc", + "scope": [ + "meta.tag" + ], + "settings": { + "foreground": "#f6f3fc" + } + }, + { + "name": "Operator, Misc", + "scope": [ + "punctuation.definition.tag", + ], + "settings": { + "foreground": "#cfcfee" + } + }, + { + "name": "Tag", + "scope": [ + "entity.name.tag", + "meta.tag.sgml", + "markup.deleted.git_gutter" + ], + "settings": { + "foreground": "#ff519f" + } + }, + { + "name": "Function, Special Method", + "scope": [ + "entity.name.function", + "variable.function", + "support.function", + "keyword.other.special-method" + ], + "settings": { + "foreground": "#2DE4A1" + } + }, + { + "name": "Block Level Variables", + "scope": [ + "meta.block variable.other", + ], + "settings": { + "foreground": "#f6f3fc" + } + }, + { + "name": "Block Level Variables", + "scope": [ + "meta.block", + ], + "settings": { + "foreground": "#f07178" + } + }, + { + "name": "Other Variable, String Link", + "scope": [ + "support.other.variable", + "string.other.link" + ], + "settings": { + "foreground": "#f07178" + } + }, + { + "name": "Number, Constant, Function Argument, Tag Attribute, Embedded", + "scope": [ + "constant.numeric", + "constant.language", + "support.constant", + "constant.character", + "constant.escape", + "variable.parameter", + "keyword.other.unit", + "keyword.other" + ], + "settings": { + "foreground": "#FF67B1" + } + }, + { + "name": "String, Symbols, Inherited Class, Markup Heading", + "scope": [ + "string", + "constant.other.symbol", + "constant.other.key", + "entity.other.inherited-class", + "markup.heading", + "markup.inserted.git_gutter", + "meta.group.braces.curly constant.other.object.key.js string.unquoted.label.js" + ], + "settings": { + "foreground": "#ffabb5" + } + }, + { + "name": "Class, Support", + "scope": [ + "entity.name", + "support.type", + "support.class", + "support.orther.namespace.use.php", + "meta.use.php", + "support.other.namespace.php", + "markup.changed.git_gutter", + "support.type.sys-types" + ], + "settings": { + "foreground": "#ffdf89" + } + }, + { + "name": "Entity Types", + "scope": [ + "support.type" + ], + "settings": { + "foreground": "#B2CCD6" + } + }, + { + "name": "CSS Class and Support", + "scope": [ + "source.css support.type.property-name", + "source.sass support.type.property-name", + "source.scss support.type.property-name", + "source.less support.type.property-name", + "source.stylus support.type.property-name", + "source.postcss support.type.property-name" + ], + "settings": { + "foreground": "#fcf2ff" + } + }, + { + "name": "Sub-methods", + "scope": [ + "entity.name.module.js", + "variable.import.parameter.js", + "variable.other.class.js" + ], + "settings": { + "foreground": "#FF5370" + } + }, + { + "name": "Language methods", + "scope": [ + "variable.language" + ], + "settings": { + "fontStyle": "italic", + "foreground": "#FF5370" + } + }, + { + "name": "entity.name.method.js", + "scope": [ + "entity.name.method.js" + ], + "settings": { + "fontStyle": "italic", + "foreground": "#82AAFF" + } + }, + { + "name": "meta.method.js", + "scope": [ + "meta.class-method.js entity.name.function.js", + "variable.function.constructor" + ], + "settings": { + "foreground": "#82AAFF" + } + }, + { + "name": "Attributes", + "scope": [ + "entity.other.attribute-name" + ], + "settings": { + "fontStyle": "italic", + "foreground": "#b28bda" + } + }, + { + "name": "HTML Attributes", + "scope": [ + "text.html.basic entity.other.attribute-name.html", + "text.html.basic entity.other.attribute-name" + ], + "settings": { + "fontStyle": "italic", + "foreground": "#f01111" + } + }, + { + "name": "CSS Classes", + "scope": [ + "entity.other.attribute-name.class" + ], + "settings": { + "foreground": "#9ed8ff" + } + }, + { + "name": "CSS ID's", + "scope": [ + "source.sass keyword.control" + ], + "settings": { + "foreground": "#ff8282" + } + }, + { + "name": "Inserted", + "scope": [ + "markup.inserted" + ], + "settings": { + "foreground": "#C3E88D" + } + }, + { + "name": "Deleted", + "scope": [ + "markup.deleted" + ], + "settings": { + "foreground": "#FF5370" + } + }, + { + "name": "Changed", + "scope": [ + "markup.changed" + ], + "settings": { + "foreground": "#C792EA" + } + }, + { + "name": "Regular Expressions", + "scope": [ + "string.regexp" + ], + "settings": { + "foreground": "#89DDFF" + } + }, + { + "name": "Escape Characters", + "scope": [ + "constant.character.escape" + ], + "settings": { + "foreground": "#89DDFF" + } + }, + { + "name": "URL", + "scope": [ + "*url*", + "*link*", + "*uri*" + ], + "settings": { + "fontStyle": "underline" + } + }, + { + "name": "Decorators", + "scope": [ + "tag.decorator.js entity.name.tag.js", + "tag.decorator.js punctuation.definition.tag.js" + ], + "settings": { + "fontStyle": "italic", + "foreground": "#82AAFF" + } + }, + { + "name": "ES7 Bind Operator", + "scope": [ + "source.js constant.other.object.key.js string.unquoted.label.js" + ], + "settings": { + "fontStyle": "italic", + "foreground": "#FF5370" + } + }, + { + "name": "JSON Key - Level 0", + "scope": [ + "source.json meta.structure.dictionary.json support.type.property-name.json" + ], + "settings": { + "foreground": "#C792EA" + } + }, + { + "name": "JSON Key - Level 1", + "scope": [ + "source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json" + ], + "settings": { + "foreground": "#FFCB6B" + } + }, + { + "name": "JSON Key - Level 2", + "scope": [ + "source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json" + ], + "settings": { + "foreground": "#F78C6C" + } + }, + { + "name": "JSON Key - Level 3", + "scope": [ + "source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json" + ], + "settings": { + "foreground": "#FF5370" + } + }, + { + "name": "JSON Key - Level 4", + "scope": [ + "source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json" + ], + "settings": { + "foreground": "#C17E70" + } + }, + { + "name": "JSON Key - Level 5", + "scope": [ + "source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json" + ], + "settings": { + "foreground": "#82AAFF" + } + }, + { + "name": "JSON Key - Level 6", + "scope": [ + "source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json" + ], + "settings": { + "foreground": "#f07178" + } + }, + { + "name": "JSON Key - Level 7", + "scope": [ + "source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json" + ], + "settings": { + "foreground": "#C792EA" + } + }, + { + "name": "JSON Key - Level 8", + "scope": [ + "source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json" + ], + "settings": { + "foreground": "#C3E88D" + } + }, + { + "name": "Markdown - Plain", + "scope": [ + "text.html.markdown", + "punctuation.definition.list_item.markdown" + ], + "settings": { + "foreground": "#EEFFFF" + } + }, + { + "name": "Markdown - Markup Raw Inline", + "scope": [ + "text.html.markdown markup.inline.raw.markdown" + ], + "settings": { + "foreground": "#C792EA" + } + }, + { + "name": "Markdown - Markup Raw Inline Punctuation", + "scope": [ + "text.html.markdown markup.inline.raw.markdown punctuation.definition.raw.markdown" + ], + "settings": { + "foreground": "#65737E" + } + }, + { + "name": "Markdown - Heading", + "scope": [ + "markdown.heading", + "markup.heading | markup.heading entity.name", + "markup.heading.markdown punctuation.definition.heading.markdown" + ], + "settings": { + "foreground": "#C3E88D" + } + }, + { + "name": "Markup - Italic", + "scope": [ + "markup.italic" + ], + "settings": { + "fontStyle": "italic", + "foreground": "#f07178" + } + }, + { + "name": "Markup - Bold", + "scope": [ + "markup.bold", + "markup.bold string" + ], + "settings": { + "fontStyle": "bold", + "foreground": "#f07178" + } + }, + { + "name": "Markup - Bold-Italic", + "scope": [ + "markup.bold markup.italic", + "markup.italic markup.bold", + "markup.quote markup.bold", + "markup.bold markup.italic string", + "markup.italic markup.bold string", + "markup.quote markup.bold string" + ], + "settings": { + "fontStyle": "bold", + "foreground": "#f07178" + } + }, + { + "name": "Markup - Underline", + "scope": [ + "markup.underline" + ], + "settings": { + "fontStyle": "underline", + "foreground": "#F78C6C" + } + }, + { + "name": "Markdown - Blockquote", + "scope": [ + "markup.quote punctuation.definition.blockquote.markdown" + ], + "settings": { + "foreground": "#65737E" + } + }, + { + "name": "Markup - Quote", + "scope": [ + "markup.quote" + ], + "settings": { + "fontStyle": "italic" + } + }, + { + "name": "Markdown - Link", + "scope": [ + "string.other.link.title.markdown" + ], + "settings": { + "foreground": "#82AAFF" + } + }, + { + "name": "Markdown - Link Description", + "scope": [ + "string.other.link.description.title.markdown" + ], + "settings": { + "foreground": "#C792EA" + } + }, + { + "name": "Markdown - Link Anchor", + "scope": [ + "constant.other.reference.link.markdown" + ], + "settings": { + "foreground": "#FFCB6B" + } + }, + { + "name": "Markup - Raw Block", + "scope": [ + "markup.raw.block" + ], + "settings": { + "foreground": "#C792EA" + } + }, + { + "name": "Markdown - Raw Block Fenced", + "scope": [ + "markup.raw.block.fenced.markdown" + ], + "settings": { + "foreground": "#00000050" + } + }, + { + "name": "Markdown - Fenced Bode Block", + "scope": [ + "punctuation.definition.fenced.markdown" + ], + "settings": { + "foreground": "#ff000050" + } + }, + { + "name": "Markdown - Fenced Bode Block Variable", + "scope": [ + "markup.raw.block.fenced.markdown", + "variable.language.fenced.markdown", + "punctuation.section.class.end" + ], + "settings": { + "foreground": "#EEFFFF" + } + }, + { + "name": "Markdown - Fenced Language", + "scope": [ + "variable.language.fenced.markdown" + ], + "settings": { + "foreground": "#65737E" + } + }, + { + "name": "Markdown - Separator", + "scope": [ + "meta.separator" + ], + "settings": { + "fontStyle": "bold", + "foreground": "#65737E" + } + }, + { + "name": "Markup - Table", + "scope": [ + "markup.table" + ], + "settings": { + "foreground": "#EEFFFF" + } + }, + { + "name": "TOML - Entry", + "scope": [ + "variable.key.toml", + ], + "settings": { + "fontStyle": "bold", + "foreground": "#C792EA" + } + }, + { + "name": "TOML - Table Punctuation", + "scope": [ + "punctuation.definition.table.toml", + ], + "settings": { + "fontStyle": "bold", + "foreground": "#C792EA" + } + }, + { + "name": "TOML - Table Content", + "scope": [ + "variable.key.table.toml", + "punctuation.separator.dot" + ], + "settings": { + "fontStyle": "bold", + "foreground": "#C3E88D" + } + } + ] +} \ No newline at end of file diff --git a/themes/moon.json b/themes/moon.json deleted file mode 100644 index 8ccfaef..0000000 --- a/themes/moon.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "name": "Moon", - "type": "dark", - "colors": { - // Editor - "editor.background": "#0d0d0d", - // Sidebar - "sideBar.background": "#0d0d0d", - "sideBar.foreground": "#d3d3d3", - "sideBar.border": "#333333", - "sideBarSectionHeader.border": "#33333", - "sideBarSectionHeader.background": "#333333", - "sideBarSectionHeader.foreground": "#bababa", - // Activitybar - "activityBarBadge.background": "#0084ff", - "activityBar.foreground": "#FFCFD4", - "activityBar.background": "#262626", - "activityBar.border": "#333333", - // Titlebar - "titleBar.activeBackground": "#262626", - "titleBar.activeForeground": "#eeeeee", - "titleBar.inactiveBackground": "#262626", - "titleBar.inactiveForeground": "#eeeeee", - // Tabs - "tab.activeBorderTop": "#f3f3f3", - "tab.activeBackground": "#0d0d0d", - "tab.border": "#151327", - "tab.inactiveForeground": "#ddd9ee8a", - "tab.inactiveBackground": "#0d0d0d", - "tab.hoverForeground": "#d3cfe5", - "tab.hoverBackground": "#0d0d0d", - "editorGroupHeader.tabsBackground": "#262626", - // Statusbar - "statusBar.background": "#262626", - // Terminal - "terminal.background": "#0d0d0d", - // Panel - "panel.background": "#262626", - "panel.foreground": "#e3e3e3", - "panel.activeForeground": "#0d0d0d", - "panel.border": "#333333", - // Input - "input.background": "#262626", - "input.border": "#3f3f3f", - "input.placeholderForeground": "#bdbdbd", - } -} \ No newline at end of file From b998b2de4cd27642d584ab5829372b131719a9c3 Mon Sep 17 00:00:00 2001 From: itsezc Date: Sat, 20 Aug 2022 23:57:36 +0100 Subject: [PATCH 2/2] chore: bump version to 0.1.1 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 28e107c..6226c81 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "development-toolkit", "displayName": "Foretag Development Toolkit", "description": "Foretag themes, tools & extensions for VS Code", - "version": "0.1.0", + "version": "0.1.1", "keywords": [ "rust", "themes",