An open API service indexing awesome lists of open source software.

https://github.com/moox/sass-pygments-theme-base

A Pygment base theme using Sass
https://github.com/moox/sass-pygments-theme-base

Last synced: 6 months ago
JSON representation

A Pygment base theme using Sass

Awesome Lists containing this project

README

          

# Pygments base theme using Sass _[UNMAINTAINED]_

A simple [Pygments](http://pygments.org/) base theme, using [Sass](http://sass-lang.org).

## Usage

In you main Sass file, just define the variable you want. See `my-pygments-theme.scss.sample` as a base. Just uncomment & define variable you need.
By default there is no color defined.
At least define one the color in the first block in the sample :)

Checkout `pygment-theme-freshcut.scss` for an usage example.

### Options

Set variables `$code-base-selector(-*)` to `null` to avoid global & block styles.
Set any variables to null to avoid generated color.

## Live Example

Generate the example ([FreshCut theme](https://github.com/daylerees/colour-schemes#freshcut)): pygments sass base theme highlighed by itself :)

```bash
pygmentize -f html -o example.html _pygments.scss
sass pygments-theme-freshcut.scss example.css
echo "body{-webkit-font-smoothing: antialiased}" | cat - example.html > /tmp/out && mv /tmp/out example.html
```

![render example](pygments-theme-freshcut.png)