forked from matthiaskern/hyper-monochrome
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
53 lines (51 loc) · 1.17 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
const backgroundColor = '#000';
const foregroundColor = '#fff';
const WHITE = '#ffffff';
const LIGHT_GRAY = 'rgba(242,242,242, 0.7)';
const DARK_GRAY = 'rgba(104,104,104, 0.6)';
const cursorColor = LIGHT_GRAY;
const borderColor = '#999';
const colors = {
black: DARK_GRAY,
red: WHITE,
green: WHITE,
yellow: WHITE,
blue: WHITE,
magenta: WHITE,
cyan: WHITE,
white: WHITE,
lightBlack: DARK_GRAY,
lightRed: LIGHT_GRAY,
lightGreen: LIGHT_GRAY,
lightYellow: LIGHT_GRAY,
lightBlue: LIGHT_GRAY,
lightMagenta: LIGHT_GRAY,
lightCyan: LIGHT_GRAY,
colorCubes: WHITE,
grayscale: foregroundColor
};
exports.decorateConfig = (config) => {
return Object.assign({}, config, {
foregroundColor,
backgroundColor,
borderColor,
cursorColor,
colors,
css: `
${config.css || ''}
.cursor-node {
backgroundColor: ${WHITE} !important;
border-color: ${WHITE} !important;
}
.hyper_main {
border: 1px solid ${borderColor} !important;
}
.tab_tab {
border: 1px solid ${borderColor} !important;
}
.tab_textActive {
border-bottom: 2px solid ${WHITE};
}
`
});
};