|
@@ -33,13 +33,15 @@ const base0F = '#b48ead'; // purple
|
|
|
|
|
|
|
|
const invalid = '#d30102';
|
|
const invalid = '#d30102';
|
|
|
const darkBackground = '#252a33';
|
|
const darkBackground = '#252a33';
|
|
|
-// Cutomize
|
|
|
|
|
|
|
+// Customize
|
|
|
const highlightBackground = base02;
|
|
const highlightBackground = base02;
|
|
|
const background = base00;
|
|
const background = base00;
|
|
|
const tooltipBackground = base01;
|
|
const tooltipBackground = base01;
|
|
|
const selection = base03;
|
|
const selection = base03;
|
|
|
-// Cutomize
|
|
|
|
|
|
|
+// Customize
|
|
|
const cursor = base06;
|
|
const cursor = base06;
|
|
|
|
|
+// Create New color
|
|
|
|
|
+const activeLineBackground = '#00000020';
|
|
|
|
|
|
|
|
// / The editor theme styles for Nord.
|
|
// / The editor theme styles for Nord.
|
|
|
export const nordTheme = EditorView.theme(
|
|
export const nordTheme = EditorView.theme(
|
|
@@ -70,7 +72,8 @@ export const nordTheme = EditorView.theme(
|
|
|
color: base00,
|
|
color: base00,
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
- '.cm-activeLine': { backgroundColor: highlightBackground },
|
|
|
|
|
|
|
+ // Custom
|
|
|
|
|
+ '.cm-activeLine': { backgroundColor: activeLineBackground },
|
|
|
'.cm-selectionMatch': {
|
|
'.cm-selectionMatch': {
|
|
|
backgroundColor: base05,
|
|
backgroundColor: base05,
|
|
|
color: base01,
|
|
color: base01,
|
|
@@ -82,7 +85,7 @@ export const nordTheme = EditorView.theme(
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
'&.cm-focused .cm-matchingBracket': {
|
|
'&.cm-focused .cm-matchingBracket': {
|
|
|
- // Cutomize
|
|
|
|
|
|
|
+ // Customize
|
|
|
backgroundColor: base02,
|
|
backgroundColor: base02,
|
|
|
color: base02,
|
|
color: base02,
|
|
|
},
|
|
},
|
|
@@ -93,8 +96,9 @@ export const nordTheme = EditorView.theme(
|
|
|
border: 'none',
|
|
border: 'none',
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
|
|
+ // Custom
|
|
|
'.cm-activeLineGutter': {
|
|
'.cm-activeLineGutter': {
|
|
|
- backgroundColor: highlightBackground,
|
|
|
|
|
|
|
+ backgroundColor: activeLineBackground,
|
|
|
color: base04,
|
|
color: base04,
|
|
|
},
|
|
},
|
|
|
|
|
|