Skip to content

Commit d233183

Browse files
committedNov 26, 2023
style(theme): modify abcdef/abyss/androidstudio/andromeda/atomone/aura/basic selection color. (#609)
1 parent eb3af94 commit d233183

File tree

18 files changed

+30
-16
lines changed

18 files changed

+30
-16
lines changed
 

‎core/README.md

-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
# react-codemirror
88

99
[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)
10-
[![jsdelivr CDN](https://data.jsdelivr.com/v1/package/npm/@uiw/react-codemirror/badge)](https://www.jsdelivr.com/package/npm/@uiw/react-codemirror)
1110
[![NPM Downloads](https://img.shields.io/npm/dm/@uiw/react-codemirror.svg?style=flat)](https://www.npmjs.com/package/@uiw/react-codemirror)
1211
[![Build & Deploy](https://github.com/uiwjs/react-codemirror/actions/workflows/ci.yml/badge.svg)](https://github.com/uiwjs/react-codemirror/actions)
1312
[![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-codemirror/file/README.md)

‎themes/abcdef/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"version": "4.21.20",
44
"description": "Theme abcdef for CodeMirror.",
55
"homepage": "https://uiwjs.github.io/react-codemirror/#/theme/data/abcdef",
6+
"funding": "https://jaywcjlove.github.io/#/sponsor",
67
"author": "kenny wong <wowohoo@qq.com>",
78
"license": "MIT",
89
"main": "./cjs/index.js",

‎themes/abcdef/src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export const defaultSettingsAbcdef: CreateThemeOptions['settings'] = {
1414
selectionMatch: '#515151',
1515
gutterBackground: '#555',
1616
gutterForeground: '#FFFFFF',
17-
lineHighlight: '#314151',
17+
lineHighlight: '#0a6bcb3d',
1818
};
1919

2020
export const abcdefInit = (options?: Partial<CreateThemeOptions>) => {

‎themes/abyss/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"version": "4.21.20",
44
"description": "Theme abyss for CodeMirror.",
55
"homepage": "https://uiwjs.github.io/react-codemirror/#/theme/data/abyss",
6+
"funding": "https://jaywcjlove.github.io/#/sponsor",
67
"author": "kenny wong <wowohoo@qq.com>",
78
"license": "MIT",
89
"main": "./cjs/index.js",

‎themes/abyss/src/color.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export const config = {
55
selectionMatch: '#770811',
66
cursor: '#ddbb88',
77
dropdownBackground: '#181f2f',
8-
activeLine: '#082050',
8+
activeLine: '#0055ff30',
99
matchingBracket: '#082050',
1010
keyword: '#225588',
1111
storage: '#225588',

‎themes/all/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"version": "4.21.20",
44
"description": "Themes all for CodeMirror 6.",
55
"homepage": "https://uiwjs.github.io/react-codemirror/#/theme/data/abcdef",
6+
"funding": "https://jaywcjlove.github.io/#/sponsor",
67
"author": "kenny wong <wowohoo@qq.com>",
78
"license": "MIT",
89
"main": "./cjs/index.js",

‎themes/androidstudio/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"version": "4.21.20",
44
"description": "Theme androidstudio for CodeMirror.",
55
"homepage": "https://uiwjs.github.io/react-codemirror/#/theme/data/androidstudio",
6+
"funding": "https://jaywcjlove.github.io/#/sponsor",
67
"author": "kenny wong <wowohoo@qq.com>",
78
"license": "MIT",
89
"main": "./cjs/index.js",

‎themes/androidstudio/src/index.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ export const defaultSettingsAndroidstudio: CreateThemeOptions['settings'] = {
88
background: '#282b2e',
99
foreground: '#a9b7c6',
1010
caret: '#00FF00',
11-
selection: '#343739',
12-
selectionMatch: '#343739',
13-
lineHighlight: '#343739',
11+
selection: '#4e5254',
12+
selectionMatch: '#4e5254',
13+
lineHighlight: '#7f85891f',
1414
};
1515

1616
export const androidstudioInit = (options?: Partial<CreateThemeOptions>) => {

‎themes/andromeda/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"version": "4.21.20",
44
"description": "Theme andromeda for CodeMirror.",
55
"homepage": "https://uiwjs.github.io/react-codemirror/#/theme/data/andromeda",
6+
"funding": "https://jaywcjlove.github.io/#/sponsor",
67
"author": "kenny wong <wowohoo@qq.com>",
78
"license": "MIT",
89
"main": "./cjs/index.js",

‎themes/andromeda/src/color.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
export const config = {
22
background: '#23262E',
33
foreground: '#D5CED9',
4-
selection: '#4F4355',
4+
selection: '#db45a280',
55
selectionMatch: '#db45a280',
66
cursor: '#FFF',
77
dropdownBackground: '#2b303b',
88
dropdownBorder: '#363c49',
9-
activeLine: '#2e323d',
9+
activeLine: '#596a992e',
1010
matchingBracket: '#746f77',
1111
keyword: '#c74ded',
1212
storage: '#c74ded',

‎themes/atomone/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"version": "4.21.20",
44
"description": "Theme atomone for CodeMirror.",
55
"homepage": "https://uiwjs.github.io/react-codemirror/#/theme/data/atomone",
6+
"funding": "https://jaywcjlove.github.io/#/sponsor",
67
"author": "kenny wong <wowohoo@qq.com>",
78
"license": "MIT",
89
"main": "./cjs/index.js",

‎themes/atomone/src/index.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ export const defaultSettingsAtomone: CreateThemeOptions['settings'] = {
1111
background: '#272C35',
1212
foreground: '#9d9b97',
1313
caret: '#797977',
14-
selection: '#ffffff30',
15-
selectionMatch: '#2B323D',
14+
selection: '#3d4c64',
15+
selectionMatch: '#3d4c64',
1616
gutterBackground: '#272C35',
1717
gutterForeground: '#465063',
1818
gutterBorder: 'transparent',
19-
lineHighlight: '#2B323D',
19+
lineHighlight: '#2e3f5940',
2020
};
2121

2222
export const atomoneInit = (options?: Partial<CreateThemeOptions>) => {

‎themes/aura/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"version": "4.21.20",
44
"description": "Theme aura for CodeMirror.",
55
"homepage": "https://uiwjs.github.io/react-codemirror/#/theme/data/aura",
6+
"funding": "https://jaywcjlove.github.io/#/sponsor",
67
"author": "kenny wong <wowohoo@qq.com>",
78
"license": "MIT",
89
"main": "./cjs/index.js",

‎themes/aura/src/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ export const defaultSettingsAura: CreateThemeOptions['settings'] = {
55
background: '#21202e',
66
foreground: '#edecee',
77
caret: '#a277ff',
8-
selection: '#3d375e7f',
9-
selectionMatch: '#3d375e7f',
8+
selection: '#5a51898f',
9+
selectionMatch: '#5a51898f',
1010
gutterBackground: '#21202e',
1111
gutterForeground: '#edecee',
1212
gutterBorder: 'transparent',

‎themes/basic/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
"version": "4.21.20",
44
"description": "Theme basic for CodeMirror.",
55
"homepage": "https://uiwjs.github.io/react-codemirror/#/theme/data/basic/light",
6+
"funding": "https://jaywcjlove.github.io/#/sponsor",
67
"author": "kenny wong <wowohoo@qq.com>",
78
"license": "MIT",
89
"main": "./cjs/index.js",
910
"module": "./esm/index.js",
10-
"funding": "https://jaywcjlove.github.io/#/sponsor",
1111
"exports": {
1212
"./README.md": "./README.md",
1313
".": {

‎www/src/components/Header.tsx

+4
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ const HeaderWrapper = styled.div`
2121
top: 0;
2222
z-index: 9999;
2323
background-color: var(--color-canvas-subtle);
24+
a.sponsor {
25+
color: var(--color-danger-fg);
26+
text-decoration: none;
27+
}
2428
`;
2529

2630
const Title = styled(NavLink)`

‎www/src/components/Layout.tsx

+3
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ export const Layout = () => {
4848
return (
4949
<Wrapper>
5050
<Header>
51+
<a href="https://jaywcjlove.github.io/#/sponsor" rel="noopener noreferrer" className="sponsor" target="_blank">
52+
Sponsor
53+
</a>
5154
{routes[0].children?.map((item, key) => {
5255
if (!item.label) return null;
5356
return (

‎www/src/pages/home/index.tsx

+3-2
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,9 @@ const hyperlink: {
123123
label: 'CM Documentation',
124124
},
125125
{
126-
href: 'https://github.com/uiwjs/react-codemirror',
127-
label: 'Github',
126+
href: 'https://jaywcjlove.github.io/#/sponsor',
127+
label: 'Sponsor',
128+
style: { backgroundColor: '#0f7c4e' },
128129
},
129130
// {
130131
// href: 'https://github.com/codemirror/dev',

0 commit comments

Comments
 (0)
Please sign in to comment.