1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
|
/**
* @license
* Copyright 2025 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
import { type ColorsTheme, Theme } from './theme.js';
import { lightSemanticColors } from './semantic-tokens.js';
const githubLightColors: ColorsTheme = {
type: 'light',
Background: '#f8f8f8',
Foreground: '#24292E',
LightBlue: '#0086b3',
AccentBlue: '#458',
AccentPurple: '#900',
AccentCyan: '#009926',
AccentGreen: '#008080',
AccentYellow: '#990073',
AccentRed: '#d14',
DiffAdded: '#C6EAD8',
DiffRemoved: '#FFCCCC',
Comment: '#998',
Gray: '#999',
GradientColors: ['#458', '#008080'],
};
export const GitHubLight: Theme = new Theme(
'GitHub Light',
'light',
{
hljs: {
display: 'block',
overflowX: 'auto',
padding: '0.5em',
color: githubLightColors.Foreground,
background: githubLightColors.Background,
},
'hljs-comment': {
color: githubLightColors.Comment,
fontStyle: 'italic',
},
'hljs-quote': {
color: githubLightColors.Comment,
fontStyle: 'italic',
},
'hljs-keyword': {
color: githubLightColors.Foreground,
fontWeight: 'bold',
},
'hljs-selector-tag': {
color: githubLightColors.Foreground,
fontWeight: 'bold',
},
'hljs-subst': {
color: githubLightColors.Foreground,
fontWeight: 'normal',
},
'hljs-number': {
color: githubLightColors.AccentGreen,
},
'hljs-literal': {
color: githubLightColors.AccentGreen,
},
'hljs-variable': {
color: githubLightColors.AccentGreen,
},
'hljs-template-variable': {
color: githubLightColors.AccentGreen,
},
'hljs-tag .hljs-attr': {
color: githubLightColors.AccentGreen,
},
'hljs-string': {
color: githubLightColors.AccentRed,
},
'hljs-doctag': {
color: githubLightColors.AccentRed,
},
'hljs-title': {
color: githubLightColors.AccentPurple,
fontWeight: 'bold',
},
'hljs-section': {
color: githubLightColors.AccentPurple,
fontWeight: 'bold',
},
'hljs-selector-id': {
color: githubLightColors.AccentPurple,
fontWeight: 'bold',
},
'hljs-type': {
color: githubLightColors.AccentBlue,
fontWeight: 'bold',
},
'hljs-class .hljs-title': {
color: githubLightColors.AccentBlue,
fontWeight: 'bold',
},
'hljs-tag': {
color: githubLightColors.AccentBlue,
fontWeight: 'normal',
},
'hljs-name': {
color: githubLightColors.AccentBlue,
fontWeight: 'normal',
},
'hljs-attribute': {
color: githubLightColors.AccentBlue,
fontWeight: 'normal',
},
'hljs-regexp': {
color: githubLightColors.AccentCyan,
},
'hljs-link': {
color: githubLightColors.AccentCyan,
},
'hljs-symbol': {
color: githubLightColors.AccentYellow,
},
'hljs-bullet': {
color: githubLightColors.AccentYellow,
},
'hljs-built_in': {
color: githubLightColors.LightBlue,
},
'hljs-builtin-name': {
color: githubLightColors.LightBlue,
},
'hljs-meta': {
color: githubLightColors.Gray,
fontWeight: 'bold',
},
'hljs-deletion': {
background: '#fdd',
},
'hljs-addition': {
background: '#dfd',
},
'hljs-emphasis': {
fontStyle: 'italic',
},
'hljs-strong': {
fontWeight: 'bold',
},
},
githubLightColors,
lightSemanticColors,
);
|