An open API service indexing awesome lists of open source software.

https://github.com/pablopunk/vim-colors

Generate vim colors
https://github.com/pablopunk/vim-colors

Last synced: about 1 year ago
JSON representation

Generate vim colors

Awesome Lists containing this project

README

          

# 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](https://vimcolors.org)

## Install

```sh
npm install vim-colors
```

## Usage

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

```js
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

- [vimcolors.org](https://vimcolors.org): The website that uses this module

## License

MIT

## Author

| ![me](https://gravatar.com/avatar/fa50aeff0ddd6e63273a068b04353d9d?size=100) |
| ---------------------------------------------------------------------------- |
| [Pablo Varela](https://pablo.life) |