1import { tags as t } from '@lezer/highlight';
2import { createTheme } from './theme-helper.mjs';
3
4export const settings = {
5  light: true,
6  background: '#FFFFFF',
7  lineBackground: '#FFFFFF99',
8  foreground: '#000000',
9  muted: '#00000050',
10  caret: '#FBAC52',
11  selection: '#FFD420',
12  selectionMatch: '#FFD420',
13  gutterBackground: '#f5f5f5',
14  gutterForeground: '#4D4D4C',
15  gutterBorder: 'transparent',
16  lineHighlight: '#00000012',
17};
18
19export default createTheme({
20  theme: 'light',
21  settings: {
22    background: '#FFFFFF',
23    foreground: '#000000',
24    muted: '#00000050',
25    caret: '#FBAC52',
26    selection: '#FFD420',
27    selectionMatch: '#FFD420',
28    gutterBackground: '#f5f5f5',
29    gutterForeground: '#4D4D4C',
30    gutterBorder: 'transparent',
31    lineHighlight: '#00000012',
32  },
33  styles: [
34    { tag: [t.meta, t.comment], color: '#804000' },
35    { tag: [t.keyword, t.strong], color: '#0000FF' },
36    { tag: [t.number], color: '#FF0080' },
37    { tag: [t.string], color: '#FF0080' },
38    { tag: [t.variableName], color: '#006600' },
39    { tag: [t.escape], color: '#33CC33' },
40    { tag: [t.tagName], color: '#1C02FF' },
41    { tag: [t.heading], color: '#0C07FF' },
42    { tag: [t.quote], color: '#000000' },
43    { tag: [t.list], color: '#B90690' },
44    { tag: [t.documentMeta], color: '#888888' },
45    { tag: [t.function(t.variableName)], color: '#0000A2' },
46    { tag: [t.definition(t.typeName), t.typeName], color: '#6D79DE' },
47  ],
48});