1import { tags as t } from '@lezer/highlight'; 2import { createTheme } from './theme-helper.mjs'; 3 4export const settings = { 5 background: '#1a1b26', 6 lineBackground: '#1a1b2699', 7 foreground: '#f8fcf9', 8 muted: '#f8fcf950', 9 caret: '#c0caf5', 10 selection: '#515c7e40', 11 selectionMatch: '#16161e', 12 gutterBackground: '#1a1b26', 13 gutterForeground: '#787c99', 14 gutterBorder: 'transparent', 15 lineHighlight: '#1e202e', 16}; 17 18export default createTheme({ 19 theme: 'dark', 20 settings: { 21 background: '#1a1b26', 22 foreground: '#f8fcf9', 23 muted: '#f8fcf950', 24 caret: '#c0caf5', 25 selection: '#515c7e40', 26 selectionMatch: '#16161e', 27 gutterBackground: '#1a1b26', 28 gutterForeground: '#787c99', 29 gutterBorder: 'transparent', 30 lineHighlight: '#474b6611', 31 }, 32 styles: [ 33 { tag: t.keyword, color: '#bb9af7' }, 34 { tag: [t.name, t.deleted, t.character, t.macroName], color: '#c0caf5' }, 35 { tag: [t.propertyName], color: '#7aa2f7' }, 36 { tag: [t.processingInstruction, t.string, t.inserted, t.special(t.string)], color: '#9ece6a' }, 37 { tag: [t.function(t.variableName), t.labelName], color: '#7aa2f7' }, 38 { tag: [t.color, t.constant(t.name), t.standard(t.name)], color: '#bb9af7' }, 39 { tag: [t.definition(t.name), t.separator], color: '#c0caf5' }, 40 { tag: [t.className], color: '#c0caf5' }, 41 { tag: [t.number, t.changed, t.annotation, t.modifier, t.self, t.namespace], color: '#ff9e64' }, 42 { tag: [t.typeName], color: '#0db9d7' }, 43 { tag: [t.operator, t.operatorKeyword], color: '#bb9af7' }, 44 { tag: [t.url, t.escape, t.regexp, t.link], color: '#b4f9f8' }, 45 { tag: [t.meta, t.comment], color: '#444b6a' }, 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: '#89ddff' }, 50 { tag: [t.atom, t.bool, t.special(t.variableName)], color: '#c0caf5' }, 51 { tag: t.invalid, color: '#ff5370' }, 52 { tag: t.strikethrough, textDecoration: 'line-through' }, 53 ], 54});