Skip to content

Commit 77a181e

Browse files
authored
cotton candy theme syntax highlites (#1278)
1 parent 32f326d commit 77a181e

File tree

1 file changed

+25
-15
lines changed

1 file changed

+25
-15
lines changed

pgml-dashboard/static/js/utilities/code_mirror_theme.js

Lines changed: 25 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const ivory = "#abb2bf";
1212
const stone = "#7d8799";
1313
const malibu = "#61afef";
1414
const sage = "#0F0"; // Set
15-
const whiskey = "#d19a66";
15+
const whiskey = "#ffb500";
1616
const violet = "#F3F"; // Set
1717
const darkBackground = "#17181A"; // Set
1818
const highlightBackground = "#2c313a";
@@ -91,12 +91,24 @@ const editorTheme = {
9191
}
9292

9393
const highlightStyle = [
94-
{ tag: t.keyword, color: violet },
94+
{ tag: [
95+
t.keyword,
96+
t.annotation,
97+
t.modifier,
98+
t.special(t.string),
99+
t.operatorKeyword,
100+
],
101+
color: violet
102+
},
103+
{
104+
tag: [t.name, t.propertyName, t.deleted, t.character, t.macroName, t.function(t.variableName)],
105+
color: blue,
106+
},
95107
{
96-
tag: [t.name, t.deleted, t.character, t.propertyName, t.macroName],
97-
color: salmon,
108+
tag: [],
109+
color: cyan,
98110
},
99-
{ tag: [t.function(t.variableName), t.labelName], color: malibu },
111+
{ tag: [t.labelName], color: whiskey },
100112
{ tag: [t.color, t.constant(t.name), t.standard(t.name)], color: whiskey },
101113
{ tag: [t.definition(t.name), t.separator], color: ivory },
102114
{
@@ -105,33 +117,31 @@ const highlightStyle = [
105117
t.className,
106118
t.number,
107119
t.changed,
108-
t.annotation,
109-
t.modifier,
110120
t.self,
111121
t.namespace,
122+
t.bool,
112123
],
113124
color: chalky,
114125
},
115-
{
116-
tag: [
117-
t.operator,
118-
t.operatorKeyword,
126+
{ tag: [t.operator], color: whiskey },
127+
{ tag: [
128+
t.processingInstruction,
129+
t.string,
130+
t.inserted,
119131
t.url,
120132
t.escape,
121133
t.regexp,
122134
t.link,
123-
t.special(t.string),
124135
],
125-
color: blue,
136+
color: sage
126137
},
127138
{ tag: [t.meta, t.comment], color: stone },
128139
{ tag: t.strong, fontWeight: "bold" },
129140
{ tag: t.emphasis, fontStyle: "italic" },
130141
{ tag: t.strikethrough, textDecoration: "line-through" },
131142
{ tag: t.link, color: stone, textDecoration: "underline" },
132143
{ tag: t.heading, fontWeight: "bold", color: salmon },
133-
{ tag: [t.atom, t.bool, t.special(t.variableName)], color: whiskey },
134-
{ tag: [t.processingInstruction, t.string, t.inserted], color: sage },
144+
{ tag: [t.atom, t.special(t.variableName)], color: whiskey },
135145
{ tag: t.invalid, color: invalid },
136146
]
137147

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy