Skip to content

MoOx/sass-pygments-theme-base

Repository files navigation

Pygments base theme using Sass [UNMAINTAINED]

A simple Pygments base theme, using Sass.

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): pygments sass base theme highlighed by itself :)

pygmentize -f html -o example.html _pygments.scss
sass pygments-theme-freshcut.scss example.css
echo "<link rel=\"stylesheet\" href=\"example.css\" /><style>body{-webkit-font-smoothing: antialiased}</style>" | cat - example.html > /tmp/out && mv /tmp/out example.html

render example

About

A Pygment base theme using Sass

Resources

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages