This repository has been archived by the owner on Jan 28, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.js
83 lines (78 loc) · 1.7 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
// main color
const mainColor = "#67dee4";
const backgroundColor = "#E7F1F4";
const foregroundColor = "#013733";
const borderColor = mainColor;
const cursorColor = mainColor;
const padding = "12px 2px 12px 12px";
const cursorShape = "BLOCK";
const colors = {
// Colors
black: foregroundColor,
white: "#FFFFFF",
red: "#f75f5e",
green: "#06c9a3",
blue: "#01629d",
cyan: "#13b4cb",
yellow: "#ffd36b",
magenta: "#8032d8",
white: "#d5e4e4",
// Light Colors
lightBlack: foregroundColor,
lightRed: "#f75f5e",
lightGreen: "#06c9a3",
lightYellow: "#ffd36b",
lightBlue: "#01629d",
lightMagenta: "#8032d8",
lightCyan: "#13b4cb",
lightWhite: "#d5e4e4"
};
exports.decorateConfig = config => {
return Object.assign({}, config, {
padding,
backgroundColor,
foregroundColor,
borderColor,
cursorColor,
cursorShape,
colors,
// CSS setting
css: `
${config.css || ""}
* {
text-rendering: optimizeLegibility;
font-weight: 500;
}
.hyper_main {
border: solid 2px ${mainColor};
}
.tabs_nav {
background-color: #cfe7ed;
}
.tab_tab {
color: #8e9191;
background-color:#cfe7ed;
border-color: ${borderColor};
}
.tab_tab:before {
border: 0;
}
.tab_tab.tab_active {
border: transparent;
font-weight: bold;
color: ${foregroundColor};
background-color: ${backgroundColor};
.tab_textInner, .tab_icon {
svg {
fill: ${foregroundColor} !important;
}
}
}
.tab_textInner, .tab_icon, .tabs_title {
svg {
fill: #8e9191 !important;
}
}
`
});
};