Sass (SCSS) styles enable easy construction of syntax highlighting themes compatible with both:
- Pygments, a Python module and utilities used everywhere
- Chroma, a Go language package incorporated into the Hugo static site generator.
This package includes four example themes:
- Github (ish)
See the project page to see all four in action.
This is a fork of sass-pygments-theme-base, thanks @MoOx for that work.
Requirements: A Sass compiler; this project is set up to use
git clone https://github.com/solutionroute/chroma-sass-themes.git
Or add as submodule within your project's
git submodule add https://github.com/solutionroute/chroma-sass-themes.git
cd chroma-sass-themes npm install node-sass
Generate the pre-defined themes:
npm run build
Using a predefined chroma theme
Assuming you've added
chroma-sass-themes in your project's
include in your main scss file:
scss/taapaca.scss in the accompanying screenshot for a minimal but
functional example of the output. The project
page has screenshots of
the other predefined themes in this package.
- Add sample HTML