Elegant uses Solarized theme for syntax highlighting. To replace it, copy contents of your preferred theme’s CSS style sheet into custom.css.

Alternatively, you can replace contents of pygments.css with your theme’s style sheet.

If you feel like experimenting with different themes then this repository has Pygments CSS of Vim themes. This one has Pygments CSS of built-in styles. Do not forget to change .codehilite CSS class identifier to .highlight. Code blocks in Pelican generated HTML use .highlight class.

Like this post? Share on: TwitterFacebookEmail


Talha Mansoor Avatar Talha Mansoor is the creator and lead developer of Elegant theme.

Keep Reading


Published

Last Updated

Category

Components

Tags

Stay in Touch

Get New Release Alert