jevstrudel.git / packages / codemirror / themes / duotoneLight.mjs
1/*
2 * duotone
3 * author Bram de Haan
4 * by Bram de Haan, adapted from DuoTone themes by Simurai (http://simurai.com/projects/2016/01/01/duotone-themes)
5 */
6import { tags as t } from '@lezer/highlight';
7import { createTheme } from './theme-helper.mjs';
8
9export const settings = {
10  light: true,
11  background: '#faf8f5',
12  lineBackground: '#faf8f599',
13  foreground: '#b29762',
14  caret: '#93abdc',
15  selection: '#e3dcce',
16  selectionMatch: '#e3dcce',
17  gutterBackground: '#faf8f5',
18  gutterForeground: '#cdc4b1',
19  gutterBorder: 'transparent',
20  lineHighlight: '#EFEFEF',
21};
22
23export default createTheme({
24  theme: 'light',
25  settings: {
26    background: '#faf8f5',
27    foreground: '#b29762',
28    caret: '#93abdc',
29    selection: '#e3dcce',
30    selectionMatch: '#e3dcce',
31    gutterBackground: '#faf8f5',
32    gutterForeground: '#cdc4b1',
33    gutterBorder: 'transparent',
34    lineHighlight: '#ddceb154',
35  },
36  styles: [
37    { tag: [t.comment, t.bracket], color: '#b6ad9a' },
38    { tag: [t.atom, t.number, t.keyword, t.link, t.attributeName, t.quote], color: '#063289' },
39    { tag: [t.emphasis, t.heading, t.tagName, t.propertyName, t.variableName], color: '#2d2006' },
40    { tag: [t.typeName, t.url, t.string], color: '#896724' },
41    { tag: [t.operator, t.string], color: '#1659df' },
42    { tag: [t.propertyName], color: '#b29762' },
43    { tag: [t.unit, t.punctuation], color: '#063289' },
44  ],
45});