-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
64 lines (60 loc) · 1.35 KB
/
index.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
'use strict';
const backgroundColor = '#070713';
const foregroundColor = '#FFA42E';
const borderColor = '#121234';
const cursorColor = '#FFA42E';
const black = "#333333";
const red = "#FF1D00";
const green = "#00FF80";
const yellow = "#FFA800";
const blue = "#0066FF";
const magenta = "#A900FF";
const cyan = "#0DEAFF";
const white = "#FFFFFF";
const lightBlack = "#555555";
const lightRed = "#FF5640";
const lightGreen = "#4DFFA6";
const lightYellow = "#FFBF40";
const lightBlue = "#408CFF";
const lightMagenta = "#BF40FF";
const lightCyan = "#40EFFF";
const lightWhite = "#E6E8FF";
const colors = {
black: black,
red: red,
green: green,
yellow: yellow,
blue: blue,
magenta: magenta,
cyan: cyan,
white: white,
lightBlack: lightBlack,
lightRed: lightRed,
lightGreen: lightGreen,
lightYellow: lightYellow,
lightBlue: lightBlue,
lightMagenta: lightMagenta,
lightCyan: lightCyan,
lightWhite: lightWhite,
};
exports.decorateConfig = (config) => {
return Object.assign({}, config, {
backgroundColor,
foregroundColor,
borderColor,
cursorColor,
colors,
termCSS: `
${config.termCSS || ''}
`,
css: `
${config.css || ''}
.tabs_list .tab_tab.tab_active .tab_text {
background: ${backgroundColor};
}
.tab_active:before {
border-color: ${borderColor};
}
`,
});
};