Palette

An easier way to write Vim color schemes

Install

Install with Rubygems:

gem install palette

Usage

From your terminal:

palette path/to/color_scheme

Syntax

vim_colors "sweet" do
  author "Josh Clayton"
  notes  "My really sweet theme"

  reset      true
  background :light

  Normal "222", "f8f8ff"

  Folded "808080", "ECECEC", :gui => "bold"
  link :vimFold, :FoldColumn, :to => :Folded
end

This color scheme would generate the following output:

" Vim color file
"   This file was generated by Palette
"   http://rubygems.org/gems/palette
"
" Author: Josh Clayton
" My really sweet theme
let colors_name="sweet"
hi clear
if version > 580
    if exists("syntax_on")
        syntax reset
    endif
endif
if has("gui_running")
    set background=light
endif
hi Normal guifg=#222222 ctermfg=235 guibg=#F8F8FF ctermbg=231
hi Folded guifg=#808080 ctermfg=244 guibg=#ECECEC ctermbg=255 gui=bold cterm=bold
hi link vimFold    Folded
hi link FoldColumn Folded

Author

Written by Josh Clayton.