Specify custom colors

Note that all but the last two commits (2def4ad and b7b27f1) are from pull request #368