1import { tags as t } from '@lezer/highlight';
2import { createTheme } from './theme-helper.mjs';
3
4export const settings = {
5  background: '#21202e',
6  lineBackground: '#21202e99',
7  foreground: '#edecee',
8  muted: '#edecee50',
9  caret: '#a277ff',
10  selection: '#3d375e7f',
11  selectionMatch: '#3d375e7f',
12  gutterBackground: '#21202e',
13  gutterForeground: '#edecee',
14  gutterBorder: 'transparent',
15  lineHighlight: '#a394f033',
16};
17export default createTheme({
18  theme: 'dark',
19  settings: {
20    background: '#21202e',
21    foreground: '#edecee',
22    muted: '#edecee50',
23    caret: '#a277ff',
24    selection: '#5a51898f',
25    selectionMatch: '#5a51898f',
26    gutterBackground: '#21202e',
27    gutterForeground: '#edecee',
28    gutterBorder: 'transparent',
29    lineHighlight: '#a394f033',
30  },
31  styles: [
32    { tag: t.keyword, color: '#a277ff' },
33    { tag: [t.name, t.deleted, t.character, t.macroName], color: '#edecee' },
34    { tag: [t.propertyName], color: '#ffca85' },
35    { tag: [t.processingInstruction, t.string, t.inserted, t.special(t.string)], color: '#61ffca' },
36    { tag: [t.function(t.variableName), t.labelName], color: '#ffca85' },
37    { tag: [t.color, t.constant(t.name), t.standard(t.name)], color: '#61ffca' },
38    { tag: [t.definition(t.name), t.separator], color: '#edecee' },
39    { tag: [t.className], color: '#82e2ff' },
40    { tag: [t.number, t.changed, t.annotation, t.modifier, t.self, t.namespace], color: '#61ffca' },
41    { tag: [t.typeName], color: '#82e2ff' },
42    { tag: [t.operator, t.operatorKeyword], color: '#a277ff' },
43    { tag: [t.url, t.escape, t.regexp, t.link], color: '#61ffca' },
44    { tag: [t.meta, t.comment], color: '#6d6d6d' },
45    { tag: t.strong, fontWeight: 'bold' },
46    { tag: t.emphasis, fontStyle: 'italic' },
47    { tag: t.link, textDecoration: 'underline' },
48    { tag: t.heading, fontWeight: 'bold', color: '#a277ff' },
49    { tag: [t.atom, t.bool, t.special(t.variableName)], color: '#edecee' },
50    { tag: t.invalid, color: '#ff6767' },
51    { tag: t.strikethrough, textDecoration: 'line-through' },
52  ],
53});