jevstrudel.git / packages / codemirror / themes / bluescreen.mjs
1import { tags as t } from '@lezer/highlight';
2import { createTheme } from './theme-helper.mjs';
3export const settings = {
4  background: '#051DB5',
5  lineBackground: '#051DB550',
6  foreground: 'white',
7  muted: '#ffffff50',
8  caret: 'white',
9  selection: 'rgba(128, 203, 196, 0.5)',
10  selectionMatch: '#036dd626',
11  // lineHighlight: '#8a91991a', // original
12  lineHighlight: '#00000050',
13  gutterBackground: 'transparent',
14  // gutterForeground: '#8a919966',
15  gutterForeground: '#8a919966',
16};
17
18export default createTheme({
19  theme: 'dark',
20  settings,
21  styles: [
22    { tag: t.labelName, color: 'inherit' },
23    { tag: t.keyword, color: 'inherit' },
24    { tag: t.operator, color: 'inherit' },
25    { tag: t.special(t.variableName), color: 'inherit' },
26    { tag: t.typeName, color: 'inherit' },
27    { tag: t.atom, color: 'inherit' },
28    { tag: t.number, color: 'inherit' },
29    { tag: t.definition(t.variableName), color: 'inherit' },
30    { tag: t.string, color: 'inherit' },
31    { tag: t.special(t.string), color: 'inherit' },
32    { tag: t.comment, color: 'inherit' },
33    { tag: t.variableName, color: 'inherit' },
34    { tag: t.tagName, color: 'inherit' },
35    { tag: t.bracket, color: 'inherit' },
36    { tag: t.meta, color: 'inherit' },
37    { tag: t.attributeName, color: 'inherit' },
38    { tag: t.propertyName, color: 'inherit' },
39    { tag: t.className, color: 'inherit' },
40    { tag: t.invalid, color: 'inherit' },
41    { tag: [t.unit, t.punctuation], color: 'inherit' },
42  ],
43});