theme.js 328 B

1234567891011
  1. 'use strict';
  2. const styles = require('./styles');
  3. const symbols = require('./symbols');
  4. const utils = require('./utils');
  5. module.exports = prompt => {
  6. prompt.options = utils.merge({}, prompt.options.theme, prompt.options);
  7. prompt.symbols = symbols.merge(prompt.options);
  8. prompt.styles = styles.merge(prompt.options);
  9. };