-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
42 lines (39 loc) · 1.08 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
const hexRgb = require('hex-rgb');
const palette = require('ibm-northstar-colors').colors;
const foregroundColor = palette.warmWhite30;
const backgroundColor = palette.blue90;
const borderColor = palette.coolgray80;
const cursorColor = palette.blue50;
const selection = hexRgb(palette.bluecore);
const selectionColor = `rgba(${selection.red}, ${selection.green}, ${selection.blue}, 0.5)`;
const colors = {
black: palette.blackcore,
lightBlack: palette.coolgray70,
red: palette.red40,
lightRed: palette.red30,
green: palette.green20,
lightGreen: palette.green10,
yellow: palette.yellow20,
lightYellow: palette.yellow10,
blue: palette.blue50,
lightBlue: palette.blue20,
magenta: palette.magenta50,
lightMagenta: palette.magenta20,
cyan: palette.teal40,
lightCyan: palette.teal20,
white: palette.whitecore,
lightWhite: palette.warmwhite30
};
exports.decorateConfig = config => {
return Object.assign({}, config, {
foregroundColor,
backgroundColor,
borderColor,
cursorColor,
colors,
selectionColor,
css: `
${config.css || ''}
`
})
}