mirror of
https://github.com/eliasstepanik/strudel.git
synced 2026-01-11 05:38:35 +00:00
52 lines
2.0 KiB
JavaScript
52 lines
2.0 KiB
JavaScript
import { tags as t } from '@lezer/highlight';
|
|
import { createTheme } from './theme-helper.mjs';
|
|
|
|
export const settings = {
|
|
background: '#21202e',
|
|
lineBackground: '#21202e99',
|
|
foreground: '#edecee',
|
|
caret: '#a277ff',
|
|
selection: '#3d375e7f',
|
|
selectionMatch: '#3d375e7f',
|
|
gutterBackground: '#21202e',
|
|
gutterForeground: '#edecee',
|
|
gutterBorder: 'transparent',
|
|
lineHighlight: '#a394f033',
|
|
};
|
|
export default createTheme({
|
|
theme: 'dark',
|
|
settings: {
|
|
background: '#21202e',
|
|
foreground: '#edecee',
|
|
caret: '#a277ff',
|
|
selection: '#5a51898f',
|
|
selectionMatch: '#5a51898f',
|
|
gutterBackground: '#21202e',
|
|
gutterForeground: '#edecee',
|
|
gutterBorder: 'transparent',
|
|
lineHighlight: '#a394f033',
|
|
},
|
|
styles: [
|
|
{ tag: t.keyword, color: '#a277ff' },
|
|
{ tag: [t.name, t.deleted, t.character, t.macroName], color: '#edecee' },
|
|
{ tag: [t.propertyName], color: '#ffca85' },
|
|
{ tag: [t.processingInstruction, t.string, t.inserted, t.special(t.string)], color: '#61ffca' },
|
|
{ tag: [t.function(t.variableName), t.labelName], color: '#ffca85' },
|
|
{ tag: [t.color, t.constant(t.name), t.standard(t.name)], color: '#61ffca' },
|
|
{ tag: [t.definition(t.name), t.separator], color: '#edecee' },
|
|
{ tag: [t.className], color: '#82e2ff' },
|
|
{ tag: [t.number, t.changed, t.annotation, t.modifier, t.self, t.namespace], color: '#61ffca' },
|
|
{ tag: [t.typeName], color: '#82e2ff' },
|
|
{ tag: [t.operator, t.operatorKeyword], color: '#a277ff' },
|
|
{ tag: [t.url, t.escape, t.regexp, t.link], color: '#61ffca' },
|
|
{ tag: [t.meta, t.comment], color: '#6d6d6d' },
|
|
{ tag: t.strong, fontWeight: 'bold' },
|
|
{ tag: t.emphasis, fontStyle: 'italic' },
|
|
{ tag: t.link, textDecoration: 'underline' },
|
|
{ tag: t.heading, fontWeight: 'bold', color: '#a277ff' },
|
|
{ tag: [t.atom, t.bool, t.special(t.variableName)], color: '#edecee' },
|
|
{ tag: t.invalid, color: '#ff6767' },
|
|
{ tag: t.strikethrough, textDecoration: 'line-through' },
|
|
],
|
|
});
|