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: '#24292e', 9 muted: '#24292e50', 10 selection: '#BBDFFF', 11 selectionMatch: '#BBDFFF', 12 gutterBackground: '#fff', 13 gutterForeground: '#6e7781', 14}; 15 16export default createTheme({ 17 theme: 'light', 18 settings: { 19 background: '#fff', 20 foreground: '#24292e', 21 muted: '#24292e50', 22 selection: '#BBDFFF', 23 selectionMatch: '#BBDFFF', 24 gutterBackground: '#fff', 25 gutterForeground: '#6e7781', 26 }, 27 styles: [ 28 { tag: [t.standard(t.tagName), t.tagName], color: '#116329' }, 29 { tag: [t.comment, t.bracket], color: '#6a737d' }, 30 { tag: [t.className, t.propertyName], color: '#6f42c1' }, 31 { tag: [t.variableName, t.attributeName, t.number, t.operator], color: '#005cc5' }, 32 { tag: [t.keyword, t.typeName, t.typeOperator, t.typeName], color: '#d73a49' }, 33 { tag: [t.string, t.meta, t.regexp], color: '#032f62' }, 34 { tag: [t.name, t.quote], color: '#22863a' }, 35 { tag: [t.heading, t.strong], color: '#24292e', fontWeight: 'bold' }, 36 { tag: [t.emphasis], color: '#24292e', fontStyle: 'italic' }, 37 { tag: [t.deleted], color: '#b31d28', backgroundColor: 'ffeef0' }, 38 { tag: [t.atom, t.bool, t.special(t.variableName)], color: '#e36209' }, 39 { tag: [t.url, t.escape, t.regexp, t.link], color: '#032f62' }, 40 { tag: t.link, textDecoration: 'underline' }, 41 { tag: t.strikethrough, textDecoration: 'line-through' }, 42 { tag: t.invalid, color: '#cb2431' }, 43 ], 44});