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
Installation
Just open a terminal and run,
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
Built Distribution
Close
Hashes for accessible-pygments-0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | bc9ae73e8884bb8d5c26146c10a0ae8158f589e65eb6dc293db959d93574903a |
|
MD5 | 57420be54356160a1c77df8d175b3394 |
|
BLAKE2b-256 | cf5965a3e553fcfbe5bc5d5f861e92256484b56d2a14a633a1413c38dd71f0d5 |
Close
Hashes for accessible_pygments-0.0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 777d288d094d61ce18fdfc1e299615d29ad7760ebd9f4d76557fcac0c4f5c3a6 |
|
MD5 | c76159fe14d0c5ec7a626634e15ac4e4 |
|
BLAKE2b-256 | a400536a9d9ad7930a582e7320ad80b6ea7179d63d2e42c6e23abccde9b4a1ca |