Skip to content

Commit

Permalink
style(theme): modify abcdef/abyss/androidstudio/andromeda/atomone/aur…
Browse files Browse the repository at this point in the history
…a/basic selection color. (#609)
  • Loading branch information
jaywcjlove committed Nov 26, 2023
1 parent eb3af94 commit d233183
Show file tree
Hide file tree
Showing 18 changed files with 30 additions and 16 deletions.
1 change: 0 additions & 1 deletion core/README.md
Expand Up @@ -7,7 +7,6 @@
# react-codemirror

[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)
[![jsdelivr CDN](https://data.jsdelivr.com/v1/package/npm/@uiw/react-codemirror/badge)](https://www.jsdelivr.com/package/npm/@uiw/react-codemirror)
[![NPM Downloads](https://img.shields.io/npm/dm/@uiw/react-codemirror.svg?style=flat)](https://www.npmjs.com/package/@uiw/react-codemirror)
[![Build & Deploy](https://github.com/uiwjs/react-codemirror/actions/workflows/ci.yml/badge.svg)](https://github.com/uiwjs/react-codemirror/actions)
[![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)
Expand Down
1 change: 1 addition & 0 deletions themes/abcdef/package.json
Expand Up @@ -3,6 +3,7 @@
"version": "4.21.20",
"description": "Theme abcdef for CodeMirror.",
"homepage": "https://uiwjs.github.io/react-codemirror/#/theme/data/abcdef",
"funding": "https://jaywcjlove.github.io/#/sponsor",
"author": "kenny wong <wowohoo@qq.com>",
"license": "MIT",
"main": "./cjs/index.js",
Expand Down
2 changes: 1 addition & 1 deletion themes/abcdef/src/index.ts
Expand Up @@ -14,7 +14,7 @@ export const defaultSettingsAbcdef: CreateThemeOptions['settings'] = {
selectionMatch: '#515151',
gutterBackground: '#555',
gutterForeground: '#FFFFFF',
lineHighlight: '#314151',
lineHighlight: '#0a6bcb3d',
};

export const abcdefInit = (options?: Partial<CreateThemeOptions>) => {
Expand Down
1 change: 1 addition & 0 deletions themes/abyss/package.json
Expand Up @@ -3,6 +3,7 @@
"version": "4.21.20",
"description": "Theme abyss for CodeMirror.",
"homepage": "https://uiwjs.github.io/react-codemirror/#/theme/data/abyss",
"funding": "https://jaywcjlove.github.io/#/sponsor",
"author": "kenny wong <wowohoo@qq.com>",
"license": "MIT",
"main": "./cjs/index.js",
Expand Down
2 changes: 1 addition & 1 deletion themes/abyss/src/color.ts
Expand Up @@ -5,7 +5,7 @@ export const config = {
selectionMatch: '#770811',
cursor: '#ddbb88',
dropdownBackground: '#181f2f',
activeLine: '#082050',
activeLine: '#0055ff30',
matchingBracket: '#082050',
keyword: '#225588',
storage: '#225588',
Expand Down
1 change: 1 addition & 0 deletions themes/all/package.json
Expand Up @@ -3,6 +3,7 @@
"version": "4.21.20",
"description": "Themes all for CodeMirror 6.",
"homepage": "https://uiwjs.github.io/react-codemirror/#/theme/data/abcdef",
"funding": "https://jaywcjlove.github.io/#/sponsor",
"author": "kenny wong <wowohoo@qq.com>",
"license": "MIT",
"main": "./cjs/index.js",
Expand Down
1 change: 1 addition & 0 deletions themes/androidstudio/package.json
Expand Up @@ -3,6 +3,7 @@
"version": "4.21.20",
"description": "Theme androidstudio for CodeMirror.",
"homepage": "https://uiwjs.github.io/react-codemirror/#/theme/data/androidstudio",
"funding": "https://jaywcjlove.github.io/#/sponsor",
"author": "kenny wong <wowohoo@qq.com>",
"license": "MIT",
"main": "./cjs/index.js",
Expand Down
6 changes: 3 additions & 3 deletions themes/androidstudio/src/index.ts
Expand Up @@ -8,9 +8,9 @@ export const defaultSettingsAndroidstudio: CreateThemeOptions['settings'] = {
background: '#282b2e',
foreground: '#a9b7c6',
caret: '#00FF00',
selection: '#343739',
selectionMatch: '#343739',
lineHighlight: '#343739',
selection: '#4e5254',
selectionMatch: '#4e5254',
lineHighlight: '#7f85891f',
};

export const androidstudioInit = (options?: Partial<CreateThemeOptions>) => {
Expand Down
1 change: 1 addition & 0 deletions themes/andromeda/package.json
Expand Up @@ -3,6 +3,7 @@
"version": "4.21.20",
"description": "Theme andromeda for CodeMirror.",
"homepage": "https://uiwjs.github.io/react-codemirror/#/theme/data/andromeda",
"funding": "https://jaywcjlove.github.io/#/sponsor",
"author": "kenny wong <wowohoo@qq.com>",
"license": "MIT",
"main": "./cjs/index.js",
Expand Down
4 changes: 2 additions & 2 deletions themes/andromeda/src/color.ts
@@ -1,12 +1,12 @@
export const config = {
background: '#23262E',
foreground: '#D5CED9',
selection: '#4F4355',
selection: '#db45a280',
selectionMatch: '#db45a280',
cursor: '#FFF',
dropdownBackground: '#2b303b',
dropdownBorder: '#363c49',
activeLine: '#2e323d',
activeLine: '#596a992e',
matchingBracket: '#746f77',
keyword: '#c74ded',
storage: '#c74ded',
Expand Down
1 change: 1 addition & 0 deletions themes/atomone/package.json
Expand Up @@ -3,6 +3,7 @@
"version": "4.21.20",
"description": "Theme atomone for CodeMirror.",
"homepage": "https://uiwjs.github.io/react-codemirror/#/theme/data/atomone",
"funding": "https://jaywcjlove.github.io/#/sponsor",
"author": "kenny wong <wowohoo@qq.com>",
"license": "MIT",
"main": "./cjs/index.js",
Expand Down
6 changes: 3 additions & 3 deletions themes/atomone/src/index.ts
Expand Up @@ -11,12 +11,12 @@ export const defaultSettingsAtomone: CreateThemeOptions['settings'] = {
background: '#272C35',
foreground: '#9d9b97',
caret: '#797977',
selection: '#ffffff30',
selectionMatch: '#2B323D',
selection: '#3d4c64',
selectionMatch: '#3d4c64',
gutterBackground: '#272C35',
gutterForeground: '#465063',
gutterBorder: 'transparent',
lineHighlight: '#2B323D',
lineHighlight: '#2e3f5940',
};

export const atomoneInit = (options?: Partial<CreateThemeOptions>) => {
Expand Down
1 change: 1 addition & 0 deletions themes/aura/package.json
Expand Up @@ -3,6 +3,7 @@
"version": "4.21.20",
"description": "Theme aura for CodeMirror.",
"homepage": "https://uiwjs.github.io/react-codemirror/#/theme/data/aura",
"funding": "https://jaywcjlove.github.io/#/sponsor",
"author": "kenny wong <wowohoo@qq.com>",
"license": "MIT",
"main": "./cjs/index.js",
Expand Down
4 changes: 2 additions & 2 deletions themes/aura/src/index.ts
Expand Up @@ -5,8 +5,8 @@ export const defaultSettingsAura: CreateThemeOptions['settings'] = {
background: '#21202e',
foreground: '#edecee',
caret: '#a277ff',
selection: '#3d375e7f',
selectionMatch: '#3d375e7f',
selection: '#5a51898f',
selectionMatch: '#5a51898f',
gutterBackground: '#21202e',
gutterForeground: '#edecee',
gutterBorder: 'transparent',
Expand Down
2 changes: 1 addition & 1 deletion themes/basic/package.json
Expand Up @@ -3,11 +3,11 @@
"version": "4.21.20",
"description": "Theme basic for CodeMirror.",
"homepage": "https://uiwjs.github.io/react-codemirror/#/theme/data/basic/light",
"funding": "https://jaywcjlove.github.io/#/sponsor",
"author": "kenny wong <wowohoo@qq.com>",
"license": "MIT",
"main": "./cjs/index.js",
"module": "./esm/index.js",
"funding": "https://jaywcjlove.github.io/#/sponsor",
"exports": {
"./README.md": "./README.md",
".": {
Expand Down
4 changes: 4 additions & 0 deletions www/src/components/Header.tsx
Expand Up @@ -21,6 +21,10 @@ const HeaderWrapper = styled.div`
top: 0;
z-index: 9999;
background-color: var(--color-canvas-subtle);
a.sponsor {
color: var(--color-danger-fg);
text-decoration: none;
}
`;

const Title = styled(NavLink)`
Expand Down
3 changes: 3 additions & 0 deletions www/src/components/Layout.tsx
Expand Up @@ -48,6 +48,9 @@ export const Layout = () => {
return (
<Wrapper>
<Header>
<a href="https://jaywcjlove.github.io/#/sponsor" rel="noopener noreferrer" className="sponsor" target="_blank">
Sponsor
</a>
{routes[0].children?.map((item, key) => {
if (!item.label) return null;
return (
Expand Down
5 changes: 3 additions & 2 deletions www/src/pages/home/index.tsx
Expand Up @@ -123,8 +123,9 @@ const hyperlink: {
label: 'CM Documentation',
},
{
href: 'https://github.com/uiwjs/react-codemirror',
label: 'Github',
href: 'https://jaywcjlove.github.io/#/sponsor',
label: 'Sponsor',
style: { backgroundColor: '#0f7c4e' },
},
// {
// href: 'https://github.com/codemirror/dev',
Expand Down

0 comments on commit d233183

Please sign in to comment.