-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
102 lines (96 loc) · 2.28 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
/* Base16 colors converted from DuoTone theme */
const baseA0 = "#2a2734"
const baseA1 = "#363342"
const baseA2 = "#545167"
const baseA3 = "#6c6783"
const baseA4 = "#787391"
const baseA5 = "#8e8aa3"
const baseA6 = "#a4a1b5"
const baseA7 = "#bab8c7"
const baseB0 = "#6a51e6"
const baseB1 = "#7a63ee"
const baseB2 = "#8a75f5"
const baseB3 = "#9a86fd"
const baseB4 = "#afa0fe"
const baseB5 = "#c4b9fe"
const baseB6 = "#d9d2fe"
const baseB7 = "#eeebff"
const baseC0 = "#7c756e"
const baseC1 = "#90877f"
const baseC2 = "#a19991"
const baseC3 = "#b2aba4"
const baseC4 = "#c3bdb6"
const baseC5 = "#d8d1ca"
const baseC6 = "#ebe6e0"
const baseC7 = "#fbfaf9"
const baseD0 = "#b37537"
const baseD1 = "#cb823a"
const baseD2 = "#e09142"
const baseD3 = "#ffa142"
const baseD4 = "#ffad5c"
const baseD5 = "#ffb870"
const baseD6 = "#ffc285"
const baseD7 = "#ffcc99"
/* App colors */
const darkBackgroundColor = '#23212C'
const backgroundColor = baseA0
const foregroundColor = baseA6
const cursorColor = baseD0
const borderColor = '#1E1C25'
/* Term colors */
const colors = {
black: baseA0,
red: baseB2,
green: baseD4,
yellow: baseD7,
blue: baseB3,
magenta: baseD4,
cyan: baseB4,
white: baseA6,
lightBlack: baseA3,
lightRed: baseD5,
lightGreen: baseA1,
lightYellow: baseA2,
lightBlue: baseA4,
lightMagenta: baseB6,
lightCyan: baseD3,
lightWhite: baseB7
}
exports.decorateConfig = config => {
return Object.assign({}, config, {
backgroundColor,
foregroundColor,
cursorColor: cursorColor,
borderColor: borderColor,
colors: colors,
css: `
${config.css || ''}
.header_header {
top: 0;
right: 0;
left: 0;
}
.tabs_list {
background-color: ${darkBackgroundColor} !important;
border-bottom-color: ${borderColor} !important;
}
.tab_tab {
color: ${baseA4} !important;
}
.tab_tab.tab_active {
font-weight: 500;
background-color: ${backgroundColor};
border-color: ${borderColor} !important;
}
.tab_tab.tab_active::before {
border-bottom-color: ${backgroundColor};
}
.tabs_title, .tab_icon, .tab_tab.tab_active {
color: ${baseA6} !important;
}
.tab_tab.tab_hasActivity {
color: ${baseB3} !important;
}
`
})
}