Skip to content

Commit 54ee05f

Browse files
committed
feat(theme): add white theme.
1 parent b3ee803 commit 54ee05f

File tree

24 files changed

+909
-0
lines changed

24 files changed

+909
-0
lines changed

.github/workflows/ci.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,13 @@ jobs:
299299
env:
300300
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
301301

302+
- name: 📦 @uiw/codemirror-theme-copilot publish to NPM
303+
run: npm publish --access public
304+
working-directory: ./themes/copilot/
305+
continue-on-error: true
306+
env:
307+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
308+
302309
- name: 📦 @uiw/codemirror-theme-sublime publish to NPM
303310
run: npm publish --access public
304311
working-directory: ./themes/sublime/
@@ -341,6 +348,13 @@ jobs:
341348
env:
342349
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
343350

351+
- name: 📦 @uiw/codemirror-theme-white publish to NPM
352+
run: npm publish --access public
353+
working-directory: ./themes/white/
354+
continue-on-error: true
355+
env:
356+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
357+
344358
- name: 📦 @uiw/codemirror-theme-xcode publish to NPM
345359
run: npm publish --access public
346360
working-directory: ./themes/xcode/

core/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ npm install @uiw/react-codemirror --save
8787
| `@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) |
8888
| `@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) |
8989
| `@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) |
90+
| `@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) |
9091
| `@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) |
9192
| `@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) |
9293

