-
Notifications
You must be signed in to change notification settings - Fork 12
/
index.js
46 lines (45 loc) · 939 Bytes
/
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
const backgroundColor = '#353a44';
const foregroundColor = '#d9d9d9';
const cursorColor = '#d9d9d9';
const borderColor = '#49515f';
const selectionColor = 'rgba(106, 121, 133, 0.3)';
const colors = {
black: '#151515',
red: '#bc5653',
green: '#909d63',
yellow: '#ebc17a',
blue: '#6a8799',
magenta: '#b06698',
cyan: '#c9dfff',
white: '#d9d9d9',
lightBlack: '#636363',
lightRed: '#bc5653',
lightGreen: '#a0ac77',
lightYellow: '#ebc17a',
lightBlue: '#7eaac7',
lightMagenta: '#b48ead',
lightCyan: '#acbbd0',
lightWhite: '#f7f7f7'
};
exports.decorateConfig = config => {
return Object.assign({}, config, {
foregroundColor,
backgroundColor,
borderColor,
selectionColor,
colors,
cursorColor,
termCSS: `
${config.termCSS || ''}
::selection {
background: ${selectionColor} !important;
}
`,
css: `
${config.css || ''}
::selection {
background: ${selectionColor} !important;
}
`
});
};