2018-11-09 18:57:24 +00:00
|
|
|
'use strict'
|
|
|
|
const chalk = require('chalk')
|
|
|
|
const noop = x => x
|
2018-12-02 16:02:31 +00:00
|
|
|
const list = {
|
|
|
|
fg: 'black',
|
|
|
|
bg: 'cyan',
|
|
|
|
selected: {
|
|
|
|
bg: 'magenta'
|
|
|
|
}
|
|
|
|
}
|
2018-11-09 18:57:24 +00:00
|
|
|
|
|
|
|
module.exports = {
|
2018-12-14 18:13:39 +00:00
|
|
|
space: global.FX_STYLE_SPACE || 2,
|
|
|
|
null: global.FX_STYLE_NULL || chalk.grey.bold,
|
|
|
|
number: global.FX_STYLE_NUMBER || chalk.cyan.bold,
|
|
|
|
boolean: global.FX_STYLE_BOOLEAN || chalk.yellow.bold,
|
|
|
|
string: global.FX_STYLE_STRING || chalk.green.bold,
|
|
|
|
key: global.FX_STYLE_KEY || chalk.blue.bold,
|
|
|
|
bracket: global.FX_STYLE_BRACKET || noop,
|
|
|
|
comma: global.FX_STYLE_COMMA || noop,
|
|
|
|
colon: global.FX_STYLE_COLON || noop,
|
|
|
|
list: global.FX_STYLE_LIST || list,
|
|
|
|
highlight: global.FX_STYLE_HIGHLIGHT || chalk.black.bgYellow,
|
|
|
|
highlightCurrent: global.FX_STYLE_HIGHLIGHT_CURRENT || chalk.inverse,
|
2018-12-15 07:07:39 +00:00
|
|
|
statusBar: global.FX_STYLE_STATUS_BAR || chalk.inverse,
|
2018-11-09 18:57:24 +00:00
|
|
|
}
|