Welcome to an updated pygments stylesheet archive with added value for use with the rogue highlighter and henceforth Jekyll.

Timeliness

The complete website was last updated on 2023-06-18 19:33. This info should help to identify changes to the themes when in automatic mode.

How To Use

With the option for CSS and SCSS-mixins there are many ways to include the pygments stylesheets

Configure Jekyll to use rogue

Configure Jekyll to use rogue as the code highlighter. This should come now by default and no extra options should be necesary but here is an example for the _config.yml.

markdown: kramdown
kramdown:
  syntax_highlighter: rouge

CSS

If just a theme is needed with no SCSS just look for the desired theme and download the corresponding CSS. The file needs to be placed in the sites assets and be included in the <head>.

<head>
  <title>My awesome site</title>
  <link href="/assets/css/pygments-theme.css" rel="stylesheet" type="text/css">
</head>

There is also the possibility to include the files directly from this site but be careful since everything can change and break without notice. Just subsitute THEMENAME with the desired theme.

<head>
  <title>My awesome site</title>
  <link href="https://marauderxtreme.github.io/pygmentize-stylesheets/docs/css/themes/THEMENAME.css" rel="stylesheet" type="text/css">
</head>

SCSS

The css theme can also be included within SCSS. Look for the desired theme and download it into the assets and import it into the appropriate SCSS file.

@charset "utf-8";
@import 'THEMENAME';

SCSS with @mixin

If a bit more flexibility but still only one theme is needed download the highlight.scss into the assets and import it in the SCSS. Afterwards download the desired theme scss into the assets and include it as well. Use the provided theme @mixin on a top-level object or where needed.

@charset "utf-8";
@import 'highlight';
@import 'THEMENAME';

:root {
  @include THEMENAME-pygment;
}

Dark and light theme with SCSS

A switching theme based on the visitors settings can be achieved with the use of media queries. Download the highlight.scss into the assets and import it in the SCSS. Afterwards download a theme for dark and one for light into the assets and include them aswell. Use the provided @mixin on a top-level but wrap it with the media query prefers-color-scheme for dark and for light.

@charset "utf-8";
@import 'highlight';
@import 'THEMENAME-dark';
@import 'THEMENAME-light';

@media (prefers-color-scheme: dark) {
  :root {
    @include THEMENAME-dark-pygment;
  }
}
@media (prefers-color-scheme: light) {
  :root {
    @include THEMENAME-light-pygment;
  }
}

Give it a try on this site. If javascript is enabled a theme switcher can be found in the top right corner.

List of all themes

Here you can find a list of all themes and links to the theme previews.

abap

aimmslexer

algol

algol_nu

apprentice

arduino

autumn

base16-3024

base16-apathy

base16-ashes

base16-atelier-cave-light

base16-atelier-cave

base16-atelier-dune-light

base16-atelier-dune

base16-atelier-estuary-light

base16-atelier-estuary

base16-atelier-forest-light

base16-atelier-forest

base16-atelier-heath-light

base16-atelier-heath

base16-atelier-lakeside-light

base16-atelier-lakeside

base16-atelier-plateau-light

base16-atelier-plateau

base16-atelier-savanna-light

base16-atelier-savanna

base16-atelier-seaside-light

base16-atelier-seaside

base16-atelier-sulphurpool-light

base16-atelier-sulphurpool

base16-bespin

base16-brewer

base16-bright

base16-brushtrees-dark

base16-brushtrees

base16-chalk

base16-circus

base16-classic-dark

base16-classic-light

base16-codeschool

base16-cupcake

base16-cupertino

base16-darktooth

base16-default-dark

base16-default-light

base16-dracula

base16-eighties

base16-embers

base16-flat

base16-github

base16-google-dark

base16-google-light

base16-grayscale-dark

base16-grayscale-light

base16-greenscreen

base16-gruvbox-dark-hard

base16-gruvbox-dark-medium

base16-gruvbox-dark-pale

base16-gruvbox-dark-soft

base16-gruvbox-light-hard

base16-gruvbox-light-medium

base16-gruvbox-light-soft

base16-harmonic-dark

base16-harmonic-light

base16-hopscotch

base16-icy

base16-irblack

base16-isotope

base16-macintosh

base16-marrakesh

base16-materia

base16-material-darker

base16-material-lighter

base16-material-palenight

base16-material

base16-mellow-purple

base16-mexico-light

base16-mocha

base16-monokai

base16-nord

base16-ocean

base16-oceanicnext

base16-one-light

base16-onedark

base16-outrun-dark

base16-paraiso

base16-phd

base16-pico

base16-pop

base16-porple

base16-railscasts

base16-rebecca

base16-seti

base16-shapeshifter

base16-solarflare

base16-solarized-dark

base16-solarized-light

base16-spacemacs

base16-summerfruit-dark

base16-summerfruit-light

base16-tomorrow-night

base16-tomorrow

base16-tube

base16-twilight

base16-unikitty-dark

base16-unikitty-light

base16-woodland

base16-xcode-dusk

base16-zenburn

borland

bw

cheerfully_dark

colorful

default

dracula

emacs

exponent

friendly

friendly_dark

friendly_grayscale

friendly_light

fruity

github-dark

gruvbox-dark

gruvbox-light

heringer

igor

inkpot

lilypond

lovelace

manni

material

monokai

monokailight

murphy

native

nord-darker

nord

one-dark

onehalf-dark

onehalf-light

paraiso-dark

paraiso-light

pastie

perldoc

rainbow_dash

rrt

rub

sas

solarized-dark

solarized-light

solarizeddark

solarizedlight

spacemacs-dark

spacemacs-light

ssms

staroffice

stata-dark

stata-light

stata

tango

tomorrow-day

tomorrow-night-blue

tomorrow-night-bright

tomorrow-night-eighties

tomorrow-night

tomorrownightbright

trac

vice

vim

vs

vsc

xcode

zenburn