A Chroma (Pygments compatible) SASS base and themes
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 26 commits ahead of MoOx:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
css
docs
scss
.gitignore
README.md
_chroma.scss
component.json
package.json
theme.scss.template

README.md

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:

  • Taapaca
  • Github (ish)
  • Vimspectrgrey-dark
  • Vimspectr210-light

See the project page to see all four in action.

Acknowledgement

This is a fork of sass-pygments-theme-base, thanks @MoOx for that work.

Installation

Requirements: A Sass compiler; this project is set up to use npm.

Clone:

git clone https://github.com/solutionroute/chroma-sass-themes.git

Or add as submodule within your project's scss directory:

git submodule add https://github.com/solutionroute/chroma-sass-themes.git

Install node-sass:

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 scss directory, include in your main scss file:

@import "chrome-sass-themes/scss/taapaca";

Examples

See 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.

taapaca example

TODO

  • Add sample HTML