@setoelkahfi / svara / commits / 165e107

chore: removed unused theme file

mellbacon committed Aug 18, 2024 at 16:21 UTC 165e1071d69907c51735b45c6905034735dbc031
1 file changed -83
src/config/syntaxhighlighting/dark.ts deleted
-83
@@ -1,83 +0,0 @@
1 -import {HighlightStyle, syntaxHighlighting} from "@codemirror/language"
2 -import {tags as t} from "@lezer/highlight"
3 -
4 -// Using https://github.com/one-dark/vscode-one-dark-theme/ as reference for the colors
5 -
6 -const chalky = "#e5c07b",
7 - coral = "#e06c75",
8 - cyan = "#56b6c2",
9 - invalid = "#ffffff",
10 - ivory = "#abb2bf",
11 - stone = "#7d8799", // Brightened compared to original to increase contrast
12 - malibu = "#61afef",
13 - sage = "#98c379",
14 - whiskey = "#d19a66",
15 - violet = "#c678dd",
16 - darkBackground = "#21252b",
17 - highlightBackground = "#2c313a",
18 - background = "#282c34",
19 - tooltipBackground = "#353a42",
20 - selection = "#3E4451",
21 - cursor = "#528bff"
22 -
23 -/// The colors used in the theme, as CSS color strings.
24 -export const color = {
25 - chalky,
26 - coral,
27 - cyan,
28 - invalid,
29 - ivory,
30 - stone,
31 - malibu,
32 - sage,
33 - whiskey,
34 - violet,
35 - darkBackground,
36 - highlightBackground,
37 - background,
38 - tooltipBackground,
39 - selection,
40 - cursor
41 -}
42 -
43 -/// The highlighting style for code in the One Dark theme.
44 -export const oneDarkHighlightStyle = HighlightStyle.define([
45 - {tag: t.keyword,
46 - color: violet},
47 - {tag: [t.name, t.deleted, t.character, t.propertyName, t.macroName],
48 - color: coral},
49 - {tag: [t.function(t.variableName), t.labelName],
50 - color: malibu},
51 - {tag: [t.color, t.constant(t.name), t.standard(t.name)],
52 - color: whiskey},
53 - {tag: [t.definition(t.name), t.separator],
54 - color: ivory},
55 - {tag: [t.typeName, t.className, t.number, t.changed, t.annotation, t.modifier, t.self, t.namespace],
56 - color: chalky},
57 - {tag: [t.operator, t.operatorKeyword, t.url, t.escape, t.regexp, t.link, t.special(t.string)],
58 - color: cyan},
59 - {tag: [t.meta, t.comment],
60 - color: stone},
61 - {tag: t.strong,
62 - fontWeight: "bold"},
63 - {tag: t.emphasis,
64 - fontStyle: "italic"},
65 - {tag: t.strikethrough,
66 - textDecoration: "line-through"},
67 - {tag: t.link,
68 - color: stone,
69 - textDecoration: "underline"},
70 - {tag: t.heading,
71 - fontWeight: "bold",
72 - color: coral},
73 - {tag: [t.atom, t.bool, t.special(t.variableName)],
74 - color: whiskey },
75 - {tag: [t.processingInstruction, t.string, t.inserted],
76 - color: sage},
77 - {tag: t.invalid,
78 - color: invalid},
79 -])
80 -
81 -/// Extension to enable the One Dark theme (both the editor theme and
82 -/// the highlight style).
83 -export const oneDark = syntaxHighlighting(oneDarkHighlightStyle, {fallback: true});
\ No newline at end of file