@@ -17,7 +17,9 @@ export const defaultSettingsGithubLight: CreateThemeOptions['settings'] = {
17
17
gutterForeground : '#6e7781' ,
18
18
}
19
19
20
- export const createGithubLightTheme = ( options ?: Partial < CreateThemeOptions > ) => {
20
+ export const createGithubLightTheme = (
21
+ options ?: Partial < CreateThemeOptions > ,
22
+ ) => {
21
23
const { theme = 'light' , settings = { } , styles = [ ] } = options || { }
22
24
return createTheme ( {
23
25
theme,
@@ -29,8 +31,14 @@ export const createGithubLightTheme = (options?: Partial<CreateThemeOptions>) =>
29
31
{ tag : [ t . standard ( t . tagName ) , t . tagName ] , color : '#116329' } ,
30
32
{ tag : [ t . comment , t . bracket ] , color : '#6a737d' } ,
31
33
{ tag : [ t . className , t . propertyName ] , color : '#6f42c1' } ,
32
- { tag : [ t . variableName , t . attributeName , t . number , t . operator ] , color : '#005cc5' } ,
33
- { tag : [ t . keyword , t . typeName , t . typeOperator , t . typeName ] , color : '#d73a49' } ,
34
+ {
35
+ tag : [ t . variableName , t . attributeName , t . number , t . operator ] ,
36
+ color : '#005cc5' ,
37
+ } ,
38
+ {
39
+ tag : [ t . keyword , t . typeName , t . typeOperator , t . typeName ] ,
40
+ color : '#d73a49' ,
41
+ } ,
34
42
{ tag : [ t . string , t . meta , t . regexp ] , color : '#032f62' } ,
35
43
{ tag : [ t . name , t . quote ] , color : '#22863a' } ,
36
44
{ tag : [ t . heading , t . strong ] , color : '#24292e' , fontWeight : 'bold' } ,
@@ -58,7 +66,9 @@ export const defaultSettingsGithubDark: CreateThemeOptions['settings'] = {
58
66
lineHighlight : '#36334280' ,
59
67
}
60
68
61
- export const createGithubDarkTheme = ( options ?: Partial < CreateThemeOptions > ) => {
69
+ export const createGithubDarkTheme = (
70
+ options ?: Partial < CreateThemeOptions > ,
71
+ ) => {
62
72
const { theme = 'dark' , settings = { } , styles = [ ] } = options || { }
63
73
return createTheme ( {
64
74
theme,
@@ -70,8 +80,14 @@ export const createGithubDarkTheme = (options?: Partial<CreateThemeOptions>) =>
70
80
{ tag : [ t . standard ( t . tagName ) , t . tagName ] , color : '#7ee787' } ,
71
81
{ tag : [ t . comment , t . bracket ] , color : '#8b949e' } ,
72
82
{ tag : [ t . className , t . propertyName ] , color : '#d2a8ff' } ,
73
- { tag : [ t . variableName , t . attributeName , t . number , t . operator ] , color : '#79c0ff' } ,
74
- { tag : [ t . keyword , t . typeName , t . typeOperator , t . typeName ] , color : '#ff7b72' } ,
83
+ {
84
+ tag : [ t . variableName , t . attributeName , t . number , t . operator ] ,
85
+ color : '#79c0ff' ,
86
+ } ,
87
+ {
88
+ tag : [ t . keyword , t . typeName , t . typeOperator , t . typeName ] ,
89
+ color : '#ff7b72' ,
90
+ } ,
75
91
{ tag : [ t . string , t . meta , t . regexp ] , color : '#a5d6ff' } ,
76
92
{ tag : [ t . name , t . quote ] , color : '#7ee787' } ,
77
93
{ tag : [ t . heading , t . strong ] , color : '#d2a8ff' , fontWeight : 'bold' } ,
0 commit comments