-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy paththeme.js
68 lines (61 loc) · 1.46 KB
/
theme.js
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
const colors = {
reset: '\x1b[0m',
bold: '\x1b[1m',
dim: '\x1b[2m',
italic: '\x1b[3m',
underscore: '\x1b[4m',
blink: '\x1b[5m',
reverse: '\x1b[7m',
hidden: '\x1b[8m',
fg: {
black: '\x1b[30m',
red: '\x1b[31m',
green: '\x1b[32m',
yellow: '\x1b[33m',
blue: '\x1b[34m',
magenta: '\x1b[35m',
cyan: '\x1b[36m',
white: '\x1b[37m',
crimson: '\x1b[38m',
},
bg: {
black: '\x1b[40m',
red: '\x1b[41m',
green: '\x1b[42m',
yellow: '\x1b[43m',
blue: '\x1b[44m',
magenta: '\x1b[45m',
cyan: '\x1b[46m',
white: '\x1b[47m',
crimson: '\x1b[48m',
},
};
module.exports = {
bold: [colors.bold],
error: [colors.fg.red],
boldError: [colors.bold, colors.fg.red],
fileName: [colors.bold, colors.underscore],
htmlSyntax: {
text: [colors.dim],
tagIdentifier: [colors.fg.cyan],
attributeIdentifier: [colors.fg.yellow],
attributeLiteral: [colors.fg.green],
},
snippetLineNumber: [colors.bold],
snippetErrorLeftArrow: [colors.bold, colors.fg.red],
snippetErrorUnderArrows: [colors.bold, colors.fg.red],
severity: {
success: [colors.fg.green],
error: [colors.fg.red],
warning: [colors.fg.yellow],
info: [colors.fg.blue],
},
inlineStyles: {
'gray': [colors.dim, colors.fg.white],
'strong': [colors.bold],
'underline': [colors.underscore],
'color-yellow': [colors.fg.yellow],
'color-red': [colors.fg.red],
'color-cyan': [colors.fg.cyan],
},
};