jevstrudel.git / packages / codemirror / themes / materialLight.mjs
1import { tags as t } from '@lezer/highlight';
2import { createTheme } from './theme-helper.mjs';
3
4export const settings = {
5  light: true,
6  background: '#FAFAFA',
7  lineBackground: '#FAFAFA99',
8  foreground: '#6182B8',
9  muted: '#6182B850',
10  caret: '#272727',
11  selection: '#80CBC440',
12  selectionMatch: '#FAFAFA',
13  gutterBackground: '#FAFAFA',
14  gutterForeground: '#90A4AE',
15  gutterBorder: 'transparent',
16  lineHighlight: '#CCD7DA50',
17};
18export default createTheme({
19  theme: 'light',
20  settings: {
21    background: '#FAFAFA',
22    foreground: '#90A4AE',
23    muted: '#6182B850',
24    caret: '#272727',
25    selection: '#80CBC440',
26    selectionMatch: '#80CBC440',
27    gutterBackground: '#FAFAFA',
28    gutterForeground: '#90A4AE',
29    gutterBorder: 'transparent',
30    lineHighlight: '#CCD7DA50',
31  },
32  styles: [
33    { tag: t.keyword, color: '#39ADB5' },
34    { tag: [t.name, t.deleted, t.character, t.macroName], color: '#90A4AE' },
35    { tag: [t.propertyName], color: '#6182B8' },
36    { tag: [t.processingInstruction, t.string, t.inserted, t.special(t.string)], color: '#91B859' },
37    { tag: [t.function(t.variableName), t.labelName], color: '#6182B8' },
38    { tag: [t.color, t.constant(t.name), t.standard(t.name)], color: '#39ADB5' },
39    { tag: [t.definition(t.name), t.separator], color: '#90A4AE' },
40    { tag: [t.className], color: '#E2931D' },
41    { tag: [t.number, t.changed, t.annotation, t.modifier, t.self, t.namespace], color: '#F76D47' },
42    { tag: [t.typeName], color: '#E2931D', fontStyle: '#E2931D' },
43    { tag: [t.operator, t.operatorKeyword], color: '#39ADB5' },
44    { tag: [t.url, t.escape, t.regexp, t.link], color: '#91B859' },
45    { tag: [t.meta, t.comment], color: '#90A4AE' },
46    { tag: t.strong, fontWeight: 'bold' },
47    { tag: t.emphasis, fontStyle: 'italic' },
48    { tag: t.link, textDecoration: 'underline' },
49    { tag: t.heading, fontWeight: 'bold', color: '#39ADB5' },
50    { tag: [t.atom, t.bool, t.special(t.variableName)], color: '#90A4AE' },
51    { tag: t.invalid, color: '#E5393570' },
52    { tag: t.strikethrough, textDecoration: 'line-through' },
53  ],
54});