Have ideas to improve npm?Join in the discussion! »

vim-colors

5.2.0 • Public • Published

vim-colors

Returns vim color configuration for given inputs

This is an npm package so you can use it in your Javascript projects. If you only want to generate a scheme, use vimcolors.org

Install

npm install vim-colors

Usage

This results into a viml configuration script with a dark background (black) and a white foreground

const vimColors = require('vim-colors')
 
const configString = vimColors('my-scheme', {
  dark: true,
  bg: '000000', // black
  fg: 'ffffff', // white
  menus: '002244', // navy blue
  comments: 'cccccc', // gray
  scheme: [
    '4169e1',
    'ff6347'
    // You can add up to 6 colors
  ]
})

Related

License

MIT

Author

me
Pablo Varela

Install

npm i vim-colors

DownloadsWeekly Downloads

4

Version

5.2.0

License

MIT

Unpacked Size

5.73 kB

Total Files

5

Last publish

Collaborators

  • avatar