A collection of accessible pygments styles
Project description
Accessible pygments themes
This package includes a collection of accessible themes for pygments based on different sources.
Our current themes include,
a11y-light
a11y-dark
a11y-high-contrast-light
a11y-high-contrast-dark
pitaya-smoothie
github-light
github-dark
github-light-colorblind
github-dark-colorblind
github-light-high-contrast
github-dark-high-contrast
gotthard-light
gotthard-dark
blinds-light
blinds-dark
greative
For a demo of all our themes please click here!
Installation
Our package is available in both conda and pip via,
conda install -c conda-forge accessible-pygments
pip install accessible-pygments
If you want to install it directly from source,
git clone git@github.com:Quansight-Labs/accessible-pygments.git
cd accessible-pygments
pip install .
Usage
Import it using the name identifier for the desired theme,
from pygments.formatters import HtmlFormatter
HtmlFormatter(style='a11y-light').style
<class 'accessible-pygments.A11yLight'>
Tests
Just open a terminal and run,
python test/run_tests.py
You will see the results under test/results
in html format for each supported theme.
Acknowledgements
We want to thank the following sources for being the source of inspiration of one or more themes that are available in this repository,
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
accessible-pygments-0.0.2.tar.gz
(11.7 kB
view hashes)
Built Distribution
Close
Hashes for accessible-pygments-0.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 19c3121d87ccdbd509a1b601748fd2066f6260daf02f99b211b59d8a0b941591 |
|
MD5 | c89df22132fee31b80c1ff601c5823be |
|
BLAKE2b-256 | a2410154c24518c00b98a7ce44493bbddc276ff4db70286b4008fb53cb9d2e69 |
Close
Hashes for accessible_pygments-0.0.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 30b6b4bd0c1b7ee49c85b4b01a62c88df7957436783d8b46ae782dafdc627d8b |
|
MD5 | b976a1e4efc603a40e3ce96907b4c189 |
|
BLAKE2b-256 | 875775d37069faa4bcfb0b2d4fc768b84bb2fb2234c64dc9518e1b7ecafe683f |