Skip to content

Commit b51dacb

Browse files
committed
improve material dark theme
1 parent 1e59b4e commit b51dacb

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

packages/codemirror/themes/materialDark.mjs

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,50 +2,50 @@ import { tags as t } from '@lezer/highlight';
22
import { createTheme } from './theme-helper.mjs';
33

44
export const settings = {
5-
background: '#2e3235',
6-
lineBackground: '#2e323599',
5+
background: '#212121',
6+
lineBackground: '#21212199',
77
foreground: '#bdbdbd',
88
caret: '#a0a4ae',
99
selection: '#d7d4f0',
1010
selectionMatch: '#d7d4f0',
11-
gutterBackground: '#2e3235',
11+
gutterBackground: '#212121',
1212
gutterForeground: '#999',
1313
gutterActiveForeground: '#4f5b66',
14-
lineHighlight: '#545b61',
14+
lineHighlight: '#111111',
1515
};
1616

1717
export default createTheme({
1818
theme: 'dark',
1919
settings: {
20-
background: '#2e3235',
20+
background: '#212121',
2121
foreground: '#bdbdbd',
2222
caret: '#a0a4ae',
2323
selection: '#d7d4f063',
2424
selectionMatch: '#d7d4f063',
25-
gutterBackground: '#2e3235',
25+
gutterBackground: '#212121',
2626
gutterForeground: '#999',
2727
gutterActiveForeground: '#4f5b66',
28-
lineHighlight: '#545b6130',
28+
lineHighlight: '#333333',
2929
},
3030
styles: [
3131
{ tag: t.keyword, color: '#cf6edf' },
3232
{ tag: [t.name, t.deleted, t.character, t.macroName], color: '#56c8d8' },
33-
{ tag: [t.propertyName], color: '#facf4e' },
33+
{ tag: [t.propertyName], color: '#82AAFF' },
3434
{ tag: [t.variableName], color: '#bdbdbd' },
35-
{ tag: [t.function(t.variableName)], color: '#56c8d8' },
35+
{ tag: [t.function(t.variableName)], color: '#82AAFF' },
3636
{ tag: [t.labelName], color: '#cf6edf' },
3737
{ tag: [t.color, t.constant(t.name), t.standard(t.name)], color: '#facf4e' },
38-
{ tag: [t.definition(t.name), t.separator], color: '#fa5788' },
38+
{ tag: [t.definition(t.name), t.separator], color: '#56c8d8' },
3939
{ tag: [t.brace], color: '#cf6edf' },
40-
{ tag: [t.annotation], color: '#ff5f52' },
41-
{ tag: [t.number, t.changed, t.annotation, t.modifier, t.self, t.namespace], color: '#ffad42' },
42-
{ tag: [t.typeName, t.className], color: '#ffad42' },
43-
{ tag: [t.operator, t.operatorKeyword], color: '#7186f0' },
40+
{ tag: [t.annotation], color: '#f07178' },
41+
{ tag: [t.number, t.changed, t.annotation, t.modifier, t.self, t.namespace], color: '#f07178' },
42+
{ tag: [t.typeName, t.className], color: '#f07178' },
43+
{ tag: [t.operator, t.operatorKeyword], color: '#82AAFF' },
4444
{ tag: [t.tagName], color: '#99d066' },
45-
{ tag: [t.squareBracket], color: '#ff5f52' },
45+
{ tag: [t.squareBracket], color: '#f07178' },
4646
{ tag: [t.angleBracket], color: '#606f7a' },
4747
{ tag: [t.attributeName], color: '#bdbdbd' },
48-
{ tag: [t.regexp], color: '#ff5f52' },
48+
{ tag: [t.regexp], color: '#f07178' },
4949
{ tag: [t.quote], color: '#6abf69' },
5050
{ tag: [t.string], color: '#99d066' },
5151
{
@@ -58,7 +58,7 @@ export default createTheme({
5858
{ tag: [t.meta], color: '#707d8b' },
5959
{ tag: [t.comment], color: '#707d8b', fontStyle: 'italic' },
6060
{ tag: t.monospace, color: '#bdbdbd' },
61-
{ tag: t.strong, fontWeight: 'bold', color: '#ff5f52' },
61+
{ tag: t.strong, fontWeight: 'bold', color: '#f07178' },
6262
{ tag: t.emphasis, fontStyle: 'italic', color: '#99d066' },
6363
{ tag: t.strikethrough, textDecoration: 'line-through' },
6464
{ tag: t.heading, fontWeight: 'bold', color: '#facf4e' },
@@ -70,8 +70,8 @@ export default createTheme({
7070
},
7171
{ tag: [t.heading5, t.heading6], color: '#facf4e' },
7272
{ tag: [t.atom, t.bool, t.special(t.variableName)], color: '#56c8d8' },
73-
{ tag: [t.processingInstruction, t.inserted], color: '#ff5f52' },
73+
{ tag: [t.processingInstruction, t.inserted], color: '#f07178' },
7474
{ tag: [t.contentSeparator], color: '#56c8d8' },
75-
{ tag: t.invalid, color: '#606f7a', borderBottom: `1px dotted #ff5f52` },
75+
{ tag: t.invalid, color: '#606f7a', borderBottom: `1px dotted #f07178` },
7676
],
7777
});

0 commit comments

Comments
 (0)