Skip to content

Commit

Permalink
feat(theme): add white theme.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Aug 29, 2023
1 parent b3ee803 commit 54ee05f
Show file tree
Hide file tree
Showing 24 changed files with 909 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,13 @@ jobs:
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: 📦 @uiw/codemirror-theme-copilot publish to NPM
run: npm publish --access public
working-directory: ./themes/copilot/
continue-on-error: true
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: 📦 @uiw/codemirror-theme-sublime publish to NPM
run: npm publish --access public
working-directory: ./themes/sublime/
Expand Down Expand Up @@ -341,6 +348,13 @@ jobs:
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: 📦 @uiw/codemirror-theme-white publish to NPM
run: npm publish --access public
working-directory: ./themes/white/
continue-on-error: true
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: 📦 @uiw/codemirror-theme-xcode publish to NPM
run: npm publish --access public
working-directory: ./themes/xcode/
Expand Down
1 change: 1 addition & 0 deletions core/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ npm install @uiw/react-codemirror --save
| `@uiw/codemirror-theme-tokyo-night-storm` | [![npm version](https://img.shields.io/npm/v/@uiw/codemirror-theme-tokyo-night-storm.svg)](https://www.npmjs.com/package/@uiw/codemirror-theme-tokyo-night-storm) [![NPM Downloads](https://img.shields.io/npm/dm/@uiw/codemirror-theme-tokyo-night-storm.svg?style=flat)](https://www.npmjs.com/package/@uiw/codemirror-theme-tokyo-night-storm) | [`#preview`](https://uiwjs.github.io/react-codemirror/#/theme/data/tokyo-night-storm) |
| `@uiw/codemirror-theme-tokyo-night-day` | [![npm version](https://img.shields.io/npm/v/@uiw/codemirror-theme-tokyo-night-day.svg)](https://www.npmjs.com/package/@uiw/codemirror-theme-tokyo-night-day) [![NPM Downloads](https://img.shields.io/npm/dm/@uiw/codemirror-theme-tokyo-night-day.svg?style=flat)](https://www.npmjs.com/package/@uiw/codemirror-theme-tokyo-night-day) | [`#preview`](https://uiwjs.github.io/react-codemirror/#/theme/data/tokyo-night-day) |
| `@uiw/codemirror-theme-vscode` | [![npm version](https://img.shields.io/npm/v/@uiw/codemirror-theme-vscode.svg)](https://www.npmjs.com/package/@uiw/codemirror-theme-vscode) [![NPM Downloads](https://img.shields.io/npm/dm/@uiw/codemirror-theme-vscode.svg?style=flat)](https://www.npmjs.com/package/@uiw/codemirror-theme-vscode) | [`#preview`](https://uiwjs.github.io/react-codemirror/#/theme/data/vscode) |
| `@uiw/codemirror-theme-white` | [![npm version](https://img.shields.io/npm/v/@uiw/codemirror-theme-white.svg)](https://www.npmjs.com/package/@uiw/codemirror-theme-white) [![NPM Downloads](https://img.shields.io/npm/dm/@uiw/codemirror-theme-white.svg?style=flat)](https://www.npmjs.com/package/@uiw/codemirror-theme-white) | [`#preview`](https://uiwjs.github.io/react-codemirror/#/theme/data/white/light) |
| `@uiw/codemirror-theme-tomorrow-night-blue` | [![npm version](https://img.shields.io/npm/v/@uiw/codemirror-theme-tomorrow-night-blue.svg)](https://www.npmjs.com/package/@uiw/codemirror-theme-tomorrow-night-blue) [![NPM Downloads](https://img.shields.io/npm/dm/@uiw/codemirror-theme-tomorrow-night-blue.svg?style=flat)](https://www.npmjs.com/package/@uiw/codemirror-theme-tomorrow-night-blue) | [`#preview`](https://uiwjs.github.io/react-codemirror/#/theme/data/tomorrow-night-blue) |
| `@uiw/codemirror-theme-xcode` | [![npm version](https://img.shields.io/npm/v/@uiw/codemirror-theme-xcode.svg)](https://www.npmjs.com/package/@uiw/codemirror-theme-xcode) [![NPM Downloads](https://img.shields.io/npm/dm/@uiw/codemirror-theme-xcode.svg?style=flat)](https://www.npmjs.com/package/@uiw/codemirror-theme-xcode) | [`#preview`](https://uiwjs.github.io/react-codemirror/#/theme/data/xcode) |

Expand Down
2 changes: 2 additions & 0 deletions themes/_scripts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,5 @@ Not perfect themes for [cm6](https://github.com/codemirror/dev/), generated from
- [theme-solarized-light](https://github.com/microsoft/vscode/tree/main/extensions/theme-solarized-light)
- [theme-tomorrow-night-blue](https://github.com/microsoft/vscode/tree/main/extensions/theme-tomorrow-night-blue)
- [Andromeda](https://github.com/EliverLara/Andromeda/blob/master/themes/Andromeda-color-theme.json)
- [Copilot](https://github.com/benjaminbenais/copilot-theme/blob/main/themes/Copilot%20Theme-color-theme.json)
- [White](https://github.com/xthezealot/white-theme-vscode/tree/master/themes)
220 changes: 220 additions & 0 deletions themes/_scripts/data/white.dark.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,220 @@
{
"colors": {
"activityBar.background": "#000",
"activityBar.border": "#0000",
"activityBar.foreground": "#2e2e37",
"activityBarBadge.background": "#fff",
"activityBarBadge.foreground": "#000",
"badge.background": "#fff",
"badge.foreground": "#000",
"button.background": "#7d46fc",
"button.foreground": "#fff",
"contrastBorder": "#0000",
"debugToolBar.background": "#0a0b0f",
"diffEditor.insertedTextBackground": "#00ff6833",
"diffEditor.removedTextBackground": "#ff003233",
"dropdown.background": "#0a0b0f",
"dropdown.border": "#1e1d27",
"dropdown.foreground": "#fff",
"editor.background": "#000",
"editor.findMatchBackground": "#ffca0099",
"editor.findMatchHighlightBackground": "#ffca004c",
"editor.focusedStackFrameHighlightBackground": "#f909",
"editor.foreground": "#fff",
"editor.lineHighlightBackground": "#7d46fc14",
"editor.lineHighlightBorder": "#0000",
"editor.selectionBackground": "#7d46fc7f",
"editor.selectionForeground": "#000",
"editor.selectionHighlightBorder": "#7d46fc3f",
"editor.stackFrameHighlightBackground": "#ff99004c",
"editor.wordHighlightBackground": "#7d46fc3f",
"editor.wordHighlightStrongBackground": "#7d46fc7f",
"editorBracketMatch.background": "#7d46fc7f",
"editorBracketMatch.border": "#0000",
"editorCursor.foreground": "#7d46fc",
"editorError.foreground": "#ff0032",
"editorGroup.border": "#0a0b0f",
"editorGroupHeader.tabsBackground": "#000",
"editorGroupHeader.tabsBorder": "#0000",
"editorGutter.addedBackground": "#00ff68",
"editorGutter.deletedBackground": "#ff0032",
"editorGutter.modifiedBackground": "#fff",
"editorIndentGuide.background": "#0a0b0f",
"editorLineNumber.activeForeground": "#2e2e37",
"editorLineNumber.foreground": "#1e1d27",
"editorLink.activeForeground": "#7d46fc",
"editorOverviewRuler.addedForeground": "#0000",
"editorOverviewRuler.border": "#0000",
"editorOverviewRuler.bracketMatchForeground": "#7d46fc7f",
"editorOverviewRuler.errorForeground": "#ff0032",
"editorOverviewRuler.findMatchForeground": "#ffca0099",
"editorOverviewRuler.modifiedForeground": "#fff",
"editorOverviewRuler.selectionHighlightForeground": "#7d46fc7f",
"editorOverviewRuler.warningForeground": "#f90",
"editorOverviewRuler.wordHighlightForeground": "#7d46fc3f",
"editorOverviewRuler.wordHighlightStrongForeground": "#7d46fc7f",
"editorRuler.foreground": "#0a0b0f",
"editorSuggestWidget.foreground": "#fff",
"editorWarning.foreground": "#f90",
"editorWidget.background": "#0a0b0f",
"editorWidget.border": "#1e1d27",
"errorForeground": "#ff0032",
"extensionButton.prominentBackground": "#7d46fc",
"extensionButton.prominentForeground": "#fff",
"extensionButton.prominentHoverBackground": "#7d46fc",
"focusBorder": "#1e1d27",
"foreground": "#fff",
"gitDecoration.ignoredResourceForeground": "#2e2e37",
"gitDecoration.modifiedResourceForeground": "#fff",
"gitDecoration.untrackedResourceForeground": "#fff",
"input.background": "#0a0b0f",
"input.border": "#1e1d27",
"input.foreground": "#fff",
"input.placeholderForeground": "#2e2e37",
"list.activeSelectionBackground": "#fff",
"list.activeSelectionForeground": "#000",
"list.dropBackground": "#7d46fc7f",
"list.focusBackground": "#7d46fc3f",
"list.focusForeground": "#fff",
"list.highlightForeground": "#fff",
"list.hoverBackground": "#0a0b0f",
"list.inactiveSelectionBackground": "#0a0b0f",
"list.inactiveSelectionForeground": "#fff",
"panel.background": "#0a0b0f",
"panel.border": "#0000",
"panelTitle.activeBorder": "#2e2e37",
"peekView.border": "#fff",
"peekViewEditor.background": "#0000",
"peekViewEditor.matchHighlightBackground": "#ffca0099",
"peekViewResult.background": "#0000",
"peekViewResult.fileForeground": "#a8a8b1",
"peekViewResult.lineForeground": "#a8a8b1",
"peekViewResult.matchHighlightBackground": "#ffca0099",
"peekViewResult.selectionBackground": "#fff",
"peekViewResult.selectionForeground": "#000",
"peekViewTitle.background": "#0000",
"peekViewTitleDescription.foreground": "#2e2e37",
"peekViewTitleLabel.foreground": "#fff",
"progressBar.background": "#7d46fc",
"scrollbar.shadow": "#0000",
"scrollbarSlider.background": "#616a9319",
"scrollbarSlider.hoverBackground": "#fff",
"sideBar.background": "#000",
"sideBar.foreground": "#a8a8b1",
"sideBarSectionHeader.background": "#0a0b0f",
"sideBarSectionHeader.foreground": "#a8a8b1",
"sideBarTitle.foreground": "#2e2e37",
"statusBar.background": "#000",
"statusBar.debuggingBackground": "#f90",
"statusBar.debuggingForeground": "#000",
"statusBar.foreground": "#2e2e37",
"statusBar.noFolderBackground": "#000",
"tab.activeBackground": "#fff",
"tab.activeForeground": "#000",
"tab.activeModifiedBorder": "#0000",
"tab.border": "#0000",
"tab.inactiveBackground": "#0000",
"tab.inactiveForeground": "#2e2e37",
"tab.inactiveModifiedBorder": "#fff",
"terminal.ansiBlack": "#fff",
"terminal.ansiBlue": "#004bff",
"terminal.ansiBrightBlack": "#fff",
"terminal.ansiBrightBlue": "#004bff",
"terminal.ansiBrightCyan": "#00d2ff",
"terminal.ansiBrightGreen": "#00ff68",
"terminal.ansiBrightMagenta": "#7d46fc",
"terminal.ansiBrightRed": "#ff0032",
"terminal.ansiBrightWhite": "#fff",
"terminal.ansiBrightYellow": "#ffca00",
"terminal.ansiCyan": "#00d2ff",
"terminal.ansiGreen": "#00ff68",
"terminal.ansiMagenta": "#7d46fc",
"terminal.ansiRed": "#ff0032",
"terminal.ansiWhite": "#fff",
"terminal.ansiYellow": "#ffca00",
"terminal.foreground": "#fff",
"terminal.selectionBackground": "#7d46fc7f",
"terminalCursor.foreground": "#7d46fc",
"textLink.activeForeground": "#7d46fc",
"textLink.foreground": "#7d46fc",
"titleBar.activeBackground": "#000",
"titleBar.activeForeground": "#a8a8b1",
"titleBar.inactiveBackground": "#000",
"titleBar.inactiveForeground": "#2e2e37",
"welcomePage.buttonBackground": "#0a0b0f",
"welcomePage.buttonHoverBackground": "#7d46fc3f",
"widget.shadow": "#0000"
},
"tokenColors": [
{
"scope": ["comment", "string.quoted.docstring"],
"settings": {
"foreground": "#2e2e37"
}
},
{
"scope": ["string"],
"settings": {
"foreground": "#a8a8b1"
}
},
{
"scope": ["punctuation.definition.string", "storage.type.string.python"],
"settings": {
"foreground": "#fff"
}
},
{
"scope": [
"beginning.punctuation",
"entity.name.section.group-title",
"entity.name.tag",
"entity.other.attribute-name.class",
"entity.other.attribute-name.id",
"keyword.const",
"keyword.control",
"keyword.function",
"keyword.import",
"keyword.operator.assignment",
"keyword.operator.comparison",
"keyword.operator.decrement",
"keyword.operator.expression",
"keyword.operator.increment",
"keyword.operator.increment-decrement",
"keyword.operator.logical",
"keyword.operator.misc",
"keyword.operator.new",
"keyword.operator.other",
"keyword.operator.ternary",
"keyword.other.fn",
"keyword.other.rust",
"keyword.other.special-method",
"keyword.other.where",
"keyword.package",
"keyword.type",
"keyword.var",
"markup.heading",
"meta.tag.sgml.doctype.html",
"punctuation.separator.key-value",
"storage.modifier",
"storage.type.class",
"storage.type.enum",
"storage.type.function",
"storage.type.import",
"storage.type.interface",
"storage.type.js",
"storage.type.namespace",
"storage.type.property",
"storage.type.rust",
"storage.type.string.python",
"storage.type.ts",
"storage.type.tsx",
"storage.type.type",
"support.type.object.module"
],
"settings": {
"fontStyle": "bold"
}
}
]
}
Loading

0 comments on commit 54ee05f

Please sign in to comment.