Skip to content

Commit 233347d

Browse files
committedFeb 18, 2024·
style(theme-console): modify the theme selection style. (#632)
1 parent a779719 commit 233347d

File tree

4 files changed

+18
-8
lines changed

4 files changed

+18
-8
lines changed
 

‎themes/all/README.md

+10
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,16 @@ export * from '@uiw/codemirror-theme-xcode';
158158
<img width="436" alt="codemirror-theme-bespin" src="https://user-images.githubusercontent.com/1680273/176573408-0fd54981-471a-4ef8-91d4-8ad4b159c1e0.png">
159159
</a>
160160

161+
### console
162+
163+
<a href="https://uiwjs.github.io/react-codemirror/#/theme/data/console/light">
164+
<img width="436" alt="codemirror-theme-console light" src="https://github.com/uiwjs/react-codemirror/assets/1680273/e45284f3-97bf-4ddc-8796-319db788df6d">
165+
</a>
166+
167+
<a href="https://uiwjs.github.io/react-codemirror/#/theme/data/console/dark">
168+
<img width="436" alt="codemirror-theme-console dark" src="https://github.com/uiwjs/react-codemirror/assets/1680273/25bae31d-1428-481a-bc04-7c3b49ae38c0">
169+
</a>
170+
161171
### copilot
162172

163173
<a href="https://uiwjs.github.io/react-codemirror/#/theme/data/copilot">

‎themes/console/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
[![npm version](https://img.shields.io/npm/v/@uiw/codemirror-theme-console.svg)](https://www.npmjs.com/package/@uiw/codemirror-theme-console)
99

1010
<a href="https://uiwjs.github.io/react-codemirror/#/theme/data/console/light">
11-
<img width="436" alt="codemirror-theme-bespin" src="https://github.com/uiwjs/react-codemirror/assets/1680273/fa508c19-a037-4bd3-a319-89626f2bc5e8">
11+
<img width="436" alt="codemirror-theme-console light" src="https://github.com/uiwjs/react-codemirror/assets/1680273/e45284f3-97bf-4ddc-8796-319db788df6d">
1212
</a>
1313

1414
<a href="https://uiwjs.github.io/react-codemirror/#/theme/data/console/dark">
15-
<img width="436" alt="codemirror-theme-github light" src="https://github.com/uiwjs/react-codemirror/assets/1680273/adc349ad-0d05-4858-96c2-a831fac1d7ac">
15+
<img width="436" alt="codemirror-theme-console dark" src="https://github.com/uiwjs/react-codemirror/assets/1680273/25bae31d-1428-481a-bc04-7c3b49ae38c0">
1616
</a>
1717

1818
## Motivation

‎themes/console/src/dark.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ export const defaultSettingsConsoleDark: CreateThemeOptions['settings'] = {
44
background: '#000',
55
foreground: '#fff',
66
caret: '#fff',
7-
selection: '#3e4865',
7+
selection: '#5c6c9b',
88
selectionMatch: '#2a3967',
99
gutterBackground: '#000',
1010
gutterForeground: '#ada9a9',
11-
gutterActiveForeground: '#000',
12-
lineHighlight: '#828282',
11+
gutterActiveForeground: '#fff',
12+
lineHighlight: '#82828275',
1313
};
1414

1515
export const consoleDarkInit = (options?: Partial<CreateThemeOptions>) => {

‎themes/console/src/light.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ export const defaultSettingsConsoleLight: CreateThemeOptions['settings'] = {
44
background: '#fff',
55
foreground: '#000',
66
caret: '#000',
7-
selection: '#d6ddf2',
8-
selectionMatch: '#6d85cf',
7+
selection: '#c2d2ff',
8+
selectionMatch: '#b1c1ef',
99
gutterBackground: '#fff',
1010
gutterForeground: '#ada9a9',
1111
gutterActiveForeground: '#000',
12-
lineHighlight: '#c7c5c5',
12+
lineHighlight: '#c7c5c575',
1313
};
1414

1515
export const consoleLightInit = (options?: Partial<CreateThemeOptions>) => {

1 commit comments

Comments
 (1)

jaywcjlove commented on Feb 18, 2024

@jaywcjlove
MemberAuthor
Please sign in to comment.