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