1import { tags as t } from '@lezer/highlight'; 2import { createTheme } from './theme-helper.mjs'; 3 4export const settings = { 5 background: '#0d1117', 6 lineBackground: '#0d111799', 7 foreground: '#c9d1d9', 8 muted: '#c9d1d950', 9 caret: '#c9d1d9', 10 selection: '#003d73', 11 selectionMatch: '#003d73', 12 lineHighlight: '#36334280', 13}; 14 15export default createTheme({ 16 theme: 'dark', 17 settings: { 18 background: '#0d1117', 19 foreground: '#c9d1d9', 20 muted: '#c9d1d950', 21 caret: '#c9d1d9', 22 selection: '#003d73', 23 selectionMatch: '#003d73', 24 lineHighlight: '#36334280', 25 }, 26 styles: [ 27 { tag: t.labelName, color: '#d2a8ff' }, 28 { tag: [t.standard(t.tagName), t.tagName], color: '#7ee787' }, 29 { tag: [t.comment, t.bracket], color: '#8b949e' }, 30 { tag: [t.className, t.propertyName], color: '#d2a8ff' }, 31 { tag: [t.variableName, t.attributeName], color: '#d2a8ff' }, 32 { tag: [t.number, t.operator], color: '#79c0ff' }, 33 { tag: [t.keyword, t.typeName, t.typeOperator, t.typeName], color: '#ff7b72' }, 34 { tag: [t.string, t.meta, t.regexp], color: '#a5d6ff' }, 35 { tag: [t.name, t.quote], color: '#7ee787' }, 36 { tag: [t.heading, t.strong], color: '#d2a8ff', fontWeight: 'bold' }, 37 { tag: [t.emphasis], color: '#d2a8ff', fontStyle: 'italic' }, 38 { tag: [t.deleted], color: '#ffdcd7', backgroundColor: 'ffeef0' }, 39 { tag: [t.atom, t.bool, t.special(t.variableName)], color: '#ffab70' }, 40 { tag: t.link, textDecoration: 'underline' }, 41 { tag: t.strikethrough, textDecoration: 'line-through' }, 42 { tag: t.invalid, color: '#f97583' }, 43 ], 44});