Jekyll syntax highlighting themes16 May 2016
Jekyll uses rouge for syntax highlighting. Despite huge popularity
of Jekyll among programmers, it took me a while to find some really
beautiful code highlighting themes. All you need is just a
syntax.css with some nice colors for the code, but it turned out to be
not so easy to find.
Eventually, I stumbled upon the base16 color schemes.
On the preview website you can see how they look like.
The themes as they are packaged cannot be directly consumed by rouge.
Fortunately though, there is a repo on GitHub
with base16 styles for pygments. Since rouge recognizes pygments
themes, you may just grab a stylesheet of your liking,
rename it to
syntax.css, replace CSS class
.highlight, and you are done.
Here is an example of a slightly tweaked Railcasts theme