@fsegurai/codemirror-theme-basic-light 6.0.3 → 6.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -22,7 +22,7 @@ base0C = '#d08770', // orange
22
22
  base0D = '#ebcb8b', // yellow
23
23
  base0E = '#a3be8c', // green
24
24
  base0F = '#b48ead'; // purple
25
- const invalid = '#d30102', darkBackground = base06, background = '#ffffff', tooltipBackground = base05, selection = darkBackground, selectionMatch = base06, cursor = base01;
25
+ const invalid = '#d30102', darkBackground = base06, highlightBackground = '#7692a033', background = '#ffffff', tooltipBackground = base05, selection = '#6dceff85', selectionMatch = '#02b8ff57', cursor = base01;
26
26
  /// The editor theme styles for Basic Light.
27
27
  const basicLightTheme = view.EditorView.theme({
28
28
  '&': {
@@ -33,7 +33,10 @@ const basicLightTheme = view.EditorView.theme({
33
33
  caretColor: cursor
34
34
  },
35
35
  '.cm-cursor, .cm-dropCursor': { borderLeftColor: cursor },
36
- '&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection': { backgroundColor: selection },
36
+ '&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection': {
37
+ backgroundColor: selection,
38
+ color: '#00008b'
39
+ },
37
40
  '.cm-panels': { backgroundColor: darkBackground, color: base03 },
38
41
  '.cm-panels.cm-panels-top': { borderBottom: '2px solid black' },
39
42
  '.cm-panels.cm-panels-bottom': { borderTop: '2px solid black' },
@@ -44,8 +47,9 @@ const basicLightTheme = view.EditorView.theme({
44
47
  '.cm-searchMatch.cm-searchMatch-selected': {
45
48
  backgroundColor: base05
46
49
  },
50
+ '.cm-activeLine': { backgroundColor: highlightBackground },
47
51
  '.cm-selectionMatch': {
48
- backgroundColor: selectionMatch,
52
+ backgroundColor: selectionMatch
49
53
  },
50
54
  '&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket': {
51
55
  outline: `1px solid ${base03}`
@@ -58,6 +62,10 @@ const basicLightTheme = view.EditorView.theme({
58
62
  color: base00,
59
63
  border: 'none'
60
64
  },
65
+ '.cm-activeLineGutter': {
66
+ backgroundColor: selection,
67
+ color: '#00008b'
68
+ },
61
69
  '.cm-foldPlaceholder': {
62
70
  backgroundColor: 'transparent',
63
71
  border: 'none',
package/dist/index.js CHANGED
@@ -20,7 +20,7 @@ base0C = '#d08770', // orange
20
20
  base0D = '#ebcb8b', // yellow
21
21
  base0E = '#a3be8c', // green
22
22
  base0F = '#b48ead'; // purple
23
- const invalid = '#d30102', darkBackground = base06, background = '#ffffff', tooltipBackground = base05, selection = darkBackground, selectionMatch = base06, cursor = base01;
23
+ const invalid = '#d30102', darkBackground = base06, highlightBackground = '#7692a033', background = '#ffffff', tooltipBackground = base05, selection = '#6dceff85', selectionMatch = '#02b8ff57', cursor = base01;
24
24
  /// The editor theme styles for Basic Light.
25
25
  const basicLightTheme = /*@__PURE__*/EditorView.theme({
26
26
  '&': {
@@ -31,7 +31,10 @@ const basicLightTheme = /*@__PURE__*/EditorView.theme({
31
31
  caretColor: cursor
32
32
  },
33
33
  '.cm-cursor, .cm-dropCursor': { borderLeftColor: cursor },
34
- '&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection': { backgroundColor: selection },
34
+ '&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection': {
35
+ backgroundColor: selection,
36
+ color: '#00008b'
37
+ },
35
38
  '.cm-panels': { backgroundColor: darkBackground, color: base03 },
36
39
  '.cm-panels.cm-panels-top': { borderBottom: '2px solid black' },
37
40
  '.cm-panels.cm-panels-bottom': { borderTop: '2px solid black' },
@@ -42,8 +45,9 @@ const basicLightTheme = /*@__PURE__*/EditorView.theme({
42
45
  '.cm-searchMatch.cm-searchMatch-selected': {
43
46
  backgroundColor: base05
44
47
  },
48
+ '.cm-activeLine': { backgroundColor: highlightBackground },
45
49
  '.cm-selectionMatch': {
46
- backgroundColor: selectionMatch,
50
+ backgroundColor: selectionMatch
47
51
  },
48
52
  '&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket': {
49
53
  outline: `1px solid ${base03}`
@@ -56,6 +60,10 @@ const basicLightTheme = /*@__PURE__*/EditorView.theme({
56
60
  color: base00,
57
61
  border: 'none'
58
62
  },
63
+ '.cm-activeLineGutter': {
64
+ backgroundColor: selection,
65
+ color: '#00008b'
66
+ },
59
67
  '.cm-foldPlaceholder': {
60
68
  backgroundColor: 'transparent',
61
69
  border: 'none',
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fsegurai/codemirror-theme-basic-light",
3
3
  "description": "Basic Light theme for the CodeMirror code editor",
4
- "version": "6.0.3",
4
+ "version": "6.0.4",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",
7
7
  "exports": {