Skip to main content

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

accessible-pygments-0.0.1.tar.gz (7.2 kB view hashes)

Uploaded Source

Built Distribution

accessible_pygments-0.0.1-py2.py3-none-any.whl (16.7 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page