themes/_scripts/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,5 @@ Not perfect themes for [cm6](https://github.com/codemirror/dev/), generated from
1414
- [theme-solarized-light](https://github.com/microsoft/vscode/tree/main/extensions/theme-solarized-light)
1515
- [theme-tomorrow-night-blue](https://github.com/microsoft/vscode/tree/main/extensions/theme-tomorrow-night-blue)
1616
- [Andromeda](https://github.com/EliverLara/Andromeda/blob/master/themes/Andromeda-color-theme.json)
17+
- [Copilot](https://github.com/benjaminbenais/copilot-theme/blob/main/themes/Copilot%20Theme-color-theme.json)
18+
- [White](https://github.com/xthezealot/white-theme-vscode/tree/master/themes)

themes/_scripts/data/white.dark.json

Lines changed: 220 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,220 @@
1+
{
2+
"colors": {
3+
"activityBar.background": "#000",
4+
"activityBar.border": "#0000",
5+
"activityBar.foreground": "#2e2e37",
6+
"activityBarBadge.background": "#fff",
7+
"activityBarBadge.foreground": "#000",
8+
"badge.background": "#fff",
9+
"badge.foreground": "#000",
10+
"button.background": "#7d46fc",
11+
"button.foreground": "#fff",
12+
"contrastBorder": "#0000",
13+
"debugToolBar.background": "#0a0b0f",
14+
"diffEditor.insertedTextBackground": "#00ff6833",
15+
"diffEditor.removedTextBackground": "#ff003233",
16+
"dropdown.background": "#0a0b0f",
17+
"dropdown.border": "#1e1d27",
18+
"dropdown.foreground": "#fff",
19+
"editor.background": "#000",
20+
"editor.findMatchBackground": "#ffca0099",
21+
"editor.findMatchHighlightBackground": "#ffca004c",
22+
"editor.focusedStackFrameHighlightBackground": "#f909",
23+
"editor.foreground": "#fff",
24+
"editor.lineHighlightBackground": "#7d46fc14",
25+
"editor.lineHighlightBorder": "#0000",
26+
"editor.selectionBackground": "#7d46fc7f",
27+
"editor.selectionForeground": "#000",
28+
"editor.selectionHighlightBorder": "#7d46fc3f",
29+
"editor.stackFrameHighlightBackground": "#ff99004c",
30+
"editor.wordHighlightBackground": "#7d46fc3f",
31+
"editor.wordHighlightStrongBackground": "#7d46fc7f",
32+
"editorBracketMatch.background": "#7d46fc7f",
33+
"editorBracketMatch.border": "#0000",
34+
"editorCursor.foreground": "#7d46fc",
35+
"editorError.foreground": "#ff0032",
36+
"editorGroup.border": "#0a0b0f",
37+
"editorGroupHeader.tabsBackground": "#000",
38+
"editorGroupHeader.tabsBorder": "#0000",
39+
"editorGutter.addedBackground": "#00ff68",
40+
"editorGutter.deletedBackground": "#ff0032",
41+
"editorGutter.modifiedBackground": "#fff",
42+
"editorIndentGuide.background": "#0a0b0f",
43+
"editorLineNumber.activeForeground": "#2e2e37",
44+
"editorLineNumber.foreground": "#1e1d27",
45+
"editorLink.activeForeground": "#7d46fc",
46+
"editorOverviewRuler.addedForeground": "#0000",
47+
"editorOverviewRuler.border": "#0000",
48+
"editorOverviewRuler.bracketMatchForeground": "#7d46fc7f",
49+
"editorOverviewRuler.errorForeground": "#ff0032",
50+
"editorOverviewRuler.findMatchForeground": "#ffca0099",
51+
"editorOverviewRuler.modifiedForeground": "#fff",
52+
"editorOverviewRuler.selectionHighlightForeground": "#7d46fc7f",
53+
"editorOverviewRuler.warningForeground": "#f90",
54+
"editorOverviewRuler.wordHighlightForeground": "#7d46fc3f",
55+
"editorOverviewRuler.wordHighlightStrongForeground": "#7d46fc7f",
56+
"editorRuler.foreground": "#0a0b0f",
57+
"editorSuggestWidget.foreground": "#fff",
58+
"editorWarning.foreground": "#f90",
59+
"editorWidget.background": "#0a0b0f",
60+
"editorWidget.border": "#1e1d27",
61+
"errorForeground": "#ff0032",
62+
"extensionButton.prominentBackground": "#7d46fc",
63+
"extensionButton.prominentForeground": "#fff",
64+
"extensionButton.prominentHoverBackground": "#7d46fc",
65+
"focusBorder": "#1e1d27",
66+
"foreground": "#fff",
67+
"gitDecoration.ignoredResourceForeground": "#2e2e37",
68+
"gitDecoration.modifiedResourceForeground": "#fff",
69+
"gitDecoration.untrackedResourceForeground": "#fff",
70+
"input.background": "#0a0b0f",
71+
"input.border": "#1e1d27",
72+
"input.foreground": "#fff",
73+
"input.placeholderForeground": "#2e2e37",
74+
"list.activeSelectionBackground": "#fff",
75+
"list.activeSelectionForeground": "#000",
76+
"list.dropBackground": "#7d46fc7f",
77+
"list.focusBackground": "#7d46fc3f",
78+
"list.focusForeground": "#fff",
79+
"list.highlightForeground": "#fff",
80+
"list.hoverBackground": "#0a0b0f",
81+
"list.inactiveSelectionBackground": "#0a0b0f",
82+
"list.inactiveSelectionForeground": "#fff",
83+
"panel.background": "#0a0b0f",
84+
"panel.border": "#0000",
85+
"panelTitle.activeBorder": "#2e2e37",
86+
"peekView.border": "#fff",
87+
"peekViewEditor.background": "#0000",
88+
"peekViewEditor.matchHighlightBackground": "#ffca0099",
89+
"peekViewResult.background": "#0000",
90+
"peekViewResult.fileForeground": "#a8a8b1",
91+
"peekViewResult.lineForeground": "#a8a8b1",
92+
"peekViewResult.matchHighlightBackground": "#ffca0099",
93+
"peekViewResult.selectionBackground": "#fff",
94+
"peekViewResult.selectionForeground": "#000",
95+
"peekViewTitle.background": "#0000",
96+
"peekViewTitleDescription.foreground": "#2e2e37",
97+
"peekViewTitleLabel.foreground": "#fff",
98+
"progressBar.background": "#7d46fc",
99+
"scrollbar.shadow": "#0000",
100+
"scrollbarSlider.background": "#616a9319",
101+
"scrollbarSlider.hoverBackground": "#fff",
102+
"sideBar.background": "#000",
103+
"sideBar.foreground": "#a8a8b1",
104+
"sideBarSectionHeader.background": "#0a0b0f",
105+
"sideBarSectionHeader.foreground": "#a8a8b1",
106+
"sideBarTitle.foreground": "#2e2e37",
107+
"statusBar.background": "#000",
108+
"statusBar.debuggingBackground": "#f90",
109+
"statusBar.debuggingForeground": "#000",
110+
"statusBar.foreground": "#2e2e37",
111+
"statusBar.noFolderBackground": "#000",
112+
"tab.activeBackground": "#fff",
113+
"tab.activeForeground": "#000",
114+
"tab.activeModifiedBorder": "#0000",
115+
"tab.border": "#0000",
116+
"tab.inactiveBackground": "#0000",
117+
"tab.inactiveForeground": "#2e2e37",
118+
"tab.inactiveModifiedBorder": "#fff",
119+
"terminal.ansiBlack": "#fff",
120+
"terminal.ansiBlue": "#004bff",
121+
"terminal.ansiBrightBlack": "#fff",
122+
"terminal.ansiBrightBlue": "#004bff",
123+
"terminal.ansiBrightCyan": "#00d2ff",
124+
"terminal.ansiBrightGreen": "#00ff68",
125+
"terminal.ansiBrightMagenta": "#7d46fc",
126+
"terminal.ansiBrightRed": "#ff0032",
127+
"terminal.ansiBrightWhite": "#fff",
128+
"terminal.ansiBrightYellow": "#ffca00",
129+
"terminal.ansiCyan": "#00d2ff",
130+
"terminal.ansiGreen": "#00ff68",
131+
"terminal.ansiMagenta": "#7d46fc",
132+
"terminal.ansiRed": "#ff0032",
133+
"terminal.ansiWhite": "#fff",
134+
"terminal.ansiYellow": "#ffca00",
135+
"terminal.foreground": "#fff",
136+
"terminal.selectionBackground": "#7d46fc7f",
137+
"terminalCursor.foreground": "#7d46fc",
138+
"textLink.activeForeground": "#7d46fc",
139+
"textLink.foreground": "#7d46fc",
140+
"titleBar.activeBackground": "#000",
141+
"titleBar.activeForeground": "#a8a8b1",
142+
"titleBar.inactiveBackground": "#000",
143+
"titleBar.inactiveForeground": "#2e2e37",
144+
"welcomePage.buttonBackground": "#0a0b0f",
145+
"welcomePage.buttonHoverBackground": "#7d46fc3f",
146+
"widget.shadow": "#0000"
147+
},
148+
"tokenColors": [
149+
{
150+
"scope": ["comment", "string.quoted.docstring"],
151+
"settings": {
152+
"foreground": "#2e2e37"
153+
}
154+
},
155+
{
156+
"scope": ["string"],
157+
"settings": {
158+
"foreground": "#a8a8b1"
159+
}
160+
},
161+
{
162+
"scope": ["punctuation.definition.string", "storage.type.string.python"],
163+
"settings": {
164+
"foreground": "#fff"
165+
}
166+
},
167+
{
168+
"scope": [
169+
"beginning.punctuation",
170+
"entity.name.section.group-title",
171+
"entity.name.tag",
172+
"entity.other.attribute-name.class",
173+
"entity.other.attribute-name.id",
174+
"keyword.const",
175+
"keyword.control",
176+
"keyword.function",
177+
"keyword.import",
178+
"keyword.operator.assignment",
179+
"keyword.operator.comparison",
180+
"keyword.operator.decrement",
181+
"keyword.operator.expression",
182+
"keyword.operator.increment",
183+
"keyword.operator.increment-decrement",
184+
"keyword.operator.logical",
185+
"keyword.operator.misc",
186+
"keyword.operator.new",
187+
"keyword.operator.other",
188+
"keyword.operator.ternary",
189+
"keyword.other.fn",
190+
"keyword.other.rust",
191+
"keyword.other.special-method",
192+
"keyword.other.where",
193+
"keyword.package",
194+
"keyword.type",
195+
"keyword.var",
196+
"markup.heading",
197+
"meta.tag.sgml.doctype.html",
198+
"punctuation.separator.key-value",
199+
"storage.modifier",
200+
"storage.type.class",
201+
"storage.type.enum",
202+
"storage.type.function",
203+
"storage.type.import",
204+
"storage.type.interface",
205+
"storage.type.js",
206+
"storage.type.namespace",
207+
"storage.type.property",
208+
"storage.type.rust",
209+
"storage.type.string.python",
210+
"storage.type.ts",
211+
"storage.type.tsx",
212+
"storage.type.type",
213+
"support.type.object.module"
214+
],
215+
"settings": {
216+
"fontStyle": "bold"
217+
}
218+
}
219+
]
220+
}

0 commit comments

Comments
 (0)