From 11dced2b565131536b3233c184dd83a13ece01a3 Mon Sep 17 00:00:00 2001 From: thiagoalessio Date: Tue, 19 Dec 2017 00:02:21 +0100 Subject: [PATCH] Add "Themes" section on README --- README.md | 88 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 88 insertions(+) diff --git a/README.md b/README.md index b64c59e..67819cb 100644 --- a/README.md +++ b/README.md @@ -34,6 +34,90 @@ map l :RainbowLevelsToggle au FileType javascript,python,php,xml,yaml :RainbowLevelsOn ``` +In addition to the commands mentioned above, it also exposes a global variable +`g:rainbow_levels` that can be overridden to change the highlight color of each +level. + +By default there are only 8 different levels, but feel free to add as many as +you need, the plugin takes into account the amount of entries on `g:rainbow_levels`. + +## Themes + + + +### [Jellybeans][] + +```vim +let g:rainbow_levels = [ + \{'ctermfg': 121, 'guifg': '#65c254'}, + \{'ctermfg': 81, 'guifg': '#8fbfdc'}, + \{'ctermfg': 11, 'guifg': '#8197bf'}, + \{'ctermfg': 14, 'guifg': '#c6b6ee'}, + \{'ctermfg': 13, 'guifg': '#cf6a4c'}, + \{'ctermfg': 121, 'guifg': '#ffb964'}, + \{'ctermfg': 7, 'guifg': '#e8e8d3'}, + \{'ctermfg': 14, 'guifg': '#888888'}] +``` + +


+--- + + + +### [Zenburn][] + +```vim +let g:rainbow_levels = [ + \{'ctermfg': 108, 'guifg': '#7f9f7f'}, + \{'ctermfg': 116, 'guifg': '#8cd0d3'}, + \{'ctermfg': 109, 'guifg': '#9fafaf'}, + \{'ctermfg': 174, 'guifg': '#cc9393'}, + \{'ctermfg': 223, 'guifg': '#ffd7a7'}, + \{'ctermfg': 228, 'guifg': '#efef8f'}, + \{'ctermfg': 230, 'guifg': '#f0efd0'}, + \{'ctermfg': 240, 'guifg': '#5b605e'}] +``` + +


+--- + + + +### [Solarized][] + +```vim +let g:rainbow_levels = [ + \{'ctermfg': 2, 'guifg': '#859900'}, + \{'ctermfg': 6, 'guifg': '#2aa198'}, + \{'ctermfg': 4, 'guifg': '#268bd2'}, + \{'ctermfg': 5, 'guifg': '#6c71c4'}, + \{'ctermfg': 1, 'guifg': '#dc322f'}, + \{'ctermfg': 3, 'guifg': '#b58900'}, + \{'ctermfg': 8, 'guifg': '#839496'}, + \{'ctermfg': 7, 'guifg': '#586e75'}] +``` + +


+--- + + + +### [Dracula][] + +```vim +let g:rainbow_levels = [ + \{'ctermfg': 84, 'guifg': '#50fa7b'}, + \{'ctermfg': 117, 'guifg': '#8be9fd'}, + \{'ctermfg': 61, 'guifg': '#6272a4'}, + \{'ctermfg': 212, 'guifg': '#ff79c6'}, + \{'ctermfg': 203, 'guifg': '#ffb86c'}, + \{'ctermfg': 228, 'guifg': '#f1fa8c'}, + \{'ctermfg': 15, 'guifg': '#f8f8f2'}, + \{'ctermfg': 231, 'guifg': '#525563'}] +``` + +


+ ## Where to get help Join the chat at @@ -46,4 +130,8 @@ rainbow_levels.vim is released under the [MIT License][]. [gitter]: https://gitter.im/thiagoalessio/rainbow_levels.vim?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge [license_badge]: https://img.shields.io/badge/License-MIT-yellow.svg [mit_license]: https://opensource.org/licenses/MIT +[Jellybeans]: https://github.com/nanotech/jellybeans.vim +[Zenburn]: http://kippura.org/zenburnpage/ +[Solarized]: http://ethanschoonover.com/solarized +[Dracula]: https://draculatheme.com/ [MIT License]: https://github.com/thiagoalessio/rainbow_levels.vim/blob/master/MIT-LICENSE