Skip to content

Commit 4dfa658

Browse files
authored
Dropped bracket highlight and border by 50% (#3068)
1 parent d4cd340 commit 4dfa658

File tree

1 file changed

+14
-7
lines changed

1 file changed

+14
-7
lines changed

apps/webapp/app/components/code/codeMirrorTheme.ts

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,10 @@ export function darkTheme(): Extension {
6767
},
6868

6969
".cm-cursor, .cm-dropCursor": { borderLeftColor: cursor },
70-
"&.cm-focused .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection": {
71-
backgroundColor: selection,
72-
},
70+
"&.cm-focused .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":
71+
{
72+
backgroundColor: selection,
73+
},
7374

7475
".cm-panels": { backgroundColor: darkBackground, color: ivory },
7576
".cm-panels.cm-panels-top": { borderBottom: "2px solid black" },
@@ -87,8 +88,8 @@ export function darkTheme(): Extension {
8788
".cm-selectionMatch": { backgroundColor: "#aafe661a" },
8889

8990
"&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket": {
90-
backgroundColor: "#bad0f847",
91-
outline: "1px solid #515a6b",
91+
backgroundColor: "rgba(18, 19, 23, 0.9)",
92+
outline: "1px solid rgba(81, 90, 107, 0.5)",
9293
},
9394

9495
".cm-gutters": {
@@ -166,14 +167,20 @@ export function darkTheme(): Extension {
166167
backgroundColor: scrollbarBg,
167168
},
168169
},
169-
{ dark: true }
170+
{ dark: true },
170171
);
171172

172173
/// The highlighting style for code in the JSON Hero theme.
173174
const jsonHeroHighlightStyle = HighlightStyle.define([
174175
{ tag: tags.keyword, color: violet },
175176
{
176-
tag: [tags.name, tags.deleted, tags.character, tags.propertyName, tags.macroName],
177+
tag: [
178+
tags.name,
179+
tags.deleted,
180+
tags.character,
181+
tags.propertyName,
182+
tags.macroName,
183+
],
177184
color: lilac,
178185
},
179186
{ tag: [tags.function(tags.variableName), tags.labelName], color: malibu },

0 commit comments

Comments
 (0)