Skip to content

Commit f30e6c8

Browse files
Merge pull request #31 from claytercek/main
Syntax style tweaks
2 parents 9d8a0ec + 08bb9ad commit f30e6c8

2 files changed

Lines changed: 391 additions & 80 deletions

File tree

src/theme.js

Lines changed: 40 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ export function getTheme({ themeKey, name, type }) {
5959
appearance: type,
6060
name,
6161
style: {
62+
"background.appearance": "opaque",
63+
6264
"background": tokens['bgColor/default'],
6365
"border": tokens['borderColor/default'],
6466

@@ -241,7 +243,7 @@ export function getTheme({ themeKey, name, type }) {
241243

242244
"syntax": {
243245
"attribute": {
244-
"color": null,
246+
"color": lightDark("base/color/blue/6", "base/color/blue/2"),
245247
"font_style": null,
246248
"font_weight": null
247249
},
@@ -266,7 +268,7 @@ export function getTheme({ themeKey, name, type }) {
266268
"font_weight": null
267269
},
268270
"constructor": {
269-
"color": lightDark("base/color/blue/6", "base/color/blue/2"),
271+
"color": lightDark("base/color/red/5", "base/color/red/3"),
270272
"font_style": null,
271273
"font_weight": null
272274
},
@@ -315,6 +317,11 @@ export function getTheme({ themeKey, name, type }) {
315317
"font_style": null,
316318
"font_weight": null
317319
},
320+
"keyword.operator": {
321+
"color": lightDark("base/color/red/5", "base/color/red/3"),
322+
"font_style": null,
323+
"font_weight": null
324+
},
318325
"label": {
319326
"color": lightDark("base/color/blue/6", "base/color/blue/2"),
320327
"font_style": null,
@@ -336,7 +343,7 @@ export function getTheme({ themeKey, name, type }) {
336343
"font_weight": null
337344
},
338345
"operator": {
339-
"color": tokens["fgColor/default"],
346+
"color": lightDark("base/color/red/5", "base/color/red/3"),
340347
"font_style": null,
341348
"font_weight": null
342349
},
@@ -356,12 +363,17 @@ export function getTheme({ themeKey, name, type }) {
356363
"font_weight": null
357364
},
358365
"property": {
359-
"color": lightDark("base/color/blue/6", "base/color/blue/2"),
366+
"color": tokens["fgColor/default"],
367+
"font_style": null,
368+
"font_weight": null
369+
},
370+
"property.json_key": {
371+
"color": lightDark("base/color/green/6", "base/color/green/1"),
360372
"font_style": null,
361373
"font_weight": null
362374
},
363375
"punctuation": {
364-
"color": tokens["fgColor/default"],
376+
"color": lightDark("base/color/red/5", "base/color/red/3"),
365377
"font_style": null,
366378
"font_weight": null
367379
},
@@ -375,6 +387,11 @@ export function getTheme({ themeKey, name, type }) {
375387
"font_style": null,
376388
"font_weight": null
377389
},
390+
"punctuation.delimiter.jsx": {
391+
"color": lightDark("base/color/red/5", "base/color/red/3"),
392+
"font_style": null,
393+
"font_weight": null
394+
},
378395
"punctuation.list_marker": {
379396
"color": lightDark("base/color/orange/6", "base/color/orange/2"),
380397
"font_style": null,
@@ -391,9 +408,9 @@ export function getTheme({ themeKey, name, type }) {
391408
"font_weight": null
392409
},
393410
"string.escape": {
394-
"color": lightDark("base/color/green/6", "base/color/green/1"),
411+
"color": lightDark("base/color/red/5", "base/color/red/3"),
395412
"font_style": null,
396-
"font_weight": 700
413+
"font_weight": null
397414
},
398415
"string.regex": {
399416
"color": lightDark("base/color/blue/8", "base/color/blue/1"),
@@ -430,13 +447,28 @@ export function getTheme({ themeKey, name, type }) {
430447
"font_style": null,
431448
"font_weight": null
432449
},
450+
"type.builtin": {
451+
"color": lightDark("base/color/blue/6", "base/color/blue/2"),
452+
"font_style": null,
453+
"font_weight": null
454+
},
433455
"variable": {
434456
"color": tokens["fgColor/default"],
435457
"font_style": null,
436458
"font_weight": null
437459
},
460+
"variable.builtin": {
461+
"color": lightDark("base/color/blue/6", "base/color/blue/2"),
462+
"font_style": null,
463+
"font_weight": null
464+
},
465+
"variable.parameter": {
466+
"color": lightDark("base/color/orange/6", "base/color/orange/2"),
467+
"font_style": null,
468+
"font_weight": null
469+
},
438470
"variable.special": {
439-
"color": lightDark("base/color/red/5", "base/color/red/3"),
471+
"color": lightDark("base/color/blue/6", "base/color/blue/2"),
440472
"font_style": null,
441473
"font_weight": null
442474
},

0 commit comments

Comments
 (0)