1import { tags as t } from '@lezer/highlight'; 2import { createTheme } from './theme-helper.mjs'; 3 4export const settings = { 5 light: true, 6 background: '#fff', 7 lineBackground: '#ffffff99', 8 foreground: '#000', 9 muted: '#00000050', 10 caret: '#FFFFFF', 11 selection: '#d7d4f0', 12 selectionMatch: '#d7d4f0', 13 gutterBackground: '#f7f7f7', 14 gutterForeground: '#999', 15 lineHighlight: '#e8f2ff', 16 gutterBorder: 'transparent', 17}; 18 19export default createTheme({ 20 theme: 'light', 21 settings: { 22 background: '#fff', 23 foreground: '#000', 24 muted: '#00000050', 25 caret: '#FFFFFF', 26 selection: '#d7d4f0', 27 selectionMatch: '#d7d4f0', 28 gutterBackground: '#f7f7f7', 29 gutterForeground: '#999', 30 lineHighlight: '#006fff1c', 31 gutterBorder: 'transparent', 32 }, 33 styles: [ 34 { tag: [t.comment], color: '#3F7F5F' }, 35 { tag: [t.documentMeta], color: '#FF1717' }, 36 { tag: t.keyword, color: '#7F0055', fontWeight: 'bold' }, 37 { tag: t.atom, color: '#00f' }, 38 { tag: t.number, color: '#164' }, 39 { tag: t.propertyName, color: '#164' }, 40 { tag: [t.variableName, t.definition(t.variableName)], color: '#0000C0' }, 41 { tag: t.function(t.variableName), color: '#0000C0' }, 42 { tag: t.string, color: '#2A00FF' }, 43 { tag: t.operator, color: 'black' }, 44 { tag: t.tagName, color: '#170' }, 45 { tag: t.attributeName, color: '#00c' }, 46 { tag: t.link, color: '#219' }, 47 ], 48});