Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
An easier way to write Vim color schemes
branch: master
Failed to load latest commit information.
bin
features Force gui and cterm to NONE
lib Bump version to 0.0.8
spec Force gui and cterm to NONE
.gitignore Gitignore .rvmrc
Gemfile Initial commit
README.markdown Update usage in readme
Rakefile Updating a bunch of code
palette.gemspec Update gem dependencies

README.markdown

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.

Something went wrong with that request. Please try again.