Protesilaos Stavrou
Philosopher. Polymath.

Caprice theme

Caprice is a medium-to-high contrast syntax theme hinting towards the purple side of the spectrum. It comes in light and dark variants, while using a single 16-colour palette.

Packages or ports of it are available for Vim and Atom (deprecated as of 2019-05-04), as well as the Xfce4, RXVT-Unicode (urxvt), and XTERM terminal emulators.

UPDATE 2019-05-04: Prot16 is not actively maintained. The themes for Vim and terminal emulators should still work though. Users are encouraged to use my Tempus themes instead.

Palette

Dark base

211B29 312B39 716B79 A19BA9

Light base

FEFBFC EEEBEC 7E7B7C 2E2B2C

Accent values

983D4F 9A5D38 278975 585EBC
AC4D7A A58A30 587EBC 8955A2

Vim themes

All Prot16 themes (including Caprice) are bundled together as a plugin for Vim. To install them, use your favourite plugin manager. With vim-plug:

Plug 'protesilaos/prot16-vim'

Then specify your choice in .vimrc. Use either the light or dark variant:

" the light variant
colorscheme prot16-caprice_light

" or the dark variant
colorscheme prot16-caprice_dark

Terminal emulators

For Caprice, the following terminal emulators are supported thus far:

Palette specs

# Palette variables and values

dbg=211B29 # Dark background
dhl=312B39 # Dark background highlight
dt2=716B79 # Dark background secondary text
dt1=A19BA9 # Dark background primary text

lbg=FEFBFC # Light background
lhl=EEEBEC # Light background highlight
lt2=7E7B7C # Light background secondary text
lt1=2E2B2C # Light background primary text

red=983D4F # Red variant
ora=9A5D38 # Orange variant
yel=A58A30 # Yellow variant
gre=278975 # Green variant

cya=587EBC # Cyan variant
blu=585EBC # Blue variant
vio=8955A2 # Violet variant
mag=AC4D7A # Magenta variant

Use these if your terminal has no pre-made theme available.

# Terminal colour codes
# corresponding to the palette
# followed by termcol description

dbg=0      # black
red=1      # red
gre=2      # green
yel=3      # yellow
blu=4      # blue
mag=5      # magenta
cya=6      # cyan
lhl=7      # white
dhl=8      # brblack
ora=9      # brred
lt1=10     # brgreen
dt2=11     # bryellow
lt2=12     # brblue
vio=13     # brmagenta
dt1=14     # brcyan
lbg=15     # brwhite

Related projects

Note that this theme is part of the wider Prot16 collection. The Prot16 git repo includes all files (except the Atom packages) for each and every item.

Wish to contribute? Work can be done to port the themes to other applications. The program that handles the process is the Prot16 Generator (a bash script to build themes on demand or to work with other scripts in automating the process).

Application-specific Prot16 repositories: