File tree Expand file tree Collapse file tree 1 file changed +24
-6
lines changed Expand file tree Collapse file tree 1 file changed +24
-6
lines changed Original file line number Diff line number Diff line change 1
1
import { readFileSync } from 'fs' ;
2
2
3
3
import githubDark from 'tm-themes/themes/github-dark.json' with { type : 'json' } ;
4
+ import githubLight from 'tm-themes/themes/github-light.json' with { type : 'json' } ;
5
+
4
6
const mtaLuaDark = JSON . parse ( readFileSync ( './src/themes/mtasa_lua-theme_dark.json' , 'utf-8' ) ) ;
7
+ const mtaLuaLight = JSON . parse ( readFileSync ( './src/themes/mtasa_lua-theme_light.json' , 'utf-8' ) ) ;
5
8
6
- const hybridTheme = {
9
+ const hybridDarkTheme = {
7
10
...githubDark ,
8
11
tokenColors : [
9
12
...githubDark . tokenColors ,
10
13
...mtaLuaDark . tokenColors ,
11
14
] ,
12
- colors : [ mtaLuaDark . colors ]
15
+ colors : {
16
+ ...githubDark . colors ,
17
+ ...mtaLuaDark . colors
18
+ }
19
+ } ;
20
+
21
+ const hybridLightTheme = {
22
+ ...githubLight ,
23
+ tokenColors : [
24
+ ...githubLight . tokenColors ,
25
+ ...mtaLuaLight . tokenColors ,
26
+ ] ,
27
+ colors : {
28
+ ...githubLight . colors ,
29
+ ...mtaLuaLight . colors
30
+ }
13
31
} ;
14
32
15
33
export default {
16
- themes : [ hybridTheme ] ,
34
+ themes : [ hybridDarkTheme , hybridLightTheme ] ,
17
35
shiki : {
18
36
langs : [
19
37
{
20
38
id : 'lua' ,
21
39
scopeName : 'source.lua.mta' ,
22
40
...JSON . parse ( readFileSync ( './src/grammars/lua-mta.tmLanguage.json' , 'utf-8' ) ) ,
23
41
} ,
24
- ] ,
25
- } ,
26
- } ;
42
+ ]
43
+ }
44
+ } ;
You can’t perform that action at this time.
0 commit comments