Skip to content

Commit d2ad3e5

Browse files
committed
Dark syntax highlighting improvement
1 parent 38c2a10 commit d2ad3e5

File tree

2 files changed

+38
-43
lines changed

2 files changed

+38
-43
lines changed

web/src/styles/custom.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
/* Custom MTA Wiki CSS */
22
:root {
3-
--color-type-shared: rgba(117, 117, 255, 1);
3+
--color-type-shared: rgba(47, 135, 212, 1);
44
--color-type-shared-background: rgba(117, 117, 255, 0.05);
55
--color-type-shared-background-high: rgba(117, 117, 255, 0.5);
66
--color-type-client: rgba(255, 50, 50, 1);
77
--color-type-client-background: rgba(255, 50, 50, 0.05);
88
--color-type-client-background-high: rgba(255, 50, 50, 0.5);
9-
--color-type-server: rgba(232, 115, 0, 1);
9+
--color-type-server: rgba(212, 154, 47, 1);
1010
--color-type-server-background: rgba(232, 115, 0, 0.05);
11-
--color-type-server-background-high: rgba(232, 115, 0, 0.5);
11+
--color-type-server-background-high: rgba(193, 131, 18, 1);
1212
--color-mta-orange: rgba(232, 115, 0, 1);
1313

1414
/* Override Starlight styling */

web/src/themes/mtasa_lua-theme_dark.json

Lines changed: 35 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@
1010
{
1111
"scope": "support.function",
1212
"settings": {
13-
"foreground": "#dcdcaa",
13+
"foreground": "#5fb485",
1414
"fontStyle": "bold"
1515
}
1616
},
1717

1818
{
1919
"scope": "entity.name.function.lua",
2020
"settings": {
21-
"foreground": "#dcdcaa",
21+
"foreground": "#5fb485",
2222
"fontStyle": "bold"
2323
}
2424
},
@@ -50,15 +50,15 @@
5050
{
5151
"scope": "keyword.mta",
5252
"settings": {
53-
"foreground": "#6edbdb",
53+
"foreground": "#10b7b7",
5454
"fontStyle": "bold"
5555
}
5656
},
5757

5858
{
5959
"scope": "meta.function.lua",
6060
"settings": {
61-
"foreground": "#dcdcaa"
61+
"foreground": "#5fb485"
6262
}
6363
},
6464
{
@@ -76,20 +76,20 @@
7676
{
7777
"scope": "meta.parameter.lua",
7878
"settings": {
79-
"foreground": "#9cdcfe"
79+
"foreground": "#68cbe1"
8080
}
8181
},
8282
{
8383
"scope": "variable.parameter.function.lua",
8484
"settings": {
85-
"foreground": "#9cdcfe",
85+
"foreground": "#68cbe1",
8686
"fontStyle": "italic"
8787
}
8888
},
8989
{
9090
"scope": "punctuation.separator.arguments.lua",
9191
"settings": {
92-
"foreground": "#d4d4d4"
92+
"foreground": "#fac761"
9393
}
9494
},
9595
{
@@ -107,7 +107,7 @@
107107
"constant.numeric.integer.lua"
108108
],
109109
"settings": {
110-
"foreground": "#b5cea8",
110+
"foreground": "#f9ae58",
111111
"fontStyle": ""
112112
}
113113
},
@@ -120,14 +120,14 @@
120120
{
121121
"scope": "comment.line.shebang.lua",
122122
"settings": {
123-
"foreground": "#6a9955",
123+
"foreground": "#9a9b9a",
124124
"fontStyle": "italic"
125125
}
126126
},
127127
{
128128
"scope": "comment.lua",
129129
"settings": {
130-
"foreground": "#6a9955",
130+
"foreground": "#9a9b9a",
131131
"fontStyle": "italic"
132132
}
133133
},
@@ -141,53 +141,53 @@
141141
{
142142
"scope": "string.tag.lua",
143143
"settings": {
144-
"foreground": "#c586c0"
144+
"foreground": "#ba84cb"
145145
}
146146
},
147147
{
148148
"scope": "storage.type.attribute.lua",
149149
"settings": {
150-
"foreground": "#4ec9b0"
150+
"foreground": "#2c10e0"
151151
}
152152
},
153153
{
154154
"scope": "storage.type.generic.lua",
155155
"settings": {
156-
"foreground": "#9cdcfe"
156+
"foreground": "#e010d2"
157157
}
158158
},
159159
{
160160
"scope": "keyword.control.lua",
161161
"settings": {
162-
"foreground": "#c586c0",
162+
"foreground": "#ba84cb",
163163
"fontStyle": "bold"
164164
}
165165
},
166166
{
167167
"scope": "keyword.local.lua",
168168
"settings": {
169-
"foreground": "#c586c0",
169+
"foreground": "#ba84cb",
170170
"fontStyle": "bold"
171171
}
172172
},
173173
{
174174
"scope": "constant.language.lua",
175175
"settings": {
176-
"foreground": "#d42f66",
176+
"foreground": "#ec5f66",
177177
"fontStyle": "italic"
178178
}
179179
},
180180
{
181181
"scope": "variable.language.self.lua",
182182
"settings": {
183-
"foreground": "#9cdcfe",
183+
"foreground": "#ec5f66",
184184
"fontStyle": "italic"
185185
}
186186
},
187187
{
188188
"scope": "entity.name.tag.lua",
189189
"settings": {
190-
"foreground": "#c586c0",
190+
"foreground": "#ba84cb",
191191
"fontStyle": "bold"
192192
}
193193
},
@@ -197,13 +197,6 @@
197197
"foreground": "#d7ba7d"
198198
}
199199
},
200-
{
201-
"scope": "keyword.operator.lua",
202-
"settings": {
203-
"foreground": "#c586c0",
204-
"fontStyle": "bold"
205-
}
206-
},
207200
{
208201
"scope": "entity.name.class.lua",
209202
"settings": {
@@ -214,7 +207,7 @@
214207
{
215208
"scope": "entity.other.attribute.lua",
216209
"settings": {
217-
"foreground": "#9cdcfe"
210+
"foreground": "#68cbe1"
218211
}
219212
},
220213
{
@@ -223,49 +216,51 @@
223216
"foreground": "#d4d4d4"
224217
}
225218
},
219+
226220
{
227221
"scope": "keyword.operator.lua",
228222
"settings": {
229-
"foreground": "#c586c0"
223+
"foreground": "#f97b58"
230224
}
231225
},
226+
232227
{
233228
"scope": "punctuation.whitespace.comment.leading.lua",
234229
"settings": {
235-
"foreground": "#6a9955"
230+
"foreground": "#9a9b9a"
236231
}
237232
},
238233
{
239234
"scope": "punctuation.whitespace.comment.trailing.lua",
240235
"settings": {
241-
"foreground": "#6a9955"
236+
"foreground": "#9a9b9a"
242237
}
243238
},
244239
{
245240
"scope": "punctuation.definition.comment.begin.lua",
246241
"settings": {
247-
"foreground": "#57a64a",
242+
"foreground": "#9a9b9a",
248243
"fontStyle": "bold"
249244
}
250245
},
251246
{
252247
"scope": "punctuation.definition.comment.end.lua",
253248
"settings": {
254-
"foreground": "#57a64a",
249+
"foreground": "#9a9b9a",
255250
"fontStyle": "bold"
256251
}
257252
},
258253
{
259254
"scope": "comment.block.lua",
260255
"settings": {
261-
"foreground": "#6a9955",
256+
"foreground": "#9a9b9a",
262257
"fontStyle": "italic"
263258
}
264259
},
265260
{
266261
"scope": "comment.line.double-dash.lua",
267262
"settings": {
268-
"foreground": "#6a9955"
263+
"foreground": "#9a9b9a"
269264
}
270265
},
271266
{
@@ -291,13 +286,13 @@
291286
{
292287
"scope": "support.type.lua",
293288
"settings": {
294-
"foreground": "#9cdcfe"
289+
"foreground": "#68cbe1"
295290
}
296291
},
297292
{
298293
"scope": "entity.name.variable.lua",
299294
"settings": {
300-
"foreground": "#9cdcfe"
295+
"foreground": "#68cbe1"
301296
}
302297
},
303298
{
@@ -353,31 +348,31 @@
353348
{
354349
"scope": "string.quoted.single.lua",
355350
"settings": {
356-
"foreground": "#98c379"
351+
"foreground": "#99c794"
357352
}
358353
},
359354
{
360355
"scope": "string.quoted.double.lua",
361356
"settings": {
362-
"foreground": "#98c379"
357+
"foreground": "#99c794"
363358
}
364359
},
365360
{
366361
"scope": "string.quoted.other.multiline.lua",
367362
"settings": {
368-
"foreground": "#98c379"
363+
"foreground": "#99c794"
369364
}
370365
},
371366
{
372367
"scope": "punctuation.definition.string.begin.lua",
373368
"settings": {
374-
"foreground": "#d19a66"
369+
"foreground": "#5fb4b4"
375370
}
376371
},
377372
{
378373
"scope": "punctuation.definition.string.end.lua",
379374
"settings": {
380-
"foreground": "#d19a66"
375+
"foreground": "#5fb4b4"
381376
}
382377
},
383378
{

0 commit comments

Comments
 (0)