File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
web-common/src/components/editor Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 1- import { EditorView } from "@codemirror/view" ;
2- import type { Extension } from "@codemirror/state" ;
31import { HighlightStyle , syntaxHighlighting } from "@codemirror/language" ;
2+ import type { Extension } from "@codemirror/state" ;
3+ import { EditorView } from "@codemirror/view" ;
44import { tags as t } from "@lezer/highlight" ;
55
66const blue = "var(--color-blue-800)" ;
77const purple = "var(--color-purple-700)" ;
88const invalid = "var(--color-red-600)" ;
99const emerald = "var(--color-emerald-700)" ;
10+ const emeraldHighlight = "var(--color-emerald-400)" ;
1011const gray = "var(--fg-muted)" ;
1112const amber = "var(--color-amber-600)" ;
1213const highlightBackground = "var(--line-highlight)" ;
@@ -102,9 +103,9 @@ export const editorTheme = EditorView.theme(
102103 borderBottomColor : tooltipBackground ,
103104 } ,
104105 ".cm-tooltip-autocomplete" : {
106+ padding : "0" ,
105107 "& > ul > li[aria-selected]" : {
106- backgroundColor : highlightBackground ,
107- color : emerald ,
108+ color : emeraldHighlight ,
108109 } ,
109110 } ,
110111 } ,
You can’t perform that action at this time.
0 commit comments