-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathindex.js
64 lines (62 loc) · 1.32 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 foregroundColor = '#ebdbb2'
const backgroundColor = '#282828'
const black = '#928374'
const red = '#fb4934'
const green = '#b8bb26'
const yellow = '#fabd2f'
const blue = '#83a598'
const magenta = '#d3869b'
const cyan = '#8ec07c'
const white = '#fbf1c7'
const lightBlack = '#ebdbb2'
const lightRed = '#cc241d'
const lightGreen = '#98971a'
const lightYellow = '#d79921'
const lightBlue = '#458588'
const lightMagenta = '#b16286'
const lightCyan = '#689d6a'
const lightWhite = '#a89984'
exports.decorateConfig = config => {
return Object.assign({}, config, {
backgroundColor,
foregroundColor,
borderColor: '#665c54',
cursorColor: '#fbf1c7',
colors: {
black,
red,
green,
yellow,
blue,
magenta,
cyan,
white,
// light
lightBlack,
lightRed,
lightGreen,
lightYellow,
lightBlue,
lightMagenta,
lightCyan,
lightWhite
},
css: `
${config.css || ''}
.tabs_list,
.tab_tab,
.tabs_borderShim {
color: ${foregroundColor} !important;
border-color: transparent !important;
}
.tab_tab {
background-color: transparent;
}
.tab_active {
background-color: #32302f;
border-bottom: 2px solid ${lightGreen} !important;
}
`
})
